[Geotiff] error using geotifcp
geotiff-admin at remotesensing.org
geotiff-admin at remotesensing.org
Mon Apr 26 16:39:41 EDT 2004
I'm trying to use the listgeo and geotifcp routines from libgeotiff
to edit some tags in geotiff images I'm producing with RSI's ENVI
software (following a suggestion from Tim Rupe of the USGS).
From my geotiff image (envi_sp1_test.tif) I export the tags to an
ascii text file (metadata.txt) using listgeo, and then edit that file
(specifically, I'm changing GeogLinearUnitsGeoKey and
ProjLinerarUnitsGeoKey from Linear_Foot to Linear_Foot_US_Survey)
I then try to create a new geotiff file inserting the new tags using:
geotifcp -g metadata.txt envi_sp1_test.tif envi_sp1_survft_test.tif
but I get the following error:
'arsing Error at 'ModelTypeProjected
Failure in GTIFImport
Its failing on the first of the Keyed_Information fields. Any
suggestions as to what might be going wrong?
The edited metadata.txt file is appended below.
I'm running Mac OS X 10.3.3.
I'm using /geotiff/libgeotiff/geotiff-bin-114-macos10.1.tar.gz
downloaded from ftp.remotesensing.org. That was the latest OS X
version I saw at the site.
Thanks for any help you can provide.
Dave Harding
Output from listgeo (after editing the two UnitGeoKey tags):
Geotiff_Information:
Version: 1
Key_Revision: 1.0
Tagged_Information:
ModelTiepointTag (2,3):
0 0 0
6161286 2006454 0
ModelPixelScaleTag (1,3):
6 6 0
End_Of_Tags.
Keyed_Information:
GTModelTypeGeoKey (Short,1): ModelTypeProjected
GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
GeogLinearUnitsGeoKey (Short,1): Linear_Foot_US_Survey
GeogAngularUnitsGeoKey (Short,1): Angular_Degree
ProjectedCSTypeGeoKey (Short,1): PCS_NAD83_California_2
ProjLinearUnitsGeoKey (Short,1): Linear_Foot_US_Survey
End_Of_Keys.
End_Of_Geotiff.
PCS = 26942 (name unknown)
Projection = 10432 ()
GCS: 4269/NAD83
Datum: 6269/North American Datum 1983
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)
Prime Meridian: 8901/Greenwich (0.000000/ 0d 0' 0.00"E)
Projection Linear Units: 9002/(null) (1.000000m)
Corner Coordinates:
Upper Left (6161286.000,2006454.000)
Lower Left (6161286.000,2004054.000)
Upper Right (6163686.000,2006454.000)
Lower Right (6163686.000,2004054.000)
Center (6162486.000,2005254.000)
--
----------------------------------------------------------------
NASA's Goddard Space Flight Center
Geodynamics Branch
Mail Code 921
Building 33, Room F324
Greenbelt, MD 20771-0001
301-614-6503 MWF 410-535-5066 TTh
301-614-6522 Fax
David.J.Harding at nasa.gov
-----------------------------------------------------------------
More information about the Geotiff
mailing list