[mapserver-users] Simple MrSid map file
Brent Fraser
bfraser at geoanalytic.com
Sun Feb 10 20:46:56 PST 2008
Ken,
Here's a minimal Map file (edited from the well-known Itasca demo data):
MAP
NAME ITASCA
STATUS ON
IMAGETYPE PNG
SIZE 600 600
# Projection - same as input data (UTM Zone 15, NAD83),
# so no need to have MapServer re-project
UNITS METERS
# [minx] [miny] [maxx] [maxy] in meters
EXTENT 388107 5203120 500896 5310243
#---------------------------------------------------------
WEB
IMAGEPATH "C:\Inetpub\wwwroot\tmp"
IMAGEURL "\tmp"
END
#---------------------------------------------------------
LAYER
NAME drgs
TYPE RASTER
STATUS ON
DATA "C:\Inetpub\wwwroot\workshop-5.0\data\drgncimq1942.tif"
END
END # Map File
Not that I've tested it...
Brent
> Brent,
>
> Thanks for the response. I appreciate the *watch* items you included! and
> I
> think that I have all that info available.
>
> I think my main problem is that I cannot separate out what is *nice* in a
> mapfile from what is *necessary* ... most of the examples I have been able
> to find have multiple layers, labels, scales etc. that I may use one day,
> but I have to comment them out because they don't apply. It's why I'm
> trying to find the world's simplest mapfile that works for displaying
> raster
> data... MrSID data if possible. A sort of a "Hello Raster (world)"
> Mapfile
> for Mapserver.
>
> I have been reading more about mapfiles @
> http://umn.mapserver.ch/index_en.php . This has an astonishing amount of
> information and is well organized.
>
> Perhaps I should wait until I am over this bad head cold before I plow
> back
> into it ;>)
>
> Sincerest thanks!
>
> Ken
>
>
>
> ----- Original Message -----
> From: "Brent Fraser" <bfraser at geoanalytic.com>
> To: "Ken S. Elvehjem" <elvehjem at runestone.net>
> Cc: <mapserver-users at lists.osgeo.org>
> Sent: Sunday, February 10, 2008 8:03 PM
> Subject: Re: [mapserver-users] Simple MrSid map file
>
>
>> Ken,
>>
>> I don't use MrSID, but here are some general things to look at:
>>
>> 1. Does your MrSID file have geo-referencing and coordinate system
>> definition information with it? Use GDAL's "gdalinfo" to find out.
>>
>> 2. Do your EXTENTS (with the related PROJECTION and UNITS) in the map
>> file
>> actually cover/intersect the MrSID file?
>>
>> 3. Check your DATA value in the map file's LAYER. Is the path correct?
>> Is Mapserver able to access the file?
>>
>> Brent Fraser
>> GeoAnalytic Inc.
>> Calgary, Alberta
>>
>>
>>> Hi,
>>>
>>> I am trying to make ms4w show me a MrSid file. Eventually, I would
>>> like
>>> to be able to send center coordinates and dimensions and have it return
>>> a
>>> JPG.
>>>
>>> For now, however, I have apparently gotten into a tail chasing game --
>>> no
>>> matter what I try, I seem to need to do something else first.
>>>
>>> I'm hoping that someone who uses MrSid files w/ ms4w could send me a
>>> "simplest" map file and html code that will allow me to display MrSid
>>> data
>>> over the web. This will give me a "solid place to stand" (or a safe
>>> position for a retreat) and I can add components and code from there.
>>>
>>> My MrSid file happens to be the NAIP file for McCook Co, SD. The file
>>> structure is like this: SD/mccook/..... files here.
>>>
>>> Sincerely,
>>>
>>> Ken
>>>
>>>
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>>
>>
>>
>
>
More information about the MapServer-users
mailing list