Package net.opengis.gml.v32.impl
Class LineStringJTS
java.lang.Object
org.locationtech.jts.geom.Geometry
org.locationtech.jts.geom.LineString
net.opengis.gml.v32.impl.LineStringJTS
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
,AbstractCurve
,AbstractGeometry
,AbstractGML
,LineString
,org.locationtech.jts.geom.Lineal
Implementation of GML LineString derived from JTS LineString class.
- Since:
- Dec 23, 2014
- See Also:
-
Field Summary
Fields inherited from class org.locationtech.jts.geom.LineString
MINIMUM_VALID_SIZE, points
Fields inherited from class org.locationtech.jts.geom.Geometry
envelope, factory, SRID, TYPECODE_GEOMETRYCOLLECTION, TYPECODE_LINEARRING, TYPECODE_LINESTRING, TYPECODE_MULTILINESTRING, TYPECODE_MULTIPOINT, TYPECODE_MULTIPOLYGON, TYPECODE_POINT, TYPECODE_POLYGON, TYPENAME_GEOMETRYCOLLECTION, TYPENAME_LINEARRING, TYPENAME_LINESTRING, TYPENAME_MULTILINESTRING, TYPENAME_MULTIPOINT, TYPENAME_MULTIPOLYGON, TYPENAME_POINT, TYPENAME_POLYGON
-
Constructor Summary
ConstructorsConstructorDescriptionLineStringJTS
(org.locationtech.jts.geom.GeometryFactory jtsFactory, int numDims) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addName
(CodeWithAuthority name) Adds a new name propertyfinal String[]
Gets the axisLabels propertyfinal String
Gets the description propertyfinal Reference
Gets the descriptionReference propertyfinal String
getId()
Gets the id propertyfinal CodeWithAuthority
Gets the identifier propertyfinal OgcPropertyList<Serializable>
Gets the list of metaDataProperty propertiesfinal String
getName()
final List<CodeWithAuthority>
Gets the list of name propertiesfinal int
Returns number of name propertiesfinal double[]
Gets the posList propertyfinal int
Gets the srsDimension propertyfinal String
Gets the srsName propertyfinal String
Gets the identifier propertyfinal String[]
Gets the uomLabels propertyfinal boolean
Checks if axisLabels is setfinal boolean
Checks if description is setfinal boolean
Checks if descriptionReference is setfinal boolean
Checks if identifier is setfinal boolean
Checks if posList property is setfinal boolean
Checks if srsDimension is setfinal boolean
Checks if srsName is setfinal boolean
Checks if uomLabels is setfinal void
setAxisLabels
(String[] axisLabels) Sets the axisLabels propertyfinal void
setDescription
(String description) Sets the description propertyfinal void
setDescriptionReference
(Reference descriptionReference) Sets the descriptionReference propertyfinal void
Sets the id propertyfinal void
setIdentifier
(CodeWithAuthority identifier) Sets the identifier propertyfinal void
Sets the default namefinal void
setPosList
(double[] posList) Sets the posList propertyvoid
setSRID
(int srid) final void
setSrsDimension
(int srsDimension) Sets the srsDimension propertyfinal void
setSrsName
(String srsName) Sets the srsName propertyfinal void
setUniqueIdentifier
(String identifier) Sets the identifier propertyfinal void
setUomLabels
(String[] uomLabels) Sets the uomLabels propertyfinal void
Unsets the srsDimension propertyMethods inherited from class org.locationtech.jts.geom.LineString
apply, apply, apply, apply, clone, compareToSameClass, compareToSameClass, computeEnvelopeInternal, copyInternal, equalsExact, getBoundary, getBoundaryDimension, getCoordinate, getCoordinateN, getCoordinates, getCoordinateSequence, getDimension, getEndPoint, getGeometryType, getLength, getNumPoints, getPointN, getStartPoint, getTypeCode, isClosed, isCoordinate, isEmpty, isEquivalentClass, isRing, normalize, reverse, reverseInternal
Methods inherited from class org.locationtech.jts.geom.Geometry
buffer, buffer, buffer, compare, compareTo, compareTo, contains, convexHull, copy, coveredBy, covers, crosses, difference, disjoint, distance, equal, equals, equals, equalsExact, equalsNorm, equalsTopo, geometryChanged, geometryChangedAction, getArea, getCentroid, getEnvelope, getEnvelopeInternal, getFactory, getGeometryN, getInteriorPoint, getNumGeometries, getPrecisionModel, getSRID, getUserData, hashCode, hasNonEmptyElements, hasNullElements, intersection, intersects, isGeometryCollection, isRectangle, isSimple, isValid, isWithinDistance, norm, overlaps, relate, relate, setUserData, symDifference, toString, toText, touches, union, union, within
-
Constructor Details
-
LineStringJTS
public LineStringJTS(org.locationtech.jts.geom.GeometryFactory jtsFactory, int numDims)
-
-
Method Details
-
getPosList
public final double[] getPosList()Description copied from interface:LineString
Gets the posList property- Specified by:
getPosList
in interfaceLineString
- Returns:
- double array contanining all coordinates
-
setPosList
public final void setPosList(double[] posList) Description copied from interface:LineString
Sets the posList property- Specified by:
setPosList
in interfaceLineString
- Parameters:
posList
- double array containing all coordinates
-
isSetPosList
public final boolean isSetPosList()Description copied from interface:LineString
Checks if posList property is set- Specified by:
isSetPosList
in interfaceLineString
- Returns:
- true is set
-
getSrsName
Description copied from interface:AbstractGeometry
Gets the srsName property- Specified by:
getSrsName
in interfaceAbstractGeometry
-
getMetaDataPropertyList
Description copied from interface:AbstractGML
Gets the list of metaDataProperty properties- Specified by:
getMetaDataPropertyList
in interfaceAbstractGML
-
isSetSrsName
public final boolean isSetSrsName()Description copied from interface:AbstractGeometry
Checks if srsName is set- Specified by:
isSetSrsName
in interfaceAbstractGeometry
-
setSrsName
Description copied from interface:AbstractGeometry
Sets the srsName property- Specified by:
setSrsName
in interfaceAbstractGeometry
-
setSRID
public void setSRID(int srid) - Overrides:
setSRID
in classorg.locationtech.jts.geom.Geometry
-
getSrsDimension
public final int getSrsDimension()Description copied from interface:AbstractGeometry
Gets the srsDimension property- Specified by:
getSrsDimension
in interfaceAbstractGeometry
-
isSetSrsDimension
public final boolean isSetSrsDimension()Description copied from interface:AbstractGeometry
Checks if srsDimension is set- Specified by:
isSetSrsDimension
in interfaceAbstractGeometry
-
getDescription
Description copied from interface:AbstractGML
Gets the description property- Specified by:
getDescription
in interfaceAbstractGML
-
setSrsDimension
public final void setSrsDimension(int srsDimension) Description copied from interface:AbstractGeometry
Sets the srsDimension property- Specified by:
setSrsDimension
in interfaceAbstractGeometry
-
unSetSrsDimension
public final void unSetSrsDimension()Description copied from interface:AbstractGeometry
Unsets the srsDimension property- Specified by:
unSetSrsDimension
in interfaceAbstractGeometry
-
getAxisLabels
Description copied from interface:AbstractGeometry
Gets the axisLabels property- Specified by:
getAxisLabels
in interfaceAbstractGeometry
-
isSetDescription
public final boolean isSetDescription()Description copied from interface:AbstractGML
Checks if description is set- Specified by:
isSetDescription
in interfaceAbstractGML
-
isSetAxisLabels
public final boolean isSetAxisLabels()Description copied from interface:AbstractGeometry
Checks if axisLabels is set- Specified by:
isSetAxisLabels
in interfaceAbstractGeometry
-
setAxisLabels
Description copied from interface:AbstractGeometry
Sets the axisLabels property- Specified by:
setAxisLabels
in interfaceAbstractGeometry
-
setDescription
Description copied from interface:AbstractGML
Sets the description property- Specified by:
setDescription
in interfaceAbstractGML
-
getUomLabels
Description copied from interface:AbstractGeometry
Gets the uomLabels property- Specified by:
getUomLabels
in interfaceAbstractGeometry
-
getDescriptionReference
Description copied from interface:AbstractGML
Gets the descriptionReference property- Specified by:
getDescriptionReference
in interfaceAbstractGML
-
isSetUomLabels
public final boolean isSetUomLabels()Description copied from interface:AbstractGeometry
Checks if uomLabels is set- Specified by:
isSetUomLabels
in interfaceAbstractGeometry
-
isSetDescriptionReference
public final boolean isSetDescriptionReference()Description copied from interface:AbstractGML
Checks if descriptionReference is set- Specified by:
isSetDescriptionReference
in interfaceAbstractGML
-
setUomLabels
Description copied from interface:AbstractGeometry
Sets the uomLabels property- Specified by:
setUomLabels
in interfaceAbstractGeometry
-
setDescriptionReference
Description copied from interface:AbstractGML
Sets the descriptionReference property- Specified by:
setDescriptionReference
in interfaceAbstractGML
-
getIdentifier
Description copied from interface:AbstractGML
Gets the identifier property- Specified by:
getIdentifier
in interfaceAbstractGML
-
getUniqueIdentifier
Description copied from interface:AbstractGML
Gets the identifier property- Specified by:
getUniqueIdentifier
in interfaceAbstractGML
-
isSetIdentifier
public final boolean isSetIdentifier()Description copied from interface:AbstractGML
Checks if identifier is set- Specified by:
isSetIdentifier
in interfaceAbstractGML
-
setIdentifier
Description copied from interface:AbstractGML
Sets the identifier property- Specified by:
setIdentifier
in interfaceAbstractGML
-
setUniqueIdentifier
Description copied from interface:AbstractGML
Sets the identifier property- Specified by:
setUniqueIdentifier
in interfaceAbstractGML
-
getNameList
Description copied from interface:AbstractGML
Gets the list of name properties- Specified by:
getNameList
in interfaceAbstractGML
-
getNumNames
public final int getNumNames()Description copied from interface:AbstractGML
Returns number of name properties- Specified by:
getNumNames
in interfaceAbstractGML
-
addName
Description copied from interface:AbstractGML
Adds a new name property- Specified by:
addName
in interfaceAbstractGML
-
setName
Description copied from interface:AbstractGML
Sets the default name- Specified by:
setName
in interfaceAbstractGML
-
getName
- Specified by:
getName
in interfaceAbstractGML
- Returns:
- the default name
-
getId
Description copied from interface:AbstractGML
Gets the id property- Specified by:
getId
in interfaceAbstractGML
-
setId
Description copied from interface:AbstractGML
Sets the id property- Specified by:
setId
in interfaceAbstractGML
-
getGeomEnvelope
- Specified by:
getGeomEnvelope
in interfaceAbstractGeometry
- Returns:
- the geometry bounding (hyper)rectangle
-