[GRASS-dev] [GRASS GIS] #2718: v.mkgrid: one row lost if map extent is less than half that row size

GRASS GIS trac at osgeo.org
Mon Feb 22 02:49:56 PST 2016


#2718: v.mkgrid: one row lost if map extent is less than half that row size
--------------------------+---------------------------------
  Reporter:  neteler      |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.0.4
 Component:  Vector       |    Version:  svn-releasebranch70
Resolution:               |   Keywords:  v.mkgrid
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+---------------------------------

Comment (by mmetz):

 Replying to [ticket:2718 neteler]:
 > When creating a grid and the map extent does not reach more than half of
 a row size, the resulting grid is one row too small (see screenshot).

 The reason is that enlarging the region can be dangerous, e.g. beyond 90N
 / 90S in latlong. Therefore it is saver to skip one row in the grid if
 that grid row would extend beyond the current regions bounds.

 When setting the current region from a vector, extents and resolution
 should be adjusted afterwards in order to fit your needs.
 >
 > Solution: add a flag to enforce full coverage using a different rounding
 method.

 or set your current region accordingly, before running v.mkgrid.

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



More information about the grass-dev mailing list