WKT
Jeppe Lund Andersen
JXA at COWI.DK
Tue Jan 16 05:11:54 PST 2007
Hi
used your WKT string but did not help, still get the same error
<b>Fatal error</b>: Object expected as argument. in
<b>C:\Inetpub\wwwroot\jar2\xmlquery.php</b> on line <b>74</b><br />
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)))" );
Jeppe
> -----Original Message-----
> From: Buggy Pine [mailto:buggy.pine at gmail.com]
> Sent: Tuesday, January 16, 2007 1:59 PM
> To: Jeppe Lund Andersen
> Cc: MAPSERVER-USERS at lists.umn.edu
> Subject: Re: [UMN_MAPSERVER-USERS] WKT
>
> Hi,
> I suppose your wkt MULTIPOLYGON syntax is wrong...
>
> your point must form a closed linestring.
>
> The correct syntax could be something like this:
>
> 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
> )))
>
> Best regards
> Ruggero Valentinotti
>
> On 1/16/07, Jeppe Lund Andersen <JXA at cowi.dk> wrote:
> >
> >
> >
> > hello
> >
> > iam trying to use ms_shapeObjFromWkt() with this wkt string
> but I get
> > a error is multipolygon not supported or is it a different error ?
> >
> > wkt="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),
> >
> > (524948.67817 6255972.12025,524956.67737 6255962.3253,524944.27044
> > 6255960.69281),(524929.57803 6255948.77563,524941.98495
> > 6255957.91758,524948.51492 6255951.22437)))"
> >
> > Med venlig hilsen
> >
> > Jeppe Lund Andersen
>
>
>
More information about the MapServer-users
mailing list