]> granicus.if.org Git - postgis/commitdiff
bah get rid of last example not quite the solution for problem after further ruminating.
authorRegina Obe <lr@pcorp.us>
Tue, 2 Jul 2013 15:43:56 +0000 (15:43 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 2 Jul 2013 15:43:56 +0000 (15:43 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11607 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_measure.xml

index 7efd30fc05d62b0d5ccbc8aabe131b7743483254..fc194fc81b85a7a2f38965ce4c590ec6e561c76f 100644 (file)
@@ -2149,11 +2149,11 @@ The current implementation supports only vertices as the discrete locations. Thi
   </refsection>
   <refsection>
     <title>Examples</title>
-       <para>For each building, find the parcel that best covers it. The answer will return at most one record per building
-and will return the parcel that it intersects where  parts of building that don't intersect the parcel, the furthest part of building is closest to this parcel.</para>
+    <!--       <para>For each building, find the parcel that best covers it. First we prefer the parcel first that completely covers.
+       Then for those that only partially cover we prefer the parcel whose furthest part from the building closer than any other parcel.</para>
                <programlisting>SELECT DISTINCT ON(buildings.gid) buildings.gid, parcels.parcel_id 
    FROM buildings INNER JOIN parcels ON ST_Intersects(buildings.geom,parcels.geom) 
-     ORDER BY buildings.gid, ST_MaxDistance(buildings.geom, parcels.geom);</programlisting>
+     ORDER BY buildings.gid, ST_MaxDistance(buildings.geom, parcels.geom);</programlisting> -->
      <para>Basic furthest distance the point is to any part of the line</para>
                <programlisting>postgis=# SELECT ST_MaxDistance('POINT(0 0)'::geometry, 'LINESTRING ( 2 0, 0 2 )'::geometry);
    st_maxdistance