[postgis-users] How to smoothify (rounding the edges)?

tee daniel.teske at web.de
Fri May 25 16:19:02 PDT 2012


Dear list,

I am trying smoothify some linestring.
ST_OffsetCurve looks good, but simply simulates just one side of a
ST_Buffer. 
Chaining of ST_OffsetCurve could be the right way.

SELECT
	ST_OffsetCurve(
		ST_OffsetCurve(
			ST_OffsetCurve(
				ST_GeometryFromText(
					'LINESTRING(
						369172.556 5645414.822
						,369083.213632107 5645360.17950829
						,369074.985 5645382.472
						,368991.798 5645340.312
						,368948.814 5645362.793
						,368922.301 5645286.628
						,368868.668 5645301.318
						,368762.112 5645217.804
						,368722.516936163 5645220.71672624
						,368734.299541879 5645251.65724707
						,368696.988917574 5645268.59693863
						,368652.612373605 5645243.03860572
						,368655.33980816 5645277.83126126
						,368622.411 5645234.496)'
					,25832)
				,-5
				,'quad_segs=4 join=round')
			,10
			,'quad_segs=4 join=round')
		,-5
		,'quad_segs=4 join=round');

http://postgis.17.n6.nabble.com/file/n4997829/smoothify.png 

How can I get my data edgeless.

Thanks a lot and best regards,
Daniel

--
View this message in context: http://postgis.17.n6.nabble.com/How-to-smoothify-rounding-the-edges-tp4997829.html
Sent from the PostGIS - User mailing list archive at Nabble.com.



More information about the postgis-users mailing list