Geography Reference
In-Depth Information
The syntax of r.in.gdal is as follows:
Usage:
r.in.gdal [-oefk] input=string output=name [band=value]
[target=string] [title="phrase"] [location=string] [--overwrite]
Flags:
-o
Override projection (use location's projection)
-e
Extend location extents based on new dataset
-f
List supported formats then exit
-k
Keep band numbers instead of using band color names
--o
Force overwrite of output files
Parameters:
input Raster file to be imported
output Name for output raster map
band Band to select (default is all bands)
target Name of location to read projection from for GCPs transformation
title Title for resultant raster map
location Name for new location to create
The options here are fewer than with v.in.ogr . To import the raster, use
the following:
GRASS 6.2.2 (world_lat_lon):~ > r.in.gdal \
input=./ev11612_land_ocean_ice_8192.tif output=nasa_world_mosaic
ERROR: Projection of dataset does not appear to match current location.
LOCATION PROJ_INFO is:
name: Latitude-Longitude
datum: wgs84
towgs84: 0.000,0.000,0.000
proj: ll
ellps: wgs84
cellhd.proj = 0 (unreferenced/unknown)
You can use the -o flag to r.in.gdal to override this check and use
the location definition for the dataset.
Consider generating a new location from the input dataset using the
'location' parameter.
GRASS 6.2.2 (world_lat_lon):~ >
Oops—what happened? GRASS doesn't like our raster because it thinks
it may be in a different projection than our WGS84 location. We can
override this using the -o switch if we're sure the projection is correct:
GRASS 6.2.2 (world_lat_lon):~ > r.in.gdal -o \
input=./ev11612_land_ocean_ice_8192.tif output=nasa_world_mosaic
Over-riding projection check.
Proceeding with import...
WARNING: G_set_window(): Illegal latitude for North
GRASS 6.2.2 (world_lat_lon):~ >
 
Search WWH ::




Custom Search