Problems reading a TIF file (newbie question)

Brent Fraser bfraser at GEOANALYTIC.COM
Tue Mar 22 14:06:27 EST 2005


Ray,

  The size of the tiff file is ok, and it's mapserver job to resample it to
your smaller window.

  I notice that your LAYER definition is a little terse.  You may need to
include a NAME and STATUS:

  LAYER

    NAME "MyLayer"
    STATUS DEFAULT
    DATA "./data/PAGE48.TIF"
    TYPE RASTER
  END


You may want to test out the map file using MapServer's shp2img command line
program (http://mapserver.gis.umn.edu/utils.html)

Brent

----- Original Message -----
From: "Ray Edge" <ray at SUSTAINABLE.IE>
To: <MAPSERVER-USERS at LISTS.UMN.EDU>
Sent: Tuesday, March 22, 2005 11:42 AM
Subject: Re: [UMN_MAPSERVER-USERS] Problems reading a TIF file (newbie
question)


> Brent,
>
> Thanks for your suggestion, no luck I'm afraid.
>
> The original tiff file is quite large (4724 x 6300 pixels), and I'm trying
> to display it in a much smaller window - what effect does this have?
>
> Ray
>
>
> On Tue, 22 Mar 2005 11:20:16 -0700, Brent Fraser <bfraser at GEOANALYTIC.COM>
> wrote:
>
> >Ray,
> >
> > Try removing the PROJECTION definition from your map file.  Since you
are
> >not moving data from one world coordinate system to another, the
PROJECTION
> >definition is not needed.
> >
> >  But if you want to do coordinate system stuff, likely the correct
> >PROJECTION definition (for the tiff file) would look like:
> >
> >   PROJECTION
> >     "proj=tmerc"
> >     "ellps=mod_airy"
> >     "lon_0=-8"
> >     "lat_0=53.5"
> >     "k=1.000035"
> >     "x_0=200000"
> >     "y_0=250000"
> >   END
> >
> >Brent Fraser
> >
> >
> >
> >----- Original Message -----
> >From: "Ray" <ray at SUSTAINABLE.IE>
> >To: <MAPSERVER-USERS at LISTS.UMN.EDU>
> >Sent: Tuesday, March 22, 2005 9:03 AM
> >Subject: [UMN_MAPSERVER-USERS] Problems reading a TIF file (newbie
question)
> >
> >



More information about the mapserver-users mailing list