Serving ECW's with Mapserver 4.8.1

a j sc0rp10nau at YAHOO.COM.AU
Wed Mar 1 02:59:47 PST 2006


Hi Brent,

Thanks for the help. It worked. Also, I had to set the UNITS and EXTENT in METERS as the raster was projected in that. Your post helped see that. 

Thanks again. 
Cheers
Ajay


Brent Fraser <bfraser at geoanalytic.com> wrote: Ajay,

  Try adding the following to your LAYER definition for the ECW files:

    PROJECTION
      "AUTO"
    END


  Assuming that:
    1. your ECW file has a coordinate system definition
    2. you have GDAL with ECW capability linked in to mapserver
    3. your map file EXTENTS and UNITS are set so the mapserver generated
graphics geographically overlap your ECW file,

  then you should get the ECW contents rendered into the output image.

You mention that you have many ecw's across zones 54 to 56.   If you've many
ecw files, you'll likely want to create a TILEINDEX layer to access them.
And in that case you'll actually have to create one LAYER definition (and
one TILEINDEX) for each zone.  And you may need to explicitly state the
coordinate system in each layer:

    PROJECTION
     "proj=utm"
     "zone=54"
     "north"
     "datum=WGS84"
     "no_defs"
    END
(you'll need to find out which datum or ellipsoid to use).

Brent Fraser
GeoAnalytic Inc.
Calgary, Alberta

----- Original Message ----- 
From: "Ajay Ranipeta" 
To: 
Sent: Thursday, February 23, 2006 3:10 AM
Subject: [UMN_MAPSERVER-USERS] Serving ECW's with Mapserver 4.8.1


> Hi guys,
>
> I have some ecw's that I wanna serve with Mapserver, but I can't seem to
get
> them to display. These ecw's are projected in GDA94 with Zones 54-56. No
> error's come up and other layers (shapes, wbmp's, tiff) come up fine. I
use
> the CGI mapserver which obviously has GDAL with ECW's already included.
I've
> gone thru' a few posts regarding ecw's and but no help. Also, as one post
> suggested, i've got the header info within the image itself, but that's no
> help either.
>
> I'm sure i'm missing something obvious, so any help would be greatly
> appreciated.
>
> cheers,
> Ajay



		
---------------------------------
Do you Yahoo!?
  Find a local business fast with Yahoo! Local Search
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060301/d05bd89b/attachment.htm>


More information about the MapServer-users mailing list