Package org.locationtech.jtsexample.geom
Class ExtendedCoordinate
java.lang.Object
org.locationtech.jts.geom.Coordinate
org.locationtech.jtsexample.geom.ExtendedCoordinate
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
- Version:
- 1.7
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.locationtech.jts.geom.Coordinate
Coordinate.DimensionalComparator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double
An example of extended data.private static final long
Fields inherited from class org.locationtech.jts.geom.Coordinate
NULL_ORDINATE, x, X, y, Y, z, Z
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorExtendedCoordinate
(double x, double y, double z, double m) ExtendedCoordinate
(Coordinate coord) -
Method Summary
Methods inherited from class org.locationtech.jts.geom.Coordinate
clone, compareTo, distance, distance3D, equalInZ, equals, equals2D, equals2D, equals3D, getOrdinate, hashCode, hashCode, setCoordinate, setOrdinate
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
m
private double mAn example of extended data. The m variable holds a measure value for linear referencing
-
-
Constructor Details
-
ExtendedCoordinate
public ExtendedCoordinate()Default constructor -
ExtendedCoordinate
public ExtendedCoordinate(double x, double y, double z, double m) -
ExtendedCoordinate
-
ExtendedCoordinate
-
-
Method Details
-
copy
- Overrides:
copy
in classCoordinate
-
getM
public double getM() -
setM
public void setM(double m) -
toString
Description copied from class:Coordinate
Returns aString
of the form (x,y,z) .- Overrides:
toString
in classCoordinate
- Returns:
- a
String
of the form (x,y,z)
-