Hi,

For me, this example of a multipolygon with 2 shapes  works fine:

$shape=ms_shapeObjFromWkt('MULTIPOLYGON (((-42221.3100036118994467 -50978.9700119893022929, -42237.3500036269033444 -50998.5500120075012092, -42268.6100036560019362 -50972.0399959827991552, -42252.5799876410965226 -50952.7199959647987271, -42221.3100036118994467 -50978.9700119893022929)), ((-42241.4500036306999391 -51003.0999960116969305, -42257.4799876456017955 -51021.8599960291976458, -42287.7399876737981685 -50997.5599960066028871, -42272.3999876594971283 -50977.8599959881976247, -42241.4500036306999391 -51003.0999960116969305)))');

I am using Mapscript 4.10 compiled with GEOS 2.2.3, and PHP 4.4.4, over Linux.

Leonardo

Mateusz Loskot wrote:
Jeppe Lund Andersen wrote:
Hi
ms_shapeObjFromWkt( "MULTIPOLYGON(((10 10, 10 20, 20 20, 20 15, 10
10)),((60 60, 70 70, 80 60, 60 60)))"  );

this does not work either

Jeppe,

It's strange to me, because following should be considered as valid WKT:

MULTIPOLYGON
(
(( first  polygon coords)),
(( second polygon coords ))
)

May be there is a bug in WKT parser.

Cheers

Reply via email to