Tips for Arc users: Difference between revisions
Jump to navigation
Jump to search
(→Raster import/export commands: GeoTIFF example) |
(→Raster import/export commands: r.in.gdal eg) |
||
Line 25: | Line 25: | ||
* [http://grass.ibiblio.org/grass61/manuals/html61_user/r.in.gdal.html r.in.gdal] - Import [http://www.gdal.org GDAL] supported raster file into a binary raster map layer. | * [http://grass.ibiblio.org/grass61/manuals/html61_user/r.in.gdal.html r.in.gdal] - Import [http://www.gdal.org GDAL] supported raster file into a binary raster map layer. | ||
** Import a ArcInfo raster grid into GRASS | |||
r.in.gdal in=/path/to/map.hdr out=map | |||
* [http://grass.ibiblio.org/grass61/manuals/html61_user/r.out.gdal.html r.out.gdal] - Exports GRASS raster data into various formats. | * [http://grass.ibiblio.org/grass61/manuals/html61_user/r.out.gdal.html r.out.gdal] - Exports GRASS raster data into various formats. |
Revision as of 02:17, 21 November 2007
Working with your ArcGIS data
Importing ArcGIS Data
Grass provides convertors for importing ESRI shapefiles, e00 files, and many other GIS formats as well. The key Grass programs for importing vector formats are v.in.ogr (for ESRI shapefiles, MapInfo files, SDTS, TIGER, etc.) and v.in.e00 for e00 format.
Example 1: Import of Shapefiles into Grass
specify the directory
v.in.ogr dsn=/home/data/navigation_files output=Tracklines layer=Ship_Tracklines
or just the .shp file name directly
v.in.ogr dsn=Ship_Tracklines.shp output=Tracklines
This is the syntax for v.in.ogr in its most basic form. The dsn parameter corresponds to the directory path of the vector you are trying to import. You can enter a full or relative path. The output paramter, aptly enough, is the name of your output Grass vector. The layer parameter is the name of the input vector, be it shapefile, MapInfo file, or what have you.
Raster import/export commands
- r.in.arc - Convert an ESRI ARC/INFO ascii raster file (GRID) into a GRASS (binary) raster map layer.
- r.out.arc - Converts a GRASS raster map layer into an ESRI ARCGRID file.
- r.in.gdal - Import GDAL supported raster file into a binary raster map layer.
- Import a ArcInfo raster grid into GRASS
r.in.gdal in=/path/to/map.hdr out=map
- r.out.gdal - Exports GRASS raster data into various formats.
- Export a raster as a GeoTIFF for use with ArcView 3.1:
r.out.gdal in=map out=map.tif type=Byte createopt="INTERLEAVE=PIXEL,COMPRESS=PACKBITS"
Vector import/export commands
- v.out.ogr - Convert from the GRASS vector format to one of the supported OGR vector formats.
- v.in.e00 - Import a E00 coverage into a GRASS vector map.