Hi Frank,<br><br>Thanks for the information.&nbsp; I had a couple of questions:<br><br>You said below:<br>&quot;<br>I am using the &quot;standalone&quot; 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>). &nbsp;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 &quot;$*&quot;</div>&quot;<br><br><span style="font-weight: bold;">How would the above be revised on a windows system?&nbsp; The exec statement&nbsp; I would replace the /opt with /program files since FWTools is within the &quot;program files&quot; folder on windows.&nbsp; What about the 
</span><br style="font-weight: bold;"><span style="font-weight: bold;">. /opt/FWTools-1.0.0a2/fwtools_env.sh statement?&nbsp; I don't see anything called fwtools_env.sh within the FWTools folder.&nbsp; 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> &lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt; 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>&gt; Hi,<br>&gt;<br>&gt; I need the ability to be able to display ECW and JPEG2000 format files
<br>&gt; within MapServer via a Community Mapbuilder client which sends WMS<br>&gt; requests for the images to MapServer.&nbsp;&nbsp;My current architecture is<br>&gt; PostGreSQL database connected to PostGIS which connects to GeoServer on
<br>&gt; Apache Tomcat and Community Mapbuilder client which sends WMS requests<br>&gt; for the images to GeoServer.&nbsp;&nbsp;I would like to be able to send similar<br>&gt; requests to MapServer for compressed Raster data but instead of going to
<br>&gt; PostGIS I would like to connect to the ECW (which are compressed Raster)<br>&gt; files and JPEG2000 files.<br>&gt; Since I have never installed or used MapServer before I would appreciate<br>&gt; it if someone could give my a high level overview of what I would need
<br>&gt; to do as far as:<br>&gt;<br>&gt; 1.) What should I download for a windows server if all I want to do is<br>&gt; display ECW and JPEG2000 files via WMS?<br>&gt; 2.) What configuration is necessary on the server in order to display
<br>&gt; via WMS for ECW and JPEG2000 files and what location should I place<br>&gt; these files?<br>&gt; 3.) What is the format for both a GetMap and GetCapabilities request on<br>&gt; 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.&nbsp;&nbsp;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.&nbsp;&nbsp;I'll provide details on my configuration.&nbsp;&nbsp;You<br>may find it helpful to take a similar approach.<br><br>I am using the &quot;standalone&quot; FWTools binaries for linux
<br>(<a href="http://fwtools.maptools.org">http://fwtools.maptools.org</a>).&nbsp;&nbsp;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 &quot;$*&quot;<br>-----------------------<br><br>This basically invokes the FWTools mapserver executable with a<br>preconfigured mapfile.&nbsp;&nbsp;The FWTools binaries include essentially all
<br>required libraries.&nbsp;&nbsp;The mapfile looks like the following and includes<br>sufficient metadat to serve via WMS and WCS.&nbsp;&nbsp;I think there may be a<br>bit of extra cruft in there too.<br><br>MAP<br><br>&nbsp;&nbsp; NAME 'LANDSAT'<br>
<br>&nbsp;&nbsp; EXTENT -180 -90 180 90<br>&nbsp;&nbsp; UNITS DD<br>&nbsp;&nbsp; SIZE 600 300<br>&nbsp;&nbsp; IMAGECOLOR 0 255 0<br><br>&nbsp;&nbsp; IMAGETYPE JPEG<br>&nbsp;&nbsp; DEBUG ON<br><br>&nbsp;&nbsp; PROJECTION<br>&nbsp;&nbsp;&nbsp;&nbsp; &quot;init=epsg:4326&quot;<br>&nbsp;&nbsp; END<br><br>OUTPUTFORMAT<br>&nbsp;&nbsp;NAME jpeg2000
<br>&nbsp;&nbsp;DRIVER &quot;GDAL/JP2ECW&quot;<br>&nbsp;&nbsp;MIMETYPE &quot;image/jpeg2000&quot;<br>&nbsp;&nbsp;FORMATOPTION &quot;TARGET=95&quot;<br>&nbsp;&nbsp;IMAGEMODE RGB<br>END<br>#<br># Start of web interface definition<br>#<br><br><br>&nbsp;&nbsp; WEB<br>&nbsp;&nbsp;&nbsp;&nbsp; HEADER web/landsatcgi/demo_header.html
<br>&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE web/landsatcgi/demo.html<br>&nbsp;&nbsp;&nbsp;&nbsp; FOOTER web/landsatcgi/demo_footer.html<br>&nbsp;&nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;ows_title&quot; &quot;Landsat Server&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wcs_label&quot; &quot;Landsat WCS Server&quot;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wcs_keywordlist&quot; &quot;WCS,Landsat&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wcs_onlineresource&quot; &quot;<a href="http://maps.gdal.org/cgi-bin/mapserv_landsat">http://maps.gdal.org/cgi-bin/mapserv_landsat</a>&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp;&nbsp; IMAGEURL &quot;/tmp/&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp; IMAGEPATH &quot;/u/maps/tmp/&quot;<br>&nbsp;&nbsp; END<br><br>&nbsp;&nbsp; LAYER<br>&nbsp;&nbsp;&nbsp;&nbsp; NAME &quot;South America&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp; STATUS ON<br>&nbsp;&nbsp;&nbsp;&nbsp; DEBUG ON<br>&nbsp;&nbsp;&nbsp;&nbsp; TYPE RASTER<br>&nbsp;&nbsp;&nbsp;&nbsp; DATA '/home/warmerda/torrents/data/South America 
Landsat742.ecw'<br>&nbsp;&nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wcs_label &quot;Landsat&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ows_title &quot;Landsat&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ows_srs&nbsp;&nbsp;&quot;EPSG:4269 EPSG:4326&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ows_extent &quot;-82.3512420 -56.8510672 -33.9029540
 13.0499433&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wcs_resolution &quot;0.00025602 0.00025602&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wcs_formats &quot;JPEG PNG24&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wcs_nativeformat &quot;ECW&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp;&nbsp; DUMP TRUE<br>&nbsp;&nbsp;&nbsp;&nbsp; PROJECTION<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;init=epsg:4326&quot;
<br>&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp; 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&amp;VERSION=1.1.1&amp;REQUEST=GetCapabilities">
http://maps.gdal.org/cgi-bin/mapserv_landsat?SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetCapabilities</a><br><br>I hope this helps.<br><br>Good luck,<br>--<br>---------------------------------------+--------------------------------------
<br>I set the clouds in motion - turn up&nbsp;&nbsp; | 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&nbsp;&nbsp;&nbsp;&nbsp;| President OSGeo, <a href="http://osgeo.org">http://osgeo.org</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>John J. Mitchell