php Mapscript $Layer->getExtent returns strange BBOX
Milo van der Linden
mlinden at ZEELANDNET.NL
Tue Sep 11 12:47:30 PDT 2007
Hello list!
I have a postGIS layer from which I select a subset through the
following php mapscript.
$newLayer = ms_newLayerObj($map, $map->getLayerByName('original_layer'));
$newLayer->set('data', '\'the geom from (select * from myLayer where
F_id in (select F_id from anotherLayer where project_id=1)) as lppg
USING UNIQUE F_id USING SRID=4326\'');
//$newLayer->set('status', MS_ON);
echo $newLayer->data;
$rectObj = $newLayer->getExtent();
var_dump($rectObj);
The vardump returns:
{ ["_handle_"]=> resource(47) of type (Unknown) ["minx"]=>
float(-25000000) ["miny"]=> float(-25000000) ["maxx"]=> float(25000000)
["maxy"]=> float(25000000) }
But I need coordinates in lat/lon wgs84?
Any help kindly appreciated!
--
Milo van der Linden
skype: milovanderlinden <skype:milovanderlinden?add>
mlinden at zeelandnet.nl <mailto:mlinden at zeelandnet.nl>
milovanderlinden at gmail.com <mailto:milovanderlinden at gmail.com>
milo at 3dsite.nl <mailto:milo at 3dsite.nl>
http://www.3dsite.nl
De informatie in dit bericht reflecteert mijn persoonlijke mening en
niet die van een bedrijf of instantie. Aan de informatie kunnen geen
rechten worden ontleend. Indien dit bericht onderdeel is van een forum,
mailing-list of community dan gelden automatisch de bij het betreffende
medium behorende voorwaarden. The information in this message reflects
my personal opinion and not that of a company or public body. All rights
reserved.If this message is contained in a mailing-list or community,
the rights on the medium are automatically adapted.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070911/b96f299b/attachment.htm>
More information about the MapServer-users
mailing list