WKT

Mateusz Loskot mateusz at LOSKOT.NET
Tue Jan 16 05:45:59 PST 2007


Jeppe Lund Andersen wrote:
> here is my line
> 
> $NewShapeFromWkt = ms_shapeObjFromWkt( "MULTIPOLYGON (((524947.99381
> 6255976.17454,524961.79785 6255959.99561,524993.41357
> 6255950.64448,524964.46961 6255949.7539,524963.57902
> 6255939.66062,524950.51713 6255950.05076,524924.83864
> 6255946.93371,524941.01757 6255959.25345,524947.99381 6255976.17454),
> (524948.67817 6255972.12025,524956.67737 6255962.3253,524944.27044
> 6255960.69281,524948.67817 6255972.12025), (524929.57803
> 6255948.77563,524941.98495 6255957.91758,524948.51492
> 6255951.22437,524929.57803 6255948.77563)))" );

 		
You need to group polygons this way:

MULTIPOLYGON
(
((10 10, 10 20, 20 20, 20 15, 10 10)),
((60 60, 70 70, 80 60, 60 60))
)

Note, double (( and )).

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the MapServer-users mailing list