Raster EXTENT on the fly

Bart van den Eijnden (OSGIS) bartvde at OSGIS.NL
Thu Jan 18 04:24:59 EST 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
> &quot;Bart van den Eijnden (OSGIS)&quot; &lt;bartvde at osgis.nl&gt; wrote:
> 
> &gt; Ofcourse there is :-) :
> &gt; 
> &gt; $oMap-&gt;setExtent($minx, $miny, $maxx, $maxy);
> &gt; 
> &gt; Best regards,
> &gt; Bart
> 
> &gt; --------- Oorspronkelijk bericht --------
> &gt; Van: Luca Casagrande &lt;luca.casagrande at GMAIL.COM&gt;
> &gt; Naar: MAPSERVER-USERS at LISTS.UMN.EDU
&lt;MAPSERVER-USERS at LISTS.UMN.EDU&gt;
> &gt; Onderwerp: [UMN_MAPSERVER-USERS] Raster EXTENT on the fly
> &gt; Datum: 18/01/07 07:08
> &gt; 
> &gt; &gt; Hi to all!
> &gt; &gt; 
> &gt; &gt; I have a php app that display a list with some rasters; the user
select on
> &gt; of them and then submit the form to show it.
> &gt; &gt; Using mapscript, I can add the layer section to the mapfile used
as
> &gt; template, but i can't found a way to set the EXTENT.
> &gt; &gt; 
> &gt; &gt; Is there any way for doing this?
> &gt; &gt; 
> &gt; &gt; Thanks
> &gt; &gt; 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