I checked this "zoom to raster layer" and to my surprise it does seem to work correctly, using e.g. Geotiff or Jpeg with world file for the raster layer data.
a simple test is // => adapt map file and layer name <= $mapFile = "/path/to/test-mapfile.map"; $rLayerName = "test"; $map = ms_newMapObj($mapFile); $rLayer = $map->getLayerByName($rLayerName); $rLayerExt = $rLayer->getExtent(); print_r($rLayerExt); This prints out correctly the raster layer extent in both MS 5.6.6 and 6.x. You should check your MS version, I guess older ones returned -1 or so for raster layers. Postgis layers do not seem to produce useful results, but for this I already added a different approach. armin On 15/06/2012 13:20, Giovanni Manghi wrote: > Hi Armin, > >> But I have doubts the "zoom to layer" is a >> functionality frequently used. > > on the contrary :) > > I think that it is a very useful and often required feature. > > cheers! > > -- Giovanni -- > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users