[GRASS-dev] Re: [GRASS GIS] #975: WxGUI should provide area measurement tool

GRASS GIS trac at osgeo.org
Thu Mar 4 17:10:38 EST 2010


#975: WxGUI should provide area measurement tool
--------------------------+-------------------------------------------------
  Reporter:  marisn       |       Owner:  grass-dev at lists.osgeo.org
      Type:  enhancement  |      Status:  new                      
  Priority:  normal       |   Milestone:  6.5.0                    
 Component:  wxGUI        |     Version:  unspecified              
Resolution:               |    Keywords:  d.measure                
  Platform:  All          |         Cpu:  All                      
--------------------------+-------------------------------------------------
Comment (by glynn):

 Replying to [comment:9 cmbarton]:
 > I don't remember what all d.measure did, however. The current GUI
 implementation gives: segment length, segment bearing, total multisegment
 length, and has a nice (and easily parsable) output format. Does d.measure
 do that? For area, is it only calculated for closed polygons or for open
 ones too?

 d.measure (now m.measure in 7.0) calculates the cumulative length obtained
 from passing each pair of adjacent points to G_distance() and, if 3 or
 more points are given, the area from G_area_of_polygon().

 There should probably be an option to include the distance between the
 last and first points, i.e. calculate the perimeter. Currently, for N
 points it calculates the length for N-1 segments; if you want the
 perimeter, you have to duplicate the first point as the last point.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/975#comment:10>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list