Try using a different co flag, "worldfile=yes". This will create a .wld file that you will need to rename to .tfw. Maybe the "TFW=yes" option isn't working in that version of FWTools.<br>--<br><br>
<div class="gmail_quote">On Wed, Sep 2, 2009 at 5:46 AM, David R Robison <span dir="ltr"><<a href="mailto:drrobison@openroadsconsulting.com">drrobison@openroadsconsulting.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Here is the output of the gdalinfo. The translate command I am using is
as follows, yet I still don't get any .tfw file. Any thoughts?<br>
<tt><br>
gdal_translate -of GTiff -co "TFW=YES" -co "TILED=YES" -co
"BIGTIFF=YES" SegmentA.sid A.tif<br>
<br>
Driver: MrSID/Multi-resolution Seamless Image Database (MrSID)<br>
Files: SegmentA.sid<br>
SegmentA.sdw<br>
SegmentA.sid.aux.xml<br>
Size is 56536, 139890<br>
Coordinate System is:<br>
PROJCS["VDOT Project Coordinate System",<br>
GEOGCS["GCS_North_American_1983",<br>
DATUM["North_American_Datum_1983",<br>
SPHEROID["GRS_1980",6378137.0,298.257222101]],<br>
PRIMEM["Greenwich",0.0],<br>
UNIT["Degree",0.0174532925199433]],<br>
PROJECTION["Lambert_Conformal_Conic_2SP"],<br>
PARAMETER["False_Easting",3281030.18333],<br>
PARAMETER["False_Northing",0.0],<br>
PARAMETER["Central_Meridian",-78.5],<br>
PARAMETER["Standard_Parallel_1",38.03333333333333],<br>
PARAMETER["Standard_Parallel_2",39.2],<br>
PARAMETER["Scale_Factor",1.00006],<br>
PARAMETER["Latitude_Of_Origin",37.6666666666],<br>
UNIT["Foot_US",0.3048006096012192]]<br>
Metadata:<br>
IMAGE__COMPRESSION_BLOCK_SIZE=2048<br>
IMAGE__COMPRESSION_GAMMA=2.000000<br>
IMAGE__COMPRESSION_NLEV=9<br>
IMAGE__COMPRESSION_VERSION=2,0,0<br>
IMAGE__COMPRESSION_WEIGHT=4.000000<br>
IMAGE__CREATION_DATE=Mon Jul 13 19:38:30 2009<br>
<br>
<br>
IMAGE__DYNAMIC_RANGE_LEVEL=127.500000<br>
IMAGE__DYNAMIC_RANGE_WINDOW=256.000000<br>
IMAGE__ENCODING_APPLICATION=GeoExpress 6.1.1.1513<br>
IMAGE__INPUT_FILE_SIZE=9332487880.000000<br>
IMAGE__INPUT_FORMAT=TIFF w/ World File<br>
IMAGE__INPUT_NAME=O:\orthomaster\71080712_9-A\final\SegmentA-9.tif,
O:\orthomaster\71080712_9-A\final\SegmentA-8.tif,
O:\orthomaster\71080712_9-A\final\SegmentA-7.tif,
O:\orthomaster\71080712_9-A\final\SegmentA-6.tif,
O:\orthomaster\71080712_9-A\final\SegmentA-5.tif,
O:\orthomaster\71080712_9-A\final\SegmentA-4.tif,
O:\orthomaster\71080712_9-A\final\SegmentA-3.tif,
O:\orthomaster\71080712_9-A\final\SegmentA-2.tif,
O:\orthomaster\71080712_9-A\final\SegmentA-1.tif<br>
IMAGE__TARGET_COMPRESSION_RATIO=20.000000<br>
PShop__ImageResources=<br>
IMAGE__WIDTH=56536<br>
IMAGE__HEIGHT=139890<br>
IMAGE__NO_DATA_VALUE=255,255,255<br>
IMAGE__COLOR_SCHEME=0<br>
IMAGE__DATA_TYPE=0<br>
IMAGE__BITS_PER_SAMPLE=8<br>
IMAGE__XY_ORIGIN=3639956.250000,478522.750000<br>
IMAGE__X_RESOLUTION=0.500000<br>
IMAGE__Y_RESOLUTION=0.500000<br>
VERSION=MG2<br>
Image Structure Metadata:<br>
INTERLEAVE=PIXEL<br>
Corner Coordinates:<br>
Upper Left ( 0.0, 0.0)<br>
Lower Left ( 0.0,139890.0)<br>
Upper Right (56536.0, 0.0)<br>
Lower Right (56536.0,139890.0)<br>
Center (28268.0,69945.0)<br>
Band 1 Block=1024x128 Type=Byte, ColorInterp=Red<br>
Minimum=6.000, Maximum=255.000, Mean=206.491, StdDev=80.024<br>
Overviews: 28268x69945, 14134x34973, 7067x17487, 3534x8744,
1767x4372, 884x2186, 442x1093, 221x547, 111x274<br>
Band 2 Block=1024x128 Type=Byte, ColorInterp=Green<br>
Minimum=16.000, Maximum=255.000, Mean=207.794, StdDev=77.551<br>
Overviews: 28268x69945, 14134x34973, 7067x17487, 3534x8744,
1767x4372, 884x2186, 442x1093, 221x547, 111x274<br>
Band 3 Block=1024x128 Type=Byte, ColorInterp=Blue<br>
Minimum=3.000, Maximum=255.000, Mean=203.241, StdDev=84.977<br>
Overviews: 28268x69945, 14134x34973, 7067x17487, 3534x8744,
1767x4372, 884x2186, 442x1093, 221x547, 111x274<br>
</tt><br>
<br>
Even Rouault wrote:
<blockquote type="cite"><div class="im">
<pre>Then my guess is that your .sid is not georeferenced or the georeferencing is
not recognized by GDAL. You should check with the output of gdalinfo.
Selon David R Robison <a href="mailto:drrobison@openroadsconsulting.com" target="_blank"><drrobison@openroadsconsulting.com></a>:
</pre>
</div><blockquote type="cite">
<pre>When I use [-co "TFW=yes"] I do not get a .tfw file. Could it be because
I am translating only a portion of the MrSID? I am using FWTools 2.4.1.
David
Roger André wrote:
</pre>
<blockquote type="cite">
<pre><div class="im">Hi David,
I believe the problem is probably with GeoServer, and not with gdal.
I think I recall getting this error in the past when I tried to
register a GeoTIFF as a coverage in GeoServer, and that it was because
I lacked a sidecar .tfw worldfile for my image. You can create one as
part of the gdal_translate command by adding the following creation
option, [ -co "TFW=yes"].
If that doesn't work, I would test that the GeoTIFF works correctly in
another GIS application, and if so, would then direct the question
regarding the error to the GeoServer mailing list.
Best of luck,
Roger
--
On Thu, Aug 27, 2009 at 1:15 PM, David R Robison
<<a href="mailto:drrobison@openroadsconsulting.com" target="_blank">drrobison@openroadsconsulting.com</a>
</div><div><div></div><div class="h5"><a href="mailto:drrobison@openroadsconsulting.com" target="_blank"><mailto:drrobison@openroadsconsulting.com></a>> wrote:
I have a large MrSID that I am trying to work with. I am using
gdal_translate to split it into smaller files and convert them to
GeoTIFF. The command I am using is:
gdal_translate -of GTiff -srcwin 0 0 1000 1000 -co "TILED=YES"
in.sid out.tif
However, when I try to add it to geoserver I get the following error:
org.geotools.data.</div></div>DataSourceException: GEOTIFF Module Error Report
Unknown Raster to Model configuration.
ModelPixelScaleTag: NOT AVAILABLE
ModelTiePointTag: NOT AVAILABLE
ModelTransformationTag: NOT AVAILABLE
GeoKey #1: Key = 1, Value = null
GeoKey #2: Key = 1024, Value = 1
GeoKey #3: Key = 1025, Value = 1
GeoKey #4: Key = 1026, Value = VDOT Project Coordinate System
GeoKey #5: Key = 2048, Value = 4269
GeoKey #6: Key = 2049, Value = GCS_North_American_1983
GeoKey #7: Key = 2054, Value = 9102
GeoKey #8: Key = 2057, Value = 6378137.0
GeoKey #9: Key = 2059, Value = 298.257222101
GeoKey #10: Key = 3072, Value = 32767
GeoKey #11: Key = 3074, Value = 32767
GeoKey #12: Key = 3075, Value = 8
GeoKey #13: Key = 3076, Value = 9003
GeoKey #14: Key = 3078, Value = 38.03333333333333
GeoKey #15: Key = 3079, Value = 39.2
GeoKey #16: Key = 3084, Value = -78.5
GeoKey #17: Key = 3085, Value = 37.6666666666
GeoKey #18: Key = 3086, Value = 1000059.9999989839
at
org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:259)
at
</pre>
</blockquote><div class="im">
<pre>org.geotools.gce.geotiff.GeoTiffFormat.getReader(GeoTiffFormat.java:261)
</pre>
<blockquote type="cite">
<pre> at
</pre>
</blockquote>
<pre>org.geotools.gce.geotiff.GeoTiffFormat.getReader(GeoTiffFormat.java:222)
</pre>
</div><blockquote type="cite">
<pre><div class="im"> Any idea what I am doing wrong? I am new to GIS imagery.
Thanks, David
--
David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: <a href="mailto:drrobison@openroadsconsulting.com" target="_blank">drrobison@openroadsconsulting.com</a></div>
<a href="mailto:drrobison@openroadsconsulting.com" target="_blank"><mailto:drrobison@openroadsconsulting.com></a><div class="im">
web: <a href="http://openroadsconsulting.com" target="_blank">http://openroadsconsulting.com</a>
blog: <a href="http://therobe.blogspot.com" target="_blank">http://therobe.blogspot.com</a>
book: <a href="http://www.xulonpress.com/book_detail.php?id=2579" target="_blank">http://www.xulonpress.com/book_detail.php?id=2579</a>
This e-mail communication (including any attachments) may contain
confidential and/or privileged material intended solely for the
individual or entity to which it is addressed. If you are not the
intended recipient, you should immediately stop reading this
message and delete it from all computers that it resides on. Any
unauthorized reading, distribution, copying or other use of this
communication (or its attachments) is strictly prohibited. If you
have received this communication in error, please notify us
immediately.
______________________________</div>_________________
FWTools mailing list
<a href="mailto:FWTools@lists.maptools.org" target="_blank">FWTools@lists.maptools.org</a> <a href="mailto:FWTools@lists.maptools.org" target="_blank"><mailto:FWTools@lists.maptools.org></a><div class="im">
<a href="http://lists.maptools.org/mailman/listinfo/fwtools" target="_blank">http://lists.maptools.org/mailman/listinfo/fwtools</a>
<a href="http://fwtools.maptools.org/" target="_blank">http://fwtools.maptools.org/</a>
</div></pre>
</blockquote><div class="im">
<pre>--
David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: <a href="mailto:drrobison@openroadsconsulting.com" target="_blank">drrobison@openroadsconsulting.com</a>
web: <a href="http://openroadsconsulting.com" target="_blank">http://openroadsconsulting.com</a>
blog: <a href="http://therobe.blogspot.com" target="_blank">http://therobe.blogspot.com</a>
book: <a href="http://www.xulonpress.com/book_detail.php?id=2579" target="_blank">http://www.xulonpress.com/book_detail.php?id=2579</a>
This e-mail communication (including any attachments) may contain
confidential and/or privileged material intended solely for the individual or
entity to which it is addressed. If you are not the intended recipient, you
should immediately stop reading this message and delete it from all computers
that it resides on. Any unauthorized reading, distribution, copying or other
use of this communication (or its attachments) is strictly prohibited. If
you have received this communication in error, please notify us immediately.
</pre>
</div></blockquote>
<pre> </pre>
</blockquote>
<br>
<pre cols="72">--
David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: <a href="mailto:drrobison@openroadsconsulting.com" target="_blank">drrobison@openroadsconsulting.com</a><div class="im">
web: <a href="http://openroadsconsulting.com" target="_blank">http://openroadsconsulting.com</a>
blog: <a href="http://therobe.blogspot.com" target="_blank">http://therobe.blogspot.com</a>
book: <a href="http://www.xulonpress.com/book_detail.php?id=2579" target="_blank">http://www.xulonpress.com/book_detail.php?id=2579</a>
This e-mail communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed. If you are not the intended recipient, you should immediately stop reading this message and delete it from all computers that it resides on. Any unauthorized reading, distribution, copying or other use of this communication (or its attachments) is strictly prohibited. If you have received this communication in error, please notify us immediately.
</div></pre>
</div>
</blockquote></div><br>