Hi Frank,<br><br>Thanks for the information. I had a couple of questions:<br><br>You said below:<br>"<br>I am using the "standalone" FWTools binaries for linux<br>(<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://fwtools.maptools.org/" target="_blank">
http://fwtools.maptools.org</a>). In my Apache cgi-bin directory I have<br>the script mapserv_landsat which looks like this:<br><br>-----------------------<br>#!/bin/sh<br><br>export MS_MAPFILE=/home/warmerda/maps<div style="direction: ltr;">
/landsat.map<br>. /opt/FWTools-1.0.0a2/fwtools_env.sh<br>exec /opt/FWTools-1.0.0a2/bin/mapserv "$*"</div>"<br><br><span style="font-weight: bold;">How would the above be revised on a windows system? The exec statement I would replace the /opt with /program files since FWTools is within the "program files" folder on windows. What about the
</span><br style="font-weight: bold;"><span style="font-weight: bold;">. /opt/FWTools-1.0.0a2/fwtools_env.sh statement? I don't see anything called fwtools_env.sh within the FWTools folder. What is #!/bin/sh is this a linux statement?
<br><br></span>Thanks,<br><br>John J. Mitchell<br> <div><span class="gmail_quote">On 11/23/06, <b class="gmail_sendername">Frank Warmerdam</b> <<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">John Mitchell wrote:<br>> Hi,<br>><br>> I need the ability to be able to display ECW and JPEG2000 format files
<br>> within MapServer via a Community Mapbuilder client which sends WMS<br>> requests for the images to MapServer. My current architecture is<br>> PostGreSQL database connected to PostGIS which connects to GeoServer on
<br>> Apache Tomcat and Community Mapbuilder client which sends WMS requests<br>> for the images to GeoServer. I would like to be able to send similar<br>> requests to MapServer for compressed Raster data but instead of going to
<br>> PostGIS I would like to connect to the ECW (which are compressed Raster)<br>> files and JPEG2000 files.<br>> Since I have never installed or used MapServer before I would appreciate<br>> it if someone could give my a high level overview of what I would need
<br>> to do as far as:<br>><br>> 1.) What should I download for a windows server if all I want to do is<br>> display ECW and JPEG2000 files via WMS?<br>> 2.) What configuration is necessary on the server in order to display
<br>> via WMS for ECW and JPEG2000 files and what location should I place<br>> these files?<br>> 3.) What is the format for both a GetMap and GetCapabilities request on<br>> the client side which in my case is Community Mapbuilder.
<br><br>John,<br><br>You don't specify what platform you want to deploy on. The trick with<br>JPEG2000 and ECW support is getting a binary build for your platform that<br>has these formats included.<br><br>I have a service at
<a href="http://maps.gdal.org">http://maps.gdal.org</a> serving a big south american<br>landsat scene from ecw. I'll provide details on my configuration. You<br>may find it helpful to take a similar approach.<br><br>I am using the "standalone" FWTools binaries for linux
<br>(<a href="http://fwtools.maptools.org">http://fwtools.maptools.org</a>). In my Apache cgi-bin directory I have<br>the script mapserv_landsat which looks like this:<br><br>-----------------------<br>#!/bin/sh<br><br>export MS_MAPFILE=/home/warmerda/maps/landsat.map
<br>. /opt/FWTools-1.0.0a2/fwtools_env.sh<br>exec /opt/FWTools-1.0.0a2/bin/mapserv "$*"<br>-----------------------<br><br>This basically invokes the FWTools mapserver executable with a<br>preconfigured mapfile. The FWTools binaries include essentially all
<br>required libraries. The mapfile looks like the following and includes<br>sufficient metadat to serve via WMS and WCS. I think there may be a<br>bit of extra cruft in there too.<br><br>MAP<br><br> NAME 'LANDSAT'<br>
<br> EXTENT -180 -90 180 90<br> UNITS DD<br> SIZE 600 300<br> IMAGECOLOR 0 255 0<br><br> IMAGETYPE JPEG<br> DEBUG ON<br><br> PROJECTION<br> "init=epsg:4326"<br> END<br><br>OUTPUTFORMAT<br> NAME jpeg2000
<br> DRIVER "GDAL/JP2ECW"<br> MIMETYPE "image/jpeg2000"<br> FORMATOPTION "TARGET=95"<br> IMAGEMODE RGB<br>END<br>#<br># Start of web interface definition<br>#<br><br><br> WEB<br> HEADER web/landsatcgi/demo_header.html
<br> TEMPLATE web/landsatcgi/demo.html<br> FOOTER web/landsatcgi/demo_footer.html<br> METADATA<br> "ows_title" "Landsat Server"<br> "wcs_label" "Landsat WCS Server"
<br> "wcs_keywordlist" "WCS,Landsat"<br> "wcs_onlineresource" "<a href="http://maps.gdal.org/cgi-bin/mapserv_landsat">http://maps.gdal.org/cgi-bin/mapserv_landsat</a>"<br>
END<br> IMAGEURL "/tmp/"<br> IMAGEPATH "/u/maps/tmp/"<br> END<br><br> LAYER<br> NAME "South America"<br> STATUS ON<br> DEBUG ON<br> TYPE RASTER<br> DATA '/home/warmerda/torrents/data/South America
Landsat742.ecw'<br> METADATA<br> wcs_label "Landsat"<br> ows_title "Landsat"<br> ows_srs "EPSG:4269 EPSG:4326"<br> ows_extent "-82.3512420 -56.8510672 -33.9029540
13.0499433"<br> wcs_resolution "0.00025602 0.00025602"<br> wcs_formats "JPEG PNG24"<br> wcs_nativeformat "ECW"<br> END<br> DUMP TRUE<br> PROJECTION<br> "init=epsg:4326"
<br> END<br> END<br>END<br><br>Note that to use an ecw file (or jpeg2000 file) you just specify the<br>name in the DATA line for the layer.<br><br>The getcapabilities url for my service is:<br><br><a href="http://maps.gdal.org/cgi-bin/mapserv_landsat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities">
http://maps.gdal.org/cgi-bin/mapserv_landsat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities</a><br><br>I hope this helps.<br><br>Good luck,<br>--<br>---------------------------------------+--------------------------------------
<br>I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam
</a><br>and watch the world go round - Rush | President OSGeo, <a href="http://osgeo.org">http://osgeo.org</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>John J. Mitchell