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