Does shapeobj->union exist in php-mapscript
Paul Moen
pmoen at ND.GOV
Mon Sep 24 09:01:10 PDT 2007
Same problem with mapserver 5.0
I get the following error.
PHP Fatal error: Call to undefined method ms_shape_obj::Union()
By doing the following.
$wktshp1 = ms_shapeObjFromWkt($wkt1);
$wktshp2 = ms_shapeObjFromWkt($wkt2);
$newshp = $wktshp1->Union($wktshp2);
MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
PHP MapScript Version ($Revision: 6872 $ $Date: 2007-09-10 07:45:30 -0700
(Mon, 10 Sep 2007) $)
Anyone?
On 9/19/07 9:53 AM, "Paul Moen" <pmoen at ND.GOV> wrote:
> I get the following error.
>
> PHP Fatal error: Call to undefined method ms_shape_obj::Union()
>
> By doing the following.
>
> $wktshp1 = ms_shapeObjFromWkt($wkt1);
> $wktshp2 = ms_shapeObjFromWkt($wkt2);
>
> $newshp = $wktshp1->Union($wktshp2);
>
> PHP/Mapscript docs say.
> shapeobj Union(shapeobj shape)
> Returns a shape object representing the union of the current
> shape object with the one passed as parameter.
> Only available if php/mapscript is built with GEOS
> library.
>
> GEOS is built in.
> MapServer version 4.10.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE
> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS
> INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
> Does union exist in PHP/Mapscript?
>
> Thanks,
>
> Paul
Paul T. Moen
pmoen at nd.gov
701-328-2434
701-328-3696 (fax)
ND State Water Commission
More information about the MapServer-users
mailing list