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

GRASS GIS trac at osgeo.org
Tue Dec 22 07:07:39 PST 2015


#2658: [PATCH] v.to.db compactness gives wrong results in feet location
--------------------------+-----------------------------------------------
  Reporter:  annakrat     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.0.3
 Component:  LibGIS       |    Version:  svn-releasebranch70
Resolution:               |   Keywords:  v.to.db, units, area, compactness
       CPU:  Unspecified  |   Platform:  All
--------------------------+-----------------------------------------------
Changes (by annakrat):

 * priority:  major => normal


Comment:

 Replying to [comment:6 mlennert]:
 > Replying to [comment:5 annakrat]:
 > > Replying to [comment:4 neteler]:
 > > > Will you apply the patch?
 > >
 > > I applied the patch, but needs more testing.
 >
 > As mentioned, the patch has some side effects in terms of weird results
 in terms of decimals.
 >
 > I agree that it is better than leaving as is, but in the long run,
 changing area calculations to always return current location units might a
 better idea.
 >
 > This would entail changing
 [https://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/area.c#L159
 G_area_of_polygon()] and this will probably be quite invasive as any
 library function or module calling this function would have to be updated.
 >
 > In the meantime this should be backported IMHO.

 Done in r67327.

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



More information about the grass-dev mailing list