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

Comment (by 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.

 Moritz

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

_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to