I am slowly working through a series of errors as I try and get a raster
file imported and displayed in grass. Now that I have the gdal library
installed (I used r.in.gdal -o input=/home/kwythers/tmp/DRG1644.TIF
output=drg1644, to read this in) I am on the next error:
Warning 1: /home/kwythers/tmp/DRG1644.TIF:wrong data type 2 for
"GeoKeyDirectory"; tag ignored
WARNING: G_set_window(): Illegal latitude for North
Does this mean that I incorrectly specified the coordinates for the
location?
--
Kirk R. Wythers Department of Forest Resources
Tel: 612.625.2261 University of Minnesota
Fax: 612.625.521 1530 Cleveland Ave. N
Email: kwythers@umn.edu Saint Paul, MN 55108 USA
Kirk R. Wythers wrote:
I am slowly working through a series of errors as I try and get a raster
file imported and displayed in grass. Now that I have the gdal library
installed (I used r.in.gdal -o input=/home/kwythers/tmp/DRG1644.TIF
output=drg1644, to read this in) I am on the next error:
Warning 1: /home/kwythers/tmp/DRG1644.TIF:wrong data type 2 for
"GeoKeyDirectory"; tag ignored
WARNING: G_set_window(): Illegal latitude for North
Does this mean that I incorrectly specified the coordinates for the
location?
Kirk,
This would appear to mean that the "geo" portion of the geotiff info in
the file in question is corrupt. It may actually be the file, or it might
be that the geotiff library was built improperly somehow. Can you make
the DRG file available somewhere I could download it and check it myself?
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
Kirk R. Wythers wrote:
I am slowly working through a series of errors as I try and get a raster
file imported and displayed in grass. Now that I have the gdal library
installed (I used r.in.gdal -o input=/home/kwythers/tmp/DRG1644.TIF
output=drg1644, to read this in) I am on the next error:
Warning 1: /home/kwythers/tmp/DRG1644.TIF:wrong data type 2 for
"GeoKeyDirectory"; tag ignored
WARNING: G_set_window(): Illegal latitude for North
Does this mean that I incorrectly specified the coordinates for the
location?
Probably not; this is a known problem with importing rasters into
Lat/Lon locations.
When importing rasters which lack georeferencing information, import
utilities normally position the lower-left corner at the origin of the
location's coordinate system, and use a resolution of one unit to one
cell. For projected coordinates (units of feet or metres), this works
fine; for Lat/Lon (units of degrees), this puts the top of the raster
above 90N, which isn't allowed.
As a workaround, you can use g.setproj to change the projection to
X-Y, import the raster, set the raster's boundaries, then change the
projection back again.
--
Glynn Clements <glynn.clements@virgin.net>