This project has moved and is read-only. For the latest updates, please go here.

Spatial reference systems and distance calculation.

Topics: General Topics, Algorithms
Jul 30, 2007 at 2:47 PM

I am new to SharpMap which I plan to use as back end for distance/containment calculations on the geoid.

I have a question, however. Reading the interface documentation for IGeometry.Distance, it says "Returns the shortest distance between any two points in the two geometries as calculated in the spatial reference system of this Geometry".

However, regardless of what I set the reference system for 2 points to (fx a WGS84 datum), Distance returns the simple pythagorean distance between the points and not - as I expected - the geodesic distance.

Have I misinterpreted the documentation and does this apply for other IGeometry methods such as Contains as well?

Thanks in advance.