<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">> 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">"karsten vennemann" <karsten@terragis.net></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif"><fwtools@lists.maptools.org></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>
> I'm not sure why the FWTools MapServer is not finding the <br>
> JP2ECW driver if you have it with gdalinfo. However, your <br>
> project isn't going to work the way you want anyway. There <br>
> is no way to assemble a single map in memory to large that it <br>
> will be 500MB when jpeg2000 compressed. You are going to <br>
> need to come up with a scheme to produce the final result in <br>
> chunks with MapServer and then assemble them into a final <br>
> 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>
> Note that the JP2ECW driver only supports writing large <br>
> JPEG2000 files if you set the LARGE_OK creation option on, <br>
> and you are required to have a valid license to do so. So I
<br>
> also don't think you ought to be using the JP2ECW driver to <br>
> 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>