<br><font size=2 face="sans-serif">You can now create giant Tiffs (bigtiff)
using GDAL and then convert to jpeg2000 using the free jpeg2000 Kakadu
binaries. Last year Kakadu introduced support for bigtiffs and has for
a while had the ability to copy the geotiff header into the Jpeg2000 file
(making a geoJpeg2000). </font>
<br>
<br><font size=2 face="sans-serif">This will work for only 8 or 16bit images
(not 32bit float or higher).</font>
<br>
<br><font size=2 face="sans-serif">example for converting a GeoTiff (lossless):</font>
<br><font size=2 face="sans-serif">&gt; kdu_compress -i input_geo.tif -o
output_geo.jp2 Creversible=yes Clayers=16</font>
<br>
<br><font size=2 face="sans-serif">leave off Creversible=yes to incur a
lossy conversion (w/ default quality) which should result in a smaller
file size. I bet it would be hard to see that any loss has occurred using
the default but that can also be changed.</font>
<br>
<br><font size=2 face="sans-serif">Clayers - I'm not a familiar with but
it was used on the example page. I assume it is the number of levels. So
for smaller files this might be too many?</font>
<br>
<br><font size=2 face="sans-serif">good luck,</font>
<br><font size=2 face="sans-serif">Trent</font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">&quot;karsten vennemann&quot; &lt;karsten@terragis.net&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">&lt;fwtools@lists.maptools.org&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">02/17/2011 10:46 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [FWTools] gdal JPEG2000 driver and
shp2img , MapServer</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Sent by:</font>
<td><font size=1 face="sans-serif">fwtools-bounces@lists.maptools.org</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Thanks Frank,<br>
<br>
&gt; I'm not sure why the FWTools MapServer is not finding the <br>
&gt; JP2ECW driver if you have it with gdalinfo. &nbsp;However, your <br>
&gt; project isn't going to work the way you want anyway. &nbsp;There <br>
&gt; is no way to assemble a single map in memory to large that it <br>
&gt; will be 500MB when jpeg2000 compressed. &nbsp;You are going to <br>
&gt; need to come up with a scheme to produce the final result in <br>
&gt; chunks with MapServer and then assemble them into a final <br>
&gt; product as a post processing step.<br>
<br>
Ok I was not aware that all of this is happening in memory ;) with JPEG2000
format... I could script the creation of tiles via MapServer and assemble
the result later yes... but<br>
 <br>
&gt; Note that the JP2ECW driver only supports writing large <br>
&gt; JPEG2000 files if you set the LARGE_OK creation option on, <br>
&gt; and you are required to have a valid license to do so. &nbsp;So I
<br>
&gt; also don't think you ought to be using the JP2ECW driver to <br>
&gt; assemble your final jpeg2000 product.<br>
<br>
... then this fact does not really leave that as an option... <br>
<br>
..there seems to be not really many (any?) formats or libraries that freely
support creation of huge images / compression of images I guess . Or are
there any other good OS alternatives to create compressed imagery ?<br>
<br>
One option would be to convince my client ot accept a collection of tiles
as tiff e.g. which would be a better way to do this anyway ...<br>
Cheers<br>
Karsten<br>
<br>
_______________________________________________<br>
FWTools mailing list<br>
FWTools@lists.maptools.org<br>
</font></tt><a href=http://lists.maptools.org/mailman/listinfo/fwtools><tt><font size=2>http://lists.maptools.org/mailman/listinfo/fwtools</font></tt></a><tt><font size=2><br>
</font></tt><a href=http://fwtools.maptools.org/><tt><font size=2>http://fwtools.maptools.org/</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>