Package org.gvsig.fmap.geom.jts.mgeom
Class MGeometryFactory
java.lang.Object
com.vividsolutions.jts.geom.GeometryFactory
org.gvsig.fmap.geom.jts.mgeom.MGeometryFactory
- All Implemented Interfaces:
Serializable
public class MGeometryFactory
extends com.vividsolutions.jts.geom.GeometryFactory
Extension of the GeometryFactory for constructing Geometries with Measure
support.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMGeometryFactory(com.vividsolutions.jts.geom.PrecisionModel precisionModel) MGeometryFactory(com.vividsolutions.jts.geom.PrecisionModel precisionModel, int SRID) MGeometryFactory(com.vividsolutions.jts.geom.PrecisionModel precisionModel, int SRID, MCoordinateSequenceFactory coordinateSequenceFactory) MGeometryFactory(MCoordinateSequenceFactory coordinateSequenceFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateMLineString(com.vividsolutions.jts.geom.CoordinateSequence coordinates) Creates a MLineString using the given CoordinateSequence; a null or empty CoordinateSequence will create an empty MLineString.createMLineString(MCoordinate[] coordinates) Constructs a MLineString using the given Coordinates; a null or empty array will create an empty MLineString.createMultiMLineString(MLineString[] mlines) createMultiMLineString(MLineString[] mlines, double mGap) Methods inherited from class com.vividsolutions.jts.geom.GeometryFactory
buildGeometry, createGeometry, createGeometryCollection, createLinearRing, createLinearRing, createLineString, createLineString, createMultiLineString, createMultiPoint, createMultiPoint, createMultiPoint, createMultiPolygon, createPoint, createPoint, createPointFromInternalCoord, createPolygon, createPolygon, createPolygon, createPolygon, getCoordinateSequenceFactory, getPrecisionModel, getSRID, toGeometry, toGeometryArray, toLinearRingArray, toLineStringArray, toMultiLineStringArray, toMultiPointArray, toMultiPolygonArray, toPointArray, toPolygonArray
-
Constructor Details
-
MGeometryFactory
public MGeometryFactory(com.vividsolutions.jts.geom.PrecisionModel precisionModel, int SRID, MCoordinateSequenceFactory coordinateSequenceFactory) -
MGeometryFactory
-
MGeometryFactory
public MGeometryFactory(com.vividsolutions.jts.geom.PrecisionModel precisionModel) -
MGeometryFactory
public MGeometryFactory(com.vividsolutions.jts.geom.PrecisionModel precisionModel, int SRID) -
MGeometryFactory
public MGeometryFactory()
-
-
Method Details
-
createMLineString
Constructs a MLineString using the given Coordinates; a null or empty array will create an empty MLineString.- Parameters:
coordinates- array of MCoordinate defining this geometry's vertices- Returns:
- An instance of MLineString containing the coordinates
- See Also:
-
createMultiMLineString
-
createMultiMLineString
-
createMLineString
Creates a MLineString using the given CoordinateSequence; a null or empty CoordinateSequence will create an empty MLineString.- Parameters:
coordinates- a CoordinateSequence possibly empty, or null- Returns:
- An MLineString instance based on the
coordinates - See Also:
-