Antonio Bucciol
2016-02-12 15:58:54 UTC
Hi JTS people,
and nice to meet you.
I'm extending JTS with my own *MyCoordinate *which extends *Coordinate *
class.
I've followed the official guides, extending *TemporalCoordinateSequence *
and *TemporalCoordinateSequenceFactory *too, and passing this factory to
the *GeometryFactory*.
Everything works fine, but I now need to add some functionality to
*MyCoordinate* class.
I need that object to be sortable by its custom field *myField*.
Now, what is going to happen if i override the *compareTo* method in the
*MyCoordinate* class in order to sort object by that field?
Is this going to create unwanted or unpredictable behavior over normal
usage of geometry objects (i.e. indexing, intersections checking,
geometries building, etc)?
Thank you in advance for you help.
Antonio Bucciol
and nice to meet you.
I'm extending JTS with my own *MyCoordinate *which extends *Coordinate *
class.
I've followed the official guides, extending *TemporalCoordinateSequence *
and *TemporalCoordinateSequenceFactory *too, and passing this factory to
the *GeometryFactory*.
Everything works fine, but I now need to add some functionality to
*MyCoordinate* class.
I need that object to be sortable by its custom field *myField*.
Now, what is going to happen if i override the *compareTo* method in the
*MyCoordinate* class in order to sort object by that field?
Is this going to create unwanted or unpredictable behavior over normal
usage of geometry objects (i.e. indexing, intersections checking,
geometries building, etc)?
Thank you in advance for you help.
Antonio Bucciol