[GRASS-dev] [GRASS GIS] #2055: r.in.gdal lacks flag "-r Limit import to the current region"

GRASS GIS trac at osgeo.org
Sat Feb 11 06:09:18 PST 2017


#2055: r.in.gdal lacks flag "-r Limit import to the current region"
--------------------------+---------------------------------
  Reporter:  neteler      |      Owner:  martinl
      Type:  enhancement  |     Status:  assigned
  Priority:  normal       |  Milestone:  7.2.1
 Component:  Raster       |    Version:  svn-trunk
Resolution:               |   Keywords:  r.in.gdal, r.import
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+---------------------------------

Comment (by martinl):

 Replying to [comment:22 martinl]:
 > The new version of patch attachment:r_in_gdal_2055_1.diff still fills
 the whole grid of computation region. Cells outside of input raster grid
 are filled by NULL values. The solution you are suggesting would make
 probably better sense (avoid importing all-NULL rows/columns). I will take
 a look at this issue.

 See attachment:r_in_gdal_2055_2.diff which avoids importing empty
 rows/cols outside of input grid. The region is shrinked to input grid
 extent. See example shown in attachment:region.png. First version of patch
 (attachment:r_in_gdal_2055_2.diff) creates raster map with same extent as
 red box (computational region) since the second version
 (attachment:r_in_gdal_2055_2.diff) creates smaller raster map overlapping
 red and blue box (input grid extent). Testing and comments very welcomed.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2055#comment:23>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list