From 7cb802f3f5fe2bcb09a6b2a693c9106d853065a5 Mon Sep 17 00:00:00 2001 From: Daniel Baston Date: Mon, 14 Dec 2015 23:40:07 +0000 Subject: [PATCH] fix some typos in docs git-svn-id: http://svn.osgeo.org/postgis/trunk@14488 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/reference_processing.xml | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/doc/reference_processing.xml b/doc/reference_processing.xml index 1f59ed5e8..102453467 100644 --- a/doc/reference_processing.xml +++ b/doc/reference_processing.xml @@ -2816,16 +2816,16 @@ FROM (SELECT ST_Buffer('POINT(1 3)', 10,12) As the_geom) As foo; Note that returned geometry might lose its simplicity (see ) Note topology may not be preserved and may result in invalid geometries. Use (see ) to preserve topology. - This function handles 3D and the third dimmension will affect the result + This function handles 3D and the third dimension will affect the result. Availability: 2.2.0 Examples - A linestring that get the efffective area calculated. All points is returned since we give 0 as themin area threashold + A LineString is simplified with a minimum area threshold of 30. -select ST_AStext(ST_SimplifyVW(geom,30)) simplified +select ST_AsText(ST_SimplifyVW(geom,30)) simplified FROM (SELECT 'LINESTRING(5 2, 3 8, 6 20, 7 25, 10 10)'::geometry geom) As foo; -result simplified @@ -2842,8 +2842,9 @@ LINESTRING(5 2,7 25,10 10) ST_SetEffectiveArea - Sets for each vertex point it's effective area, - and can by filtring on this area return a simplified geometry + + Sets the effective area for each vertex, storing the value in the M ordinate. A simplified geometry can then be generated by filtering on the M ordinate. + @@ -2851,7 +2852,7 @@ LINESTRING(5 2,7 25,10 10) geometry ST_SetEffectiveArea geometry geomA - float threashold = 0 + float threshold = 0 integer set_area = 1 @@ -2859,13 +2860,14 @@ LINESTRING(5 2,7 25,10 10) Description - Sets for each vertex point it's effective area from Visvalingam-Whyatt’s algorithm. - The effective area is stored as the M-value of the geomtries. - If the second optional parameter is used, the resulting geometriy will be build only on vertex points with an effective area - greater than or equal to that threashold value. That will be a simplified geometry. + + Sets the effective area for each vertex, using the Visvalingam-Whyatt algorithm. + The effective area is stored as the M-value of the vertex. + If the optional "theshold" parameter is used, a simplified geometry will be returned, containing only vertices with an effective area + greater than or equal to the threshold value. - This function can be used for server side simplification by using the threashold. Another option is to not give any threashold value. - Then you get the full geometry back, but with effective areas as M-values wich can be used by the client to simplify very fast. + This function can be used for server-side simplification when a threshold is specified. Another option is to use a threshold value of zero. + In this case, the full geometry will be returned with effective areas as M-values, which can be used by the client to simplify very quickly. Will actually do something only with (multi)lines and (multi)polygons but you can safely call it with @@ -2879,16 +2881,18 @@ LINESTRING(5 2,7 25,10 10) simplicity (see ) Note topology may not be preserved and may result in invalid geometries. Use (see ) to preserve topology. The output geometry will lose all previous information in the M-values - This function handles 3D and the third dimmension will affect the effective area + This function handles 3D and the third dimension will affect the effective area Availability: 2.2.0 Examples - A linestring that get the efffective area calculated. All points is returned since we give 0 as themin area threashold + + Calculating the effective area of a LineString. Because we use a threshold value of zero, all vertices in the input geometry are returned. + -select ST_AStext(ST_SetEffectiveArea(geom)) all_pts, ST_AStext(ST_SetEffectiveArea(geom,30) ) thrshld_30 +select ST_AsText(ST_SetEffectiveArea(geom)) all_pts, ST_AsText(ST_SetEffectiveArea(geom,30) ) thrshld_30 FROM (SELECT 'LINESTRING(5 2, 3 8, 6 20, 7 25, 10 10)'::geometry geom) As foo; -result all_pts | thrshld_30 -- 2.50.1