Package io.github.sebasbaumh.postgis
Klasse CompoundCurve
java.lang.Object
io.github.sebasbaumh.postgis.Geometry
io.github.sebasbaumh.postgis.Curve
io.github.sebasbaumh.postgis.CompoundCurve
- Alle implementierten Schnittstellen:
LineBasedGeometry
,Serializable
,Iterable<LineString>
A compound curve is a single, continuous curve that has both curved (circular) segments and linear segments. That
means that in addition to having well-formed components, the end point of every component (except the last) must be
coincident with the start point of the following component. Just note: here it is treated as a special
MultiCurve
where the end points of all contained lines match.- Autor:
- Sebastian Baumhekel
- Siehe auch:
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final int
The OGIS geometry type number for single, continuous curves that have both curved (circular) segments and linear segments.Von Klasse geerbte Felder io.github.sebasbaumh.postgis.Geometry
UNKNOWN_SRID
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstructs an instance.CompoundCurve
(Iterable<? extends LineString> geoms) Constructs an instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
add
(LineString geom) Adds a geometry.final void
addAll
(Iterable<? extends LineString> geoms) Adds all given geometries.boolean
Do some internal consistency checks on the geometry.void
close()
Closes thisCurve
if the last coordinate is not already the same as the first coordinate.boolean
java.lang.Object equals implementationGets the coordinates of thisGeometry
.Gets the end point.Gets all geometries.int
Gets the number of coordinates of thisGeometry
.Gets the start point.int
hashCode()
boolean
Returns whether we have a measure (4th dimension)boolean
is3d()
Checks if thisGeometry
is 3d.boolean
isEmpty()
Checks, if there are no sub-geometries.iterator()
double
length()
Gets the length of this line.void
reverse()
Reverses this linestring.void
setSrid
(int srid) Recursively sets the srid on this geometry and all contained subgeometriesint
size()
Gets the number of contained geometries.Von Klasse geerbte Methoden io.github.sebasbaumh.postgis.Curve
isClockwise, isClosed, toString
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliterator
-
Felddetails
-
TYPE
public static final int TYPEThe OGIS geometry type number for single, continuous curves that have both curved (circular) segments and linear segments.- Siehe auch:
-
-
Konstruktordetails
-
CompoundCurve
public CompoundCurve()Constructs an instance. -
CompoundCurve
Constructs an instance.- Parameter:
geoms
- geometries
-
-
Methodendetails
-
add
Adds a geometry.- Parameter:
geom
- geometry
-
addAll
Adds all given geometries.- Parameter:
geoms
- geometries
-
checkConsistency
public boolean checkConsistency()Beschreibung aus Klasse kopiert:Geometry
Do some internal consistency checks on the geometry. Currently, all Geometries must have a valid dimension (2 or 3) and a valid type. Composed geometries must have all equal SRID, dimensionality and measures, as well as that they do not contain NULL or inconsistent subgeometries. BinaryParser and WKTParser should only generate consistent geometries. BinaryWriter may produce invalid results on inconsistent geometries.- Setzt außer Kraft:
checkConsistency
in KlasseGeometry
- Gibt zurück:
- true if all checks are passed.
-
close
public void close()Closes thisCurve
if the last coordinate is not already the same as the first coordinate. -
equals
Beschreibung aus Klasse kopiert:Geometry
java.lang.Object equals implementation -
getCoordinates
Beschreibung aus Klasse kopiert:Geometry
Gets the coordinates of thisGeometry
.- Angegeben von:
getCoordinates
in KlasseGeometry
- Gibt zurück:
- coordinates
-
getEndPoint
Beschreibung aus Schnittstelle kopiert:LineBasedGeometry
Gets the end point.- Angegeben von:
getEndPoint
in SchnittstelleLineBasedGeometry
- Gibt zurück:
Point
on success, else null
-
getGeometries
Gets all geometries.- Gibt zurück:
- geometries
-
getNumberOfCoordinates
public int getNumberOfCoordinates()Beschreibung aus Klasse kopiert:Geometry
Gets the number of coordinates of thisGeometry
.- Angegeben von:
getNumberOfCoordinates
in KlasseGeometry
- Gibt zurück:
- number of coordinates
-
getStartPoint
Beschreibung aus Schnittstelle kopiert:LineBasedGeometry
Gets the start point.- Angegeben von:
getStartPoint
in SchnittstelleLineBasedGeometry
- Gibt zurück:
Point
on success, else null
-
hashCode
public int hashCode() -
hasMeasure
public boolean hasMeasure()Beschreibung aus Klasse kopiert:Geometry
Returns whether we have a measure (4th dimension)- Angegeben von:
hasMeasure
in KlasseGeometry
- Gibt zurück:
- true if the geometry has a measure, false otherwise
-
is3d
public boolean is3d()Beschreibung aus Klasse kopiert:Geometry
Checks if thisGeometry
is 3d. -
isEmpty
public boolean isEmpty()Checks, if there are no sub-geometries. -
iterator
- Angegeben von:
iterator
in SchnittstelleIterable<LineString>
-
length
public double length()Beschreibung aus Schnittstelle kopiert:LineBasedGeometry
Gets the length of this line.- Angegeben von:
length
in SchnittstelleLineBasedGeometry
- Gibt zurück:
- length
-
reverse
public void reverse()Beschreibung aus Klasse kopiert:Curve
Reverses this linestring. -
setSrid
public void setSrid(int srid) Beschreibung aus Klasse kopiert:Geometry
Recursively sets the srid on this geometry and all contained subgeometries -
size
public int size()Gets the number of contained geometries.- Gibt zurück:
- number of contained geometries
-