]> granicus.if.org Git - postgis/commitdiff
remove left and right notes until I have arrows. not embarrass myself with my direct...
authorRegina Obe <lr@pcorp.us>
Tue, 26 Jul 2011 14:29:37 +0000 (14:29 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 26 Jul 2011 14:29:37 +0000 (14:29 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7678 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_processing.xml

index 320eb4240ecfd873e1378a5c1cdbe5ee46e46dae..c2e12ab4d58435fff1970c54591a3c0133858a9e 100644 (file)
@@ -375,7 +375,7 @@ FROM someroadstable;
                                                                <imagedata fileref="images/st_offsetcurve01.png" />
                                                          </imageobject>
                                                          <caption><para>15, 'quad_segs=4 join=round' original line 
-and its offset 15 units to the left.</para></caption>
+and its offset 15 units.</para></caption>
                                                        </mediaobject>
                                                  </informalfigure>
                                <programlisting>
@@ -399,16 +399,17 @@ LINESTRING(164 1,18 1,12.2597485145237 2.1418070123307,
                                                                <imagedata fileref="images/st_offsetcurve02.png" />
                                                          </imageobject>
                                                          <caption><para>-15, 'quad_segs=4 join=round' original line 
-                                                               and its offset 15 units to the right.</para></caption>
+                                                               and its offset -15 units and then a double-offset to get more curvy</para></caption>
                                                        </mediaobject>
                                                  </informalfigure>
                                <programlisting>
-SELECT ST_AsText(ST_OffsetCurve(ST_GeomFromText(
+SELECT ST_AsText(ST_OffsetCurve(geom,
+       -15, 'quad_segs=4 join=round')) As nosocurvy
+       FROM ST_GeomFromText(
 'LINESTRING(164 16,144 16,124 16,104 16,84 16,64 16,
        44 16,24 16,20 16,18 16,17 17,
        16 18,16 20,16 40,16 60,16 80,16 100,
-       16 120,16 140,16 160,16 180,16 195)'),
-       -15, 'quad_segs=4 join=round'));
+       16 120,16 140,16 160,16 180,16 195)') As geom;
 -- output --
 LINESTRING(31 195,31 31,164 31)
                                </programlisting>