[GRASS-dev] Re: [GRASS GIS] #37: r.in.xyz increase region based on input data

GRASS GIS trac at osgeo.org
Wed Feb 6 11:26:36 EST 2008


#37: r.in.xyz increase region based on input data
--------------------------+-------------------------------------------------
  Reporter:  marisn       |       Owner:  hamish     
      Type:  enhancement  |      Status:  assigned   
  Priority:  minor        |   Milestone:  6.4.0      
 Component:  default      |     Version:  unspecified
Resolution:               |    Keywords:             
--------------------------+-------------------------------------------------
Comment (by glynn):

 r.in.xyz shouldn't change the current region.

 What it probably *should* do is to create a map whose size is based upon
 the input data, rather than using the current region. IOW, the way that
 other r.in.* commands work; unlike most r.* commands, the output from
 r.in.* commands isn't normally based upon the current region.

 This would require two passes, which won't work with input=- if stdin is a
 pipe. But then the same is true of a script which runs r.in.xyz -s,
 g.region, r.in.xyz.

 A script approach should definitely use either $WIND_OVERRIDE or
 $GRASS_REGION rather than modifying WIND.

 On a related note, r.in.xyz should probably have some way to explicitly
 specify the bounds and resolution of the created map, either separate
 n=/s=/e=/w=/res= options and/or a region= option to use a named region.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/37#comment:3>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/


More information about the grass-dev mailing list