[maplab-users] File extensions

Ken Sanderson ken at rockies.ca
Fri Jun 25 12:24:32 EDT 2004

I just add a layer object, same as I would for a shape file, then under
the DATA attribute I browse to select the tif file (have to select all
files to see it). 

Here is what the layer looks like in the map file before I edit:

    NAME "Background Image"
    DATA "../../portaldem"

To get it to work all I did was change DATA to "../../portaldem.tif".


-----Original Message-----
From: Zak James [mailto:zak-ms at hoppsan.org] 
Sent: June 24, 2004 7:51 PM
To: Ken Sanderson
Cc: maplab-users at lists.maptools.org
Subject: Re: [maplab-users] File extensions


Can you be more explicit about what steps you are taking to add the 
tiff file? What maplab layer settings do you have and what does the 
layer look like in the saved mapfile before you edit it? Can you append 
all or part of the file?

Shape files are handled differently from other types of files and do 
not need .shp appended to them.

Mapserver can resolve both absolute and relative paths so the path in 
the DATA tag is not a problem.

Zak James
Applications and Software Development
DM Solutions Group Inc.

On Jun 24, 2004, at 7:40 PM, Ken Sanderson wrote:

> Hello.
> Been having a problem with getting a raster image to work properly
> after
> adding it to the map file via mapedit. I kept getting PHP errors on
> top of the page.
> I tried a number of things and didn't get it to work until I edited 
> the map file by adding .tif to the raster image listed. Mapedit isnt 
> saving the extension of the selected file to the map file. This seems 
> to work with shp files no problem, but apparently a problem with 
> tif's.
> What is the general scoop on this? Should I be editing my map file and

> putting .shp extensions on everything as well? Is there a way to make 
> mapedit save the extension always instead of me having to go edit it?
> Also on a somewhat related note I noticed that Mapedit stores the path

> information in the DATA attribute for each layer. I assume this isnt 
> necessary since I have the path information in the shapepath 
> attribute? I noticed the tutorial doesn't have paths, just the file 
> name.
> Thanks,
> Ken
> _______________________________________________
> Maplab-users mailing list
> Maplab-users at lists.maptools.org 
> http://lists.maptools.org/mailman/listinfo/maplab-users

More information about the Maplab-users mailing list