[GRASS-user] Importing From GeoPDF

Hello,

I’m trying to import a new-style GeoPDF USGS topo map into an existing GRASS location as a raster layer. I’ve converted the file to a GeoTIFF with gdal_translate and then adjusted to projection using gdalwarp. When I import the GeoTIFF into GRASS, each color band is written as a separate layer:

r.in.gdal input=/Users/dkindem/MI_Grand_Haven_20110923_TM_geo_wgs.tif output=MI_Grand_Haven_20110923_TM_geo_wgs
Projection of input dataset and current location appear to match
r.in.gdal complete. Raster map <MI_Grand_Haven_20110923_TM_geo_wgs.red> created.
r.in.gdal complete. Raster map <MI_Grand_Haven_20110923_TM_geo_wgs.green> created.
r.in.gdal complete. Raster map <MI_Grand_Haven_20110923_TM_geo_wgs.blue> created.
(Sun Aug 19 10:50:07 2012) Command finished (2 sec)

Each layer displays (in monochrome), but I’d like to create a single, color, layer.

I’m curious to know if others have encountered this, or have thoughts on the issue.

Thanks in advance,

Dave

Dave Kindem
Grand Haven, MI

Have you tried r.composite, e.g. for band files file_tif.*

r.composite b=file_tif.blue g=file_tif.green r=file_tif.red out=file_colour

?

Jon

Þann sunnudagur 19 Augúst 2012 15:00 GMT, skrifaði Dave Kindem <dkindem@gmail.com>:

Hello,

I'm trying to import a new-style GeoPDF USGS topo map into an existing GRASS location as a raster layer. I've converted the file to a GeoTIFF with gdal_translate and then adjusted to projection using gdalwarp. When I import the GeoTIFF into GRASS, each color band is written as a separate layer:
> r.in.gdal input=/Users/dkindem/MI_Grand_Haven_20110923_TM_geo_wgs.tif output=MI_Grand_Haven_20110923_TM_geo_wgs
> Projection of input dataset and current location appear to match
> r.in.gdal complete. Raster map <MI_Grand_Haven_20110923_TM_geo_wgs.red> created.
> r.in.gdal complete. Raster map <MI_Grand_Haven_20110923_TM_geo_wgs.green> created.
> r.in.gdal complete. Raster map <MI_Grand_Haven_20110923_TM_geo_wgs.blue> created.
> (Sun Aug 19 10:50:07 2012) Command finished (2 sec)

Each layer displays (in monochrome), but I'd like to create a single, color, layer.

I'm curious to know if others have encountered this, or have thoughts on the issue.

Thanks in advance,

Dave

Dave Kindem
Grand Haven, MI

Have you tried r.composite, e.g. for band files file_tif.*

r.composite b=file_tif.blue g=file_tif.green r=file_tif.red out=file_colour

or use

d.rgb - Displays three user-specified raster maps as red, green, and blue
overlays in the active graphics frame.

http://grass.osgeo.org/grass64/manuals/html64_user/d.rgb.html

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Importing-From-GeoPDF-tp4996179p4996201.html
Sent from the Grass - Users mailing list archive at Nabble.com.