[GRASS-dev] [GRASS GIS] #1878: Metric distance option for v.distance in latlon regions

#1878: Metric distance option for v.distance in latlon regions
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Default | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
It would be nice if v.distance could calculate distance (e.g. minimum
distance between to and from features) in a metric value like meters even
when it works in a latlon region. Currently, it only calculates distance
in the default units of the region.

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1878&gt;
GRASS GIS <http://grass.osgeo.org>

#1878: Metric distance option for v.distance in latlon regions
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Default | Version: unspecified
Keywords: v.distance | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by hamish):

  * keywords: => v.distance

Comment:

if so it shouldn't be too hard to get, G_geodesic_distance() is always
returning meters, so we already know the number internally.

since it isn't a bugfix, I suggest not to add new flags in the 6.4.3
release branch.

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1878#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1878: Metric distance option for v.distance in latlon regions
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.4
Component: Default | Version: unspecified
Keywords: v.distance | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by cmbarton):

  * milestone: 6.4.3 => 6.4.4

Comment:

You're right about it not being a bug fix. I'll bump it up to 6.4.4 (or is
6.5 and above better?) and above.

Michael

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1878#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1878: Metric distance option for v.distance in latlon regions
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.4
Component: Default | Version: unspecified
Keywords: v.distance | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by hamish):

Replying to [comment:2 cmbarton]:
> You're right about it not being a bug fix. I'll bump it up to
> 6.4.4 (or is 6.5 and above better?) and above.

I guess the normal procedure would be to add it to trunk first, and then
see how invasive the change was before considering backporting it to 6.x.
If destined for 6.4.4 for sure and the 6.4.3 branch is frozen for release
as it is now, I'd backport from trunk to devbranch_6 and then (and I'm not
very good at remembering this part) make sure to add it to the list of
stuff to backport in the trac dev wiki pages so it doesn't get forgotten
once the release branch 64 is reopened post release.

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1878#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1878: Metric distance option for v.distance in latlon regions
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.5.0
Component: Default | Version: unspecified
Keywords: v.distance | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by cmbarton):

  * milestone: 6.4.4 => 6.5.0

Comment:

All good thoughts. The question at hand is what to set the choice box at.
I've moved it to 6.5. Makes sense to try it in 7 first, though.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1878#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#1878: Metric distance option for v.distance in latlon regions
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: unspecified
Keywords: v.distance | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by mmetz):

  * milestone: 6.5.0 => 7.0.0

Comment:

Replying to [comment:1 hamish]:
> if so it shouldn't be too hard to get, G_geodesic_distance() is always
returning meters, so we already know the number internally.

This does not work for v.distance. You would need to enhance
G_distance_point_to_line_segment() with the options of
Vect_line_distance() or write a new function
Vect_line_geodesic_distance().

Bumping Milestone.

Markus M

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1878#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#1878: Metric distance option for v.distance in latlon regions
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: unspecified
Keywords: v.distance | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by cmbarton):

So it hasn't yet been done because it is more work than it initially
seemed. Well maybe it can happen for GRASS 7. Not an urgent thing, but it
would be nice...

Michael

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1878#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#1878: Metric distance option for v.distance in latlon regions
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Keywords: v.distance | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by martinl):

  * version: unspecified => svn-trunk
  * component: Default => Vector

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1878#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>

#1878: Metric distance option for v.distance in latlon regions
----------------------------------+-----------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Keywords: v.distance, geodesic | Platform: All
      Cpu: All |
----------------------------------+-----------------------------------------
Changes (by hamish):

  * keywords: v.distance => v.distance, geodesic
  * platform: Unspecified => All
  * cpu: Unspecified => All

Comment:

ah, calculating the great circle distance between every node of a polyline
could be rather computationally expensive, but it is possible if you don't
mind the wait.

to clarify: does the current version report decimal degrees (aka garbage)
for v.distance in a lat/lon location? If so it at least deserves a
warning, and in general a fatal error is better than plausible but
actually meaningless results.

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1878#comment:8&gt;
GRASS GIS <http://grass.osgeo.org>

#1878: Metric distance option for v.distance in latlon regions
----------------------------------+-----------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Keywords: v.distance, geodesic | Platform: All
      Cpu: All |
----------------------------------+-----------------------------------------

Comment(by cmbarton):

Yes. It reports in decimal degrees. Not too useful.

Michael

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1878#comment:9&gt;
GRASS GIS <http://grass.osgeo.org>