Thanks for all the suggestions, they are giving me a lot to think about.<br><br>Unfortunately it's not always a convex hull. More complex patterns appear to have wedges taken out of them, like you can see in this image<br>
<br><a href="http://www.esri.com/software/arcgis/extensions/businessanalyst/graphics/market-boundaries-lg.jpg">http://www.esri.com/software/arcgis/extensions/businessanalyst/graphics/market-boundaries-lg.jpg</a><br><br>It appears that, in our case, the hulls contain the 80% of closest members as the crow flies (although some of the examples i've seen online seem to use drivetimes). Then they somehow construct a polygon that contains exactly those 80% and none of the remaining 20% - are there any standard routines for that? Presumably once they've got that polygon they replace the line segments with curves.
<br><br>If i can create something that meets the same rules and has a similar &quot;look&quot; then i'm sure it would suffice.<br><br>Graham<br><br><div><span class="gmail_quote">On 7/5/06, <b class="gmail_sendername">Mike Leahy
</b> &lt;<a href="mailto:mgleahy@alumni.uwaterloo.ca">mgleahy@alumni.uwaterloo.ca</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hey there,<br><br>If you can determine the closest 80% of points by whatever criteria,<br>wouldn't you be able to use the convexhull() function?&nbsp;&nbsp;I just tried<br>this, and it looks okay to me:<br><br>testdb=# select astext(convexhull('MULTIPOINT((0 1),(0 0),(1 0),(1
<br>1))'::geometry));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;astext<br>--------------------------------<br>&nbsp;&nbsp;POLYGON((0 0,0 1,1 1,1 0,0 0))<br>(1 row)<br><br>I did the same thing after creating a points table with the separate in<br>individual records with the same overall coordinates in the multipoint
<br>example above, and it worked okay too:<br><br>testdb=# select astext(convexhull(collect(p))) from testpoint;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;astext<br>--------------------------------<br>&nbsp;&nbsp;POLYGON((0 0,0 1,1 1,1 0,0 0))<br>(1 row)<br>
<br>It wouldn't be too hard to modify this to work using where condition<br>that filters out the records of interest...or maybe on a saved view.<br><br>The only problem is that it wouldn't produce a nice curvy polygon<br>
outline like in the sample William provided.<br><br>Regards,<br>Mike<br><br>Paul Ramsey wrote:<br>&gt; So my guess is that you use drive-time to segment your population of<br>&gt; customers relative to the store into the &quot;nearest X%&quot; and then draw a
<br>&gt; &quot;shape&quot; around that cloud of points.&nbsp;&nbsp;And drawing the shape is the &quot;fun&quot;<br>&gt; part.<br>&gt;<br>&gt; William Andersen wrote:<br>&gt;&gt; It appears to be the same as this functionality in Business Analyst
<br>&gt;&gt;<br>&gt;&gt; <a href="http://www.esri.com/software/arcgis/extensions/businessanalyst/about/customer-market.html">http://www.esri.com/software/arcgis/extensions/businessanalyst/about/customer-market.html</a><br>
&gt;&gt; &lt;<a href="http://www.esri.com/software/arcgis/extensions/businessanalyst/about/customer-market.html">http://www.esri.com/software/arcgis/extensions/businessanalyst/about/customer-market.html</a>&gt;<br>&gt;&gt;
<br>&gt;&gt;<br>&gt;&gt; I thought this was done using some older version of Arcview, but i'm<br>&gt;&gt; not very familiar with esri's offerings.<br>&gt;&gt;<br>&gt;&gt; Will<br>&gt;&gt;<br>&gt;&gt; On 7/5/06, *Paul Ramsey * &lt;
<a href="mailto:pramsey@refractions.net">pramsey@refractions.net</a><br>&gt;&gt; &lt;mailto:<a href="mailto:pramsey@refractions.net">pramsey@refractions.net</a>&gt;&gt; wrote:<br>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; This wouldn't be in vanilla arcview, was it in Network Analyst?
<br>&gt;&gt; The top<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 80% of points by drive distance might yield this shape.&nbsp;&nbsp;Finding the<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; points would be straightforward, and then the hull building would<br>&gt;&gt; be the<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; hand-waving part.
<br>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; P<br>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; William Andersen wrote:<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; Paul, Steve,<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; Thanks for the quick replies, unfortunately it's pretty hard to
<br>&gt;&gt; tell<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; from those images if they match.<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; I've done some more digging and it turns out that these shapes<br>&gt;&gt; were<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; created in Arcview 
3.x. The notes I have say...<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; This approach selects a number of the outliers and joins the<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; extreme<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; points using elliptical arcs.<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; The arcs are all created in a direction moving out from the
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; store.<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; However, I dont see customer points at the discontinuities in the<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; hulls,<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; so it appears that the &quot;extreme points&quot; are perhaps interpolated.
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; Will<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; On 7/5/06, *Paul Ramsey* &lt; <a href="mailto:pramsey@refractions.net">pramsey@refractions.net</a><br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:
<a href="mailto:pramsey@refractions.net">pramsey@refractions.net</a>&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; &lt;mailto:<a href="mailto:pramsey@refractions.net">pramsey@refractions.net</a><br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:pramsey@refractions.net">
pramsey@refractions.net</a>&gt;&gt;&gt; wrote:<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; William,<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; It doesn't look like this is a standard algorithm, but more<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; likely a
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; particular empirical technique provided by the particular<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; software you<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; were using.&nbsp;&nbsp;So substituting some other technique might<br>&gt;&gt; yield a<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; different shape entirely... do any of the techniques
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; mentioned here<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt; &lt;<a href="http://www.geospatial-online.com/geospatialsolutions/article/articleDetail.jsp?id=1348">http://www.geospatial-online.com/geospatialsolutions/article/articleDetail.jsp?id=1348
</a><br>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<br>&gt;&gt;<br>&gt;&gt; <a href="http://www.geospatial-online.com/geospatialsolutions/article/articleDetail.jsp?id=1348">http://www.geospatial-online.com/geospatialsolutions/article/articleDetail.jsp?id=1348
</a>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; sound like what was done to your data?<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Paul<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; William Andersen wrote:<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; I'm fairly new to postgis, and working to automate a<br>&gt;&gt; number of<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; processes.<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; We are trying to compute market area polygons that look
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; like the<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; attached image. These were created by some older software.<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; They are referred to as Amoeba Hulls, and they contain 80%
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; of a<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; store's customers. However I can't find any solid<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; documentation that<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; would allow me to reproduce them.<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; Does anyone have any ideas how these shapes are created<br>&gt;&gt; or an<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; alternate name that I might be able to google?<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Additionally, we may
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; be in a position to finance the development of this<br>&gt;&gt; feature.<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; _______________________________________________<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; postgis-users mailing list
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net
</a>&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:postgis-users@postgis.refractions.net">
postgis-users@postgis.refractions.net</a>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;<br>&gt;&gt; ------------------------------------------------------------------------<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; _______________________________________________
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; postgis-users mailing list<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:postgis-users@postgis.refractions.net">
postgis-users@postgis.refractions.net</a>&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; _______________________________________________<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; postgis-users mailing list<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a>&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users
</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; ------------------------------------------------------------------------<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; postgis-users mailing list
<br>&gt;&gt; <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>&gt;&gt; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users
</a><br>&gt;<br>&gt; _______________________________________________<br>&gt; postgis-users mailing list<br>&gt; <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>&gt; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">
http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>&gt;<br>_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net
</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></blockquote></div><br>