[GRASSLIST:1535] Re: r.in.gdal and a GeoTIFF

Markus Neteler neteler at itc.it
Wed Oct 22 04:02:04 EDT 2003


On Tue, Oct 21, 2003 at 10:46:42AM -0500, bfdi533 wrote:
> I am trying to load the following geotiff into GRASS with r.in.gdal:
> 
> GRASS:~/gis/data/nationalatlas/shdrlf > gdalinfo shdrlfi020l.tif
> Driver: GTiff/GeoTIFF
> Size is 10366, 7273
> Coordinate System is `'
> Origin = (-6086629.000000,4488761.000000)
> Pixel Size = (1000.000000,-1000.000000)
> Metadata:
>   TIFFTAG_SOFTWARE=Arc/Info
> Corner Coordinates:
> Upper Left  (-6086629.000, 4488761.000)
> Lower Left  (-6086629.000,-2784239.000)
> Upper Right ( 4279371.000, 4488761.000)
> Lower Right ( 4279371.000,-2784239.000)
> Center      ( -903629.000,  852261.000)
> Band 1 Block=10366x1 Type=Byte, ColorInterp=Red
> Band 2 Block=10366x1 Type=Byte, ColorInterp=Green
> Band 3 Block=10366x1 Type=Byte, ColorInterp=Blue
> 
> I have tried this as follows with r.in.gdal with the resulting error:
> 
> GRASS:~/gis/data/nationalatlas/shdrlf > r.in.gdal input=shdrlfi020l.tif
> output=shdrlf target=tx
> ERROR: Projection of dataset does not appear to match current location.
>                                                                                                                                                                                    
>        cellhd.proj = 0 (unreferenced)
>                                                                                                                                                                                    
>        You can use the -o flag to r.in.gdal to override this check.
> 
> So, I tried with the -o flag and now I get:
> 
> GRASS:~/gis/data/nationalatlas/shdrlf > r.in.gdal input=shdrlfi020l.tif
> output=shdrlf -o
> WARNING: G_set_window(): Illegal latitude for North

Do you try to import into a Lat/Long location? What does
g.region -dp

print?

Markus




More information about the grass-user mailing list