WKT

Jeppe Lund Andersen JXA at COWI.DK
Wed Jan 17 02:26:47 EST 2007


Hi

Yes thats OGR iam using.
OGR is having a problem with multipolygon in mapserver 4.8.4

Jeppe 

> -----Original Message-----
> From: UMN MapServer Users List 
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime
> Sent: Wednesday, January 17, 2007 1:07 AM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] WKT
> 
> The "other" is the OGR wkt handling functions. There is OGR 
> support compiled in (you must have GEOS or OGR)...
> 
> Steve
> 
> >>> Jeppe Lund Andersen <JXA at COWI.DK> 1/16/2007 8:45:21 AM >>>
> hi 
> 
> ok I do not have GEOS compiled with mapserver so is using the 
> other and is using mapserver 4.8.4 with php 4.4.4 on windows
> 
> took your 
>      $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)))');
> 
> 
> and put it in the code and still did not work maybe iam using 
> something old in the mapserver
> 
> Jeppe
> 
> > -----Original Message-----
> > From: UMN MapServer Users List
> > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Leonardo Andrade
> > Sent: Tuesday, January 16, 2007 3:37 PM
> > To: MAPSERVER-USERS at LISTS.UMN.EDU
> > Subject: Re: [UMN_MAPSERVER-USERS] WKT
> > 
> > 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
> > >   
> > 
> > 
> > 
> 
> 
> 



More information about the mapserver-users mailing list