You can clone with
HTTPS or Subversion.
Date: 2003/06/18 - 11:09
Trac URL: http://trac.osgeo.org/mapserver/ticket/342
It would be really nice to have functions that can determine distance between
shapes. Currently only point-shape distances can be determined, so if one wants
to draw a map where shape distances play a role (say, color everything ouside a
certain radius, etc), he has to get all points of a shape and do a
distanceToShape to each and then determine the distance (and even then it will
not be always correct). IMHO distanceToSomething should be a general method,
available to points, lines and shapes as well.
Date: 2003/06/24 - 07:13
There are distance to shape/line methods that are part of MapScript. The same
underlying code is also present in the query functions msQuerybyShape and
msQueryByFeature although the query functions only allow for the use of polygons
as the query feature at the moment. The query enhancements work by computing the
distance between line segments, and then looping through segments, intersecting
lines with polygons and so forth.
If you have examples where the point computations fail then please send them
along. I'll leave this open until the point issue is resolved.
Date: 2003/07/30 - 23:39
Attila: Can you check my previous comments on this bug. It can probably be
closed but I'd like your feedback first.