Class LinearGeometry
- java.lang.Object
-
- com.github.filosganga.geogson.model.AbstractGeometry<LinearPositions>
-
- com.github.filosganga.geogson.model.LinearGeometry
-
- All Implemented Interfaces:
Geometry<LinearPositions>,Serializable
- Direct Known Subclasses:
LineString,MultiPoint
public abstract class LinearGeometry extends AbstractGeometry<LinearPositions>
An abstract Geometry that is composed by a sequence of points.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.filosganga.geogson.model.Geometry
Geometry.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Point>points()Returns the points composing this Geometry.LinearRingtoLinearRing()Convert to a LinearRing.LineStringtoLineString()Converts to a LineString.MultiPointtoMultiPoint()Converts to a MultiPoint.-
Methods inherited from class com.github.filosganga.geogson.model.AbstractGeometry
equals, hashCode, positions, size, toString
-
-
-
-
Method Detail
-
toMultiPoint
public MultiPoint toMultiPoint()
Converts to a MultiPoint.- Returns:
- MultiPoint
-
toLineString
public LineString toLineString()
Converts to a LineString.- Returns:
- LineString
-
toLinearRing
public LinearRing toLinearRing()
Convert to a LinearRing.- Returns:
- LinearRing
-
-