[GRASS-dev] [GRASS GIS] #2734: v.distance: 3d point inside area is classified as outside

GRASS GIS trac at osgeo.org
Fri Oct 9 17:22:42 PDT 2015


#2734: v.distance: 3d point inside area is classified as outside
-----------------------+-----------------------------
  Reporter:  annakrat  |      Owner:  grass-dev@…
      Type:  defect    |     Status:  new
  Priority:  normal    |  Milestone:  7.0.2
 Component:  Vector    |    Version:  svn-trunk
Resolution:            |   Keywords:  v.distance, box
       CPU:  All       |   Platform:  All
-----------------------+-----------------------------

Comment (by wenzeslaus):

 In r66459 I have added `Vect_point_in_box_2d()` function which is simply a
 2D version of `Vect_point_in_box()` function which is 3D only. Alternative
 would be to add one function which would optionally consider ''z''.

 Using `Vect_point_in_box_2d()` and existing `with_z` logic I have tried to
 fix this ticket and [https://lists.osgeo.org/pipermail/grass-
 user/2015-July/072809.html reported issue] in r66460 in ''v.decimate''.
 The test written for ''v.decimate'' would suggest that the change helped.

 `Vect_point_in_box()` function is used a lot in the modules and very often
 with hardcoded `0.0` as ''z'' parameter (and there might be also cases
 when ''z'' is optionally zero). These should be replaced by the new
 function or its universal alternative.

 If `Vect_point_in_box_2d()` will be useful for ''v.decimate'' remains
 unclear. Usage of `Vect_region_box()` function would be necessary.

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



More information about the grass-dev mailing list