From: Regina Obe Date: Wed, 2 Aug 2017 21:45:43 +0000 (+0000) Subject: Add a graphical example for ST_ClusterDBScan X-Git-Tag: 2.4.0alpha~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c851cab130df3b5f34001588737caa192e85018e;p=postgis Add a graphical example for ST_ClusterDBScan git-svn-id: http://svn.osgeo.org/postgis/trunk@15516 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/html/images/st_clusterdbscan01.png b/doc/html/images/st_clusterdbscan01.png new file mode 100644 index 000000000..09ecbbfaa Binary files /dev/null and b/doc/html/images/st_clusterdbscan01.png differ diff --git a/doc/reference_measure.xml b/doc/reference_measure.xml index abae15731..f86f210e1 100644 --- a/doc/reference_measure.xml +++ b/doc/reference_measure.xml @@ -1118,12 +1118,57 @@ SELECT ST_AsText( Examples - Assigning a cluster number to each parcel point: + Assigning a cluster number to each polygon within 50 meters of each other. Require at least 2 polygons per cluster - -SELECT parcel_id, ST_ClusterDBSCAN(geom, eps := 0.5, minpoints := 5) over () AS cid -FROM parcels; - + + + + + + + + + + within 50 meters at least 2 per cluster. singletons have NULL for cid + + + SELECT name, ST_ClusterDBSCAN(geom, eps := 50, minpoints := 2) over () AS cid +FROM boston_polys +WHERE name > '' AND building > '' + AND ST_DWithin(geom, + ST_Transform( + ST_GeomFromText('POINT(-71.04054 42.35141)', 4326), 26986), + 500); + + + + + + + + @@ -1139,7 +1184,7 @@ GROUP BY cid; See Also - + , , , @@ -2646,7 +2691,7 @@ The current implementation supports only vertices as the discrete locations. Thi -The smaller densifyFrac we specify, the more acurate Fréchet distance we get. But, the computation time and the memory usage increase with the square of the number of subsegments. +The smaller densifyFrac we specify, the more acurate Fréchet distance we get. But, the computation time and the memory usage increase with the square of the number of subsegments. Availability: 2.4.0 - requires GEOS >= 3.7.0 @@ -3061,7 +3106,7 @@ SELECT s.gid, s.school_name This function will return false if either geometry is invalid except in the case where they are binary equal. - + Do not call with a GEOMETRYCOLLECTION as an argument.