[Mapserver-users] [gis newbie] Questions about EXTENT variable
P Wilkerson
1wilkerson at charter.net
Tue Apr 20 08:44:51 PDT 2004
Thank you for your message.
I used gdalinfo to check the EXTENT value that was given as you suggested.
Below is the information that gdalinfo gave me. How do I determine whether
this is the proper EXTENT value?
This is the EXTENT value I was given.
EXTENT 234503.759398496 899884.343580152 238052.631578947 902250.994765712
GDALINFO
Driver: GTiff/GeoTIFF
Size is 4319, 3303
Coordinate System is `'
Origin = (0.000000,0.279655)
Pixel Size = (0.000085,-0.000085)
Metadata:
TIFFTAG_SOFTWARE=IMAGINE TIFF Support
Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved
@(#)$RCSfile: etif.c $ $Revision: 1.9.1.2 $ $Date: 2001/12/05 00:33:12Z $
Corner Coordinates:
Upper Left ( 0.0000000, 0.2796546)
Lower Left ( 0.0000000, 0.0000000)
Upper Right ( 0.3656761, 0.2796546)
Lower Right ( 0.3656761, 0.0000000)
Center ( 0.1828380, 0.1398273)
Peter
----- Original Message -----
From: "Eduardo Patto Kanegae" <eduardo at consultoria.eti.br>
To: "P Wilkerson" <1wilkerson at charter.net>;
<mapserver-users at lists.gis.umn.edu>
Sent: Tuesday, April 20, 2004 11:17 AM
Subject: Re: [Mapserver-users] [gis newbie] Questions about EXTENT variable
> 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