bilaldursun1 / nettopologysuite

Automatically exported from code.google.com/p/nettopologysuite
0 stars 0 forks source link

Z support of Geometry::EqualsNormalized() #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'd like to use the Geometry::EqualsNormalized() and it should also consider 
the Z-coordinate.

I tracked down the problem to the Coordinate::Equals() and the 
Coordinate::CompareTo() methods. They don't consider the Z coordinate. 
So my change request is: to call the Equals3D() method from the Equals() 
method. The CompareTo()-Method should also check the Z-coordinate if X and Y 
are equal.

From my point of view it would give the user of the library more flexibility 
since if there is no Z-coordinate it would also be ignored if the Z-coordinate 
of the compared coordinates are NaN. At the moment it looks like the 
Z-coordinate exists but it's acutally quite useless...

For people who only use 2D-Data the functionality would not change at all due 
to the requested changes.

--
ps. I need this functionality anyways. I just wanted to know if it's a need or 
a desire of other people, so I would contribute the suggested changes.

Original issue reported on code.google.com by balz.ste...@gmail.com on 15 Mar 2013 at 10:51

GoogleCodeExporter commented 9 years ago
You are certainly free to do this in your private copy, but I prefer sticking 
with JTS. You may want to encourage Martin Davis to do the change, then you'll 
be sure to see it here.

Original comment by felix.ob...@netcologne.de on 2 Apr 2013 at 9:35