Raster EXTENT on the fly

Bart van den Eijnden (OSGIS) bartvde at OSGIS.NL
Thu Jan 18 01:24:59 PST 2007


Okay, I did not get that from your first e-mail. 

A LayerObj has a getExtent method which you can try.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Luca Casagrande <luca.casagrande at GMAIL.COM>
Naar: MAPSERVER-USERS at LISTS.UMN.EDU <MAPSERVER-USERS at LISTS.UMN.EDU>
Onderwerp: Re: [UMN_MAPSERVER-USERS] Raster EXTENT on the fly
Datum: 18/01/07 07:19

> Thanks for your answer!
> 
> The matter is that i am trying to found have to set
$minx.$miny,$maxx,$maxy reading the 
> raster. I think that the only solution is to use gdalinfo and parse the
output, but i don't
> know if this it's ok inside a php script.
> 
> What do you think about?
> 
> Thanks
> Luca
> 
> On Thu, 18 Jan 2007 10:08:50 +0100
> "Bart van den Eijnden (OSGIS)" <bartvde at osgis.nl> wrote:
> 
> > Ofcourse there is :-) :
> > 
> > $oMap->setExtent($minx, $miny, $maxx, $maxy);
> > 
> > Best regards,
> > Bart
> 
> > --------- Oorspronkelijk bericht --------
> > Van: Luca Casagrande <luca.casagrande at GMAIL.COM>
> > Naar: MAPSERVER-USERS at LISTS.UMN.EDU
<MAPSERVER-USERS at LISTS.UMN.EDU>
> > Onderwerp: [UMN_MAPSERVER-USERS] Raster EXTENT on the fly
> > Datum: 18/01/07 07:08
> > 
> > > Hi to all!
> > > 
> > > I have a php app that display a list with some rasters; the user
select on
> > of them and then submit the form to show it.
> > > Using mapscript, I can add the layer section to the mapfile used
as
> > template, but i can't found a way to set the EXTENT.
> > > 
> > > Is there any way for doing this?
> > > 
> > > Thanks
> > > Luca
> 
> 
> 
> -- 
> Join the world's largest wifi conunity! http://en.fon.com/
> 
> LINUX User #411601
> GENTOO-GIS Development Team
> jabber: casagrande at jabber.linux.it
> 
>  
> 
> 



More information about the MapServer-users mailing list