Skip to main content
added 53 characters in body
Source Link
Evan Carroll
  • 7.1k
  • 2
  • 33
  • 62

That is to say, it takes geometry's and returnsmutates a pointer to a double returning an int that represents status. There are no extra arguments. There are no methods of telling it "asymmetric" or "symmetric" or "one-sided". So fullstop, if you're using GEOS you're using, DiscreteHausdorffDistance.cpp

That is to say, it takes geometry's and returns a double. There are no extra arguments. There are no methods of telling it "asymmetric" or "symmetric" or "one-sided". So fullstop, if you're using GEOS you're using, DiscreteHausdorffDistance.cpp

That is to say, it takes geometry's and mutates a pointer to a double returning an int that represents status. There are no extra arguments. There are no methods of telling it "asymmetric" or "symmetric" or "one-sided". So fullstop, if you're using GEOS you're using, DiscreteHausdorffDistance.cpp

added 184 characters in body
Source Link
Evan Carroll
  • 7.1k
  • 2
  • 33
  • 62

So the answer to your question: computeOrientedDistance is already called by both ST_HausdorffDistance. If you want a directional version, like computeOrientedDistance I think you'll have to pull the above apart and patch it in LibGEOS via a new DiscreteHausdorffDistance::orientedDistance and then into PostGIS. Or draw up a test suite and pay a consultant. While there are probably a few other software programmers here that could do it, it's way out of the expertise of this community (Paul Ramsey being an obvious exception, etc).

So the answer to your question: computeOrientedDistance is already called by both ST_HausdorffDistance. If you want a directional version, I think you'll have to pull the above apart and patch it. Or draw up a test suite and pay a consultant. While there are probably a few other software programmers here that could do it, it's way out of the expertise of this community (Paul Ramsey, etc).

So the answer to your question: computeOrientedDistance is already called by both ST_HausdorffDistance. If you want a directional version, like computeOrientedDistance I think you'll have to pull the above apart and patch it in LibGEOS via a new DiscreteHausdorffDistance::orientedDistance and then into PostGIS. Or draw up a test suite and pay a consultant. While there are probably a few other software programmers here that could do it, it's way out of the expertise of this community (Paul Ramsey being an obvious exception, etc).

added 126 characters in body
Source Link
Evan Carroll
  • 7.1k
  • 2
  • 33
  • 62

So the answer to your question: computeOrientedDistance is already called by both ST_HausdorffDistance. If you want a directional version, I think you'll have to pull the above apart and patch it. Or draw up a test suite and pay a consultant. While there are probably a few other software programmers here that could do it, it's way out of the expertise of this community (Paul Ramsey, etc).

Generally, we don't implement software suggestions on GIS.SE. At least, I don't see that activity if it happens. We answer them with software already developed. The short answer here is that it's not done.

So the answer to your question: computeOrientedDistance is already called by both ST_HausdorffDistance. If you want a directional version, I think you'll have to pull the above apart and patch it. Or draw up a test suite and pay consultant.

So the answer to your question: computeOrientedDistance is already called by both ST_HausdorffDistance. If you want a directional version, I think you'll have to pull the above apart and patch it. Or draw up a test suite and pay a consultant. While there are probably a few other software programmers here that could do it, it's way out of the expertise of this community (Paul Ramsey, etc).

Generally, we don't implement software suggestions on GIS.SE. At least, I don't see that activity if it happens. We answer them with software already developed. The short answer here is that it's not done.

added 4061 characters in body
Source Link
Evan Carroll
  • 7.1k
  • 2
  • 33
  • 62
Loading
Source Link
Evan Carroll
  • 7.1k
  • 2
  • 33
  • 62
Loading