[Mapserver-users] [gis newbie] Questions about EXTENT variable

Eduardo Patto Kanegae eduardo at consultoria.eti.br
Tue Apr 20 11:17:49 EDT 2004


Did you check if your EXTENT for Boston is OK?

A nice tool to do it is using the "gdalinfo" that comes with GDAL package ( http://gdal.maptools.org )

$ gdalinfo a-tiff-file.tif

best

Eduardo Patto Kanegae
http://www.consultoria.eti.br
UIN: 303747254

I Encontro Nacional de Usuários MapServer - http://mapserver.cttmar.univali.br/encontro2004
Projeto MapServer Brasil - http://mapserver.cttmar.univali.br

***Fim da Mensagem / End of Message ***





On Tue, 20 Apr 2004 08:35:55 -0400, "P Wilkerson" <1wilkerson at charter.net> escreveu:

> De: "P Wilkerson" <1wilkerson at charter.net>
> Data: Tue, 20 Apr 2004 08:35:55 -0400
> Para: <mapserver-users at lists.gis.umn.edu>
> Assunto: [Mapserver-users] [gis newbie]  Questions about EXTENT variable
> 
> I have a simple PHP Mapscript that works when I use the EXTENT statement and
> tiff file that came with the gmap75 demo.  However, when I attempt to use a
> different map (Boston) and change only the EXTENT statement and tiff file,
> Mapserver returns a blank page.
> 
> Would somebody please explain what is going on and help out by providing a
> valid extent statement?
> 
> Demo     EXTENT -2200000  -712631 3072800 3840000
> Boston   EXTENT  234503.759398496 899884.343580152 238052.631578947
> 902250.994765712
> 
> Does Proj.4 Cartographic Projections Library have anything to do with this?
> 
> Also, The TFW world files seemingly have different coordinate systems as
> well.
> 
> Any help is warmly appreciated!
> 
> Peter
> 
> ----------------------------------
> DEMO MAP FILE
> 
> MAP
>   NAME Demomap
>   SIZE 600 400
>   IMAGECOLOR 255 245 220
>   # FONTSET symbols/fonts/fonts.list
>   # SHADESET symbols/shade.sym
>   # MARKERSET symbols/marker.sym
>   # LINESET symbols/line.sym
>     EXTENT -2200000 -712631 3072800 3840000
>   UNITS meters
> #  SHAPEPATH "E:/ms4w/Apache/htdocs/map01/data/"
> 
> WEB
>   IMAGEPATH "/ms4w/tmp/ms_tmp/"
>   IMAGEURL "/ms_tmp/"
> END
> 
> LAYER
> #  DESCRIPTION "Base Map: DemoMap"
>      NAME "boston1868"
> STATUS DEFAULT
>      TYPE RASTER
>      DATA "E:/ms4w/Apache/htdocs/data/bath_mapserver.tif"
> END # Layer for base map
> 
> 
> END # Mapfile
>  ----------------------------
> 
> BOSTON MAP FILE
> 
> MAP
>   NAME boston1868
>   SIZE 600 400
>   IMAGECOLOR 155 145 220
>      EXTENT  234503.759398496 899884.343580152 238052.631578947
> 902250.994765712
>      EXTENT -2200000 -712631 3072800 3840000
>   UNITS meters
> 
> WEB
>   IMAGEPATH "/ms4w/tmp/ms_tmp/"
>   IMAGEURL "/ms_tmp/"
> END
> 
> LAYER
>      NAME "boston1868"
>      STATUS ON
>      TYPE Raster
>      DATA "E:/ms4w/Apache/htdocs/data/boston1868.tif"
> END # Layer for base map
> 
> 
> END # Mapfile
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> 
> 



More information about the mapserver-users mailing list