[GRASS-dev] [GRASS GIS] #2734: v.distance: 3d point inside area is classified as outside
GRASS GIS
trac at osgeo.org
Wed Oct 7 07:02:33 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):
On Wed, Oct 7, 2015 at 4:32 AM, Moritz Lennert wrote at
[https://lists.osgeo.org/pipermail/grass-user/2015-October/073089.html
grass-user]:
> I have the feeling that the second proposed solution, i.e. "introduce a
2D version of the Vect_point_in_box function which checks x and y only" is
the better long-run solution.
Good idea. I could use this, e.g. in
[source:grass/trunk/vector/v.decimate/main.c?rev=66387#L86 v.decimate]
where I have now `point_in_region_2d()` and `point_in_region_3d`. I'm
using `Cell_head` as the region/bbox, but it doesn't contain any info
whether it is 2D or 3D, if something like `depths=0` (perhaps wrapped in
`G_is_cell_head_3d()`) would tell if it is 3D, then I could have just
`point_in_region()`.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2734#comment:1>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list