Module org.apache.jena.geosparql
Class CustomCoordinateSequence
java.lang.Object
org.apache.jena.geosparql.implementation.jts.CustomCoordinateSequence
- All Implemented Interfaces:
Serializable
,Cloneable
,org.locationtech.jts.geom.CoordinateSequence
public class CustomCoordinateSequence
extends Object
implements org.locationtech.jts.geom.CoordinateSequence, Serializable
Based on: OGC 06-103r4 http://www.opengeospatial.org/standards/sfa
- See Also:
-
Field Summary
Fields inherited from interface org.locationtech.jts.geom.CoordinateSequence
M, X, Y, Z
-
Constructor Summary
ConstructorDescriptionCustomCoordinateSequence
(double[] x, double[] y, double[] z, double[] m) CustomCoordinateSequence
(int size, int dimension) CustomCoordinateSequence
(int size, CoordinateSequenceDimensions dimensions) CustomCoordinateSequence
(CoordinateSequenceDimensions dimensions) CustomCoordinateSequence
(CoordinateSequenceDimensions dimensions, String sequence) CustomCoordinateSequence
(CoordinateSequenceDimensions dimensions, List<org.locationtech.jts.geom.Coordinate> coordinates) CustomCoordinateSequence
(org.locationtech.jts.geom.Coordinate[] coordinates) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.copy()
static final CustomCoordinateSequence
createPoint
(double x, double y) boolean
org.locationtech.jts.geom.Envelope
expandEnvelope
(org.locationtech.jts.geom.Envelope env) static final CoordinateSequenceDimensions
findCoordinateSequenceDimensions
(int coordinateDimension, int spatialDimension) org.locationtech.jts.geom.Coordinate
getCoordinate
(int i) void
getCoordinate
(int index, org.locationtech.jts.geom.Coordinate coord) org.locationtech.jts.geom.Coordinate
getCoordinateCopy
(int i) getCoordinateText
(int index) int
double
getM
(int index) int
double
getOrdinate
(int index, int ordinateIndex) int
getSize()
int
double
getX
(int index) double
getY
(int index) double
getZ
(int index) int
hashCode()
boolean
hasM()
boolean
hasZ()
void
setOrdinate
(int index, int ordinateIndex, double value) int
size()
org.locationtech.jts.geom.Coordinate[]
toString()
Methods inherited from interface org.locationtech.jts.geom.CoordinateSequence
createCoordinate
-
Constructor Details
-
CustomCoordinateSequence
public CustomCoordinateSequence() -
CustomCoordinateSequence
-
CustomCoordinateSequence
public CustomCoordinateSequence(int size, int dimension) -
CustomCoordinateSequence
-
CustomCoordinateSequence
public CustomCoordinateSequence(CoordinateSequenceDimensions dimensions, List<org.locationtech.jts.geom.Coordinate> coordinates) -
CustomCoordinateSequence
-
CustomCoordinateSequence
public CustomCoordinateSequence(org.locationtech.jts.geom.Coordinate[] coordinates) -
CustomCoordinateSequence
public CustomCoordinateSequence(double[] x, double[] y, double[] z, double[] m)
-
-
Method Details
-
copy
- Specified by:
copy
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getSize
public int getSize() -
createPoint
-
getDimension
public int getDimension()- Specified by:
getDimension
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getMeasures
public int getMeasures()- Specified by:
getMeasures
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
hasZ
public boolean hasZ()- Specified by:
hasZ
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
hasM
public boolean hasM()- Specified by:
hasM
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getDimensions
-
getSpatialDimension
public int getSpatialDimension() -
getCoordinate
public org.locationtech.jts.geom.Coordinate getCoordinate(int i) - Specified by:
getCoordinate
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getCoordinateCopy
public org.locationtech.jts.geom.Coordinate getCoordinateCopy(int i) - Specified by:
getCoordinateCopy
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getCoordinate
public void getCoordinate(int index, org.locationtech.jts.geom.Coordinate coord) - Specified by:
getCoordinate
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getX
public double getX(int index) - Specified by:
getX
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getY
public double getY(int index) - Specified by:
getY
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getZ
public double getZ(int index) - Specified by:
getZ
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getM
public double getM(int index) - Specified by:
getM
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getOrdinate
public double getOrdinate(int index, int ordinateIndex) - Specified by:
getOrdinate
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
size
public int size()- Specified by:
size
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
setOrdinate
public void setOrdinate(int index, int ordinateIndex, double value) - Specified by:
setOrdinate
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
toCoordinateArray
public org.locationtech.jts.geom.Coordinate[] toCoordinateArray()- Specified by:
toCoordinateArray
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
expandEnvelope
public org.locationtech.jts.geom.Envelope expandEnvelope(org.locationtech.jts.geom.Envelope env) - Specified by:
expandEnvelope
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
clone
Deprecated.- Specified by:
clone
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
hashCode
public int hashCode() -
equals
-
toString
-
getCoordinateText
-
findCoordinateSequenceDimensions
public static final CoordinateSequenceDimensions findCoordinateSequenceDimensions(int coordinateDimension, int spatialDimension)
-