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>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
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.

Reply via email to