[GRASS-dev] [GRASS GIS] #2658: v.to.db compactness gives wrong results in feet location

GRASS GIS trac at osgeo.org
Sun Apr 19 21:09:33 PDT 2015


#2658: v.to.db compactness gives wrong results in feet location
-----------------------------------------------+----------------------------
 Reporter:  annakrat                           |       Owner:  grass-dev@…              
     Type:  defect                             |      Status:  new                      
 Priority:  major                              |   Milestone:  7.0.1                    
Component:  LibGIS                             |     Version:  svn-releasebranch70      
 Keywords:  v.to.db, units, area, compactness  |    Platform:  All                      
      Cpu:  Unspecified                        |  
-----------------------------------------------+----------------------------
 I was looking in the source code of v.to.db to understand if computed area
 is in meters squared or location units (feet in my case). I realized area
 is converted to meters squared, however, perimeter seems to be in map
 units (feet). Therefore compactness is wrong when units are not meters
 (latlon is fine I guess). Setting feet as units doesn't influence
 compactness computation.

 Currently the library functions for computing area and perimeter don't
 behave consistently.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2658>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list