Problems reading a TIF file (newbie question)

Brent Fraser bfraser at GEOANALYTIC.COM
Tue Mar 22 11:15:34 PST 2005


Ray,

   I see that Frank and blaise have already commented on the pathing and
file naming.  The LAYER's DATA value is relative to the SHAPEPATH, so if you
have

    SHAPEPATH "./data/"

your DATA statement should look like:

    DATA "PAGE48.TIF"  (or DATA "page48.tif" if you've followed Frank's
suggestion)


I'm not  a Linux guy but you may want to try

SHAPEPATH "data/"

as I'm not sure Mapserver recognizes "./" as a relative path...

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