Hi Frank,<br><br>I now able to display ECW type files via mapserver within a community mapbuilder web browser client.&nbsp; I had question on part of the sample map file that you sent:<br><span style="background-color: rgb(255, 204, 0);">
OUTPUTFORMAT</span><br style="background-color: rgb(255, 204, 0);"><span style="background-color: rgb(255, 204, 0);"> &nbsp;NAME jpeg2000</span><br style="background-color: rgb(255, 204, 0);"><span style="background-color: rgb(255, 204, 0);">
  &nbsp;DRIVER &quot;GDAL/JP2ECW&quot;</span><br style="background-color: rgb(255, 204, 0);"><span style="background-color: rgb(255, 204, 0);">  &nbsp;MIMETYPE &quot;image/jpeg2000&quot;</span><br style="background-color: rgb(255, 204, 0);">
<span style="background-color: rgb(255, 204, 0);">  &nbsp;FORMATOPTION &quot;TARGET=95&quot;</span><br style="background-color: rgb(255, 204, 0);"><span style="background-color: rgb(255, 204, 0);">  &nbsp;IMAGEMODE RGB</span><br style="background-color: rgb(255, 204, 0);">
<span style="background-color: rgb(255, 204, 0);">END<br><br><span style="background-color: rgb(0, 0, 0);"></span><span style="background-color: rgb(255, 255, 255);">What does TARGET=95 mean?<br><br>I am having good success (as far as image quality and small size downloaded to the browser) with displaying my image data as jpeg within community mapbuilder as an example
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;FormatList&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Format current=&quot;1&quot;&gt;image/jpeg&lt;/Format&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/FormatList&gt;<br>But when I try displaying it as a png as an example.&nbsp; I get poor quality as far as the color.
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;FormatList&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Format current=&quot;1&quot;&gt;image/png&lt;/Format&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/FormatList&gt;<br>The reason why I would like to sometimes be able to display as png is that when displaying as jpeg I always have to display as the bottom layer because if it is above any other layer then it completely covers any layer above it even if the jpeg has no data(meaning white space).
<br>Is there any parameters that can be changed within </span></span><span style="background-color: rgb(255, 255, 255);">OUTPUTFORMAT that will allow a better color quality png image to be displayed within the web browser?
<br><br>What application do you use to create your .ECW files?<br><br>Thanks,<br><br>John J. Mitchell<br></span><br><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