[maplab-users] File extensions

Zak James zak-ms at hoppsan.org
Fri Jun 25 13:50:11 EDT 2004


Hi Ken,

I will file a bug on this and try to get the fix included in the next 
release of Maplab (2.2) which should be coming within the next few 
weeks. Thanks for the information.

zak
--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca


On Jun 25, 2004, at 12:24 PM, Ken Sanderson wrote:

> 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:
>
>   LAYER
>     NAME "Background Image"
>     STATUS OFF
>     DATA "../../portaldem"
>     TYPE RASTER
>     UNITS METERS
>     SIZEUNITS PIXELS
>     TOLERANCE 0
>     TOLERANCEUNITS PIXELS
>   END
>
> To get it to work all I did was change DATA to "../../portaldem.tif".
>
> Ken
>
> -----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
>
>
> Ken,
>
> 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
> --
> Zak James
> Applications and Software Development
> DM Solutions Group Inc.
> http://www.dmsolutions.ca
>
>
> 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
> the
>> 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
>>
>
>
>
> _______________________________________________
> 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