How to get the map's EXTENT

Pablo Rodríguez Madroño prodriguez at ADASASISTEMAS.COM
Mon Apr 16 05:04:00 EDT 2007


Hello there,

The extent parameters may be expressed in different units. If you don't specify any unit, degrees minutes and secons will be considered.

If you want to set other units you can use the UNITS parameter on your mapfile. For instance, you could use "UNITS meters". Of course, this depends on your base geographic data.

I'm not quite sure, but I think that shapefiles use projected coordinates. You should then add "UNITS meters" in your mapfile to show them correctly.

In case of doubt please try to use some of the samples of the MapServer tutorial to learn how to set the extent parameter.

I hope this helps...
 
Pablo Rodríguez Madroño
División de Sistemas de Información
ADASA Sistemas
93.264.06.02
600.92.65.10

-----Mensaje original-----
De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de ???
Enviado el: domingo, 15 de abril de 2007 14:59
Para: MAPSERVER-USERS at LISTS.UMN.EDU
Asunto: [UMN_MAPSERVER-USERS] How to get the map's EXTENT

I'm a newbie of Mapserver, now I create a new project with some shapefile and tif map files, to build a web-gis sample.
Now I'm quite comfused about the EXTENT parameters in the XXX.map file when I use the 3rd-party Map data files. 

Does the paremeters of the shapefile file, which are got by ogrinfo, are just the ones in the XXX.map file ?

or any suggetion about how to define the EXTENT paremeter is appreciated~  

Thanks in advance.
	

  Best wishes ^_^
 				

        Leo Chou
        hust_blood at 163.com
          2007-04-15



More information about the mapserver-users mailing list