Class BaseLine2DM
java.lang.Object
org.gvsig.fmap.geom.jts.AbstractGeometry
org.gvsig.fmap.geom.jts.primitive.AbstractPrimitive
org.gvsig.fmap.geom.jts.primitive.curve.AbstractCurve
org.gvsig.fmap.geom.jts.primitive.curve.line.AbstractLine
org.gvsig.fmap.geom.jts.primitive.curve.line.BaseLine2DM
- All Implemented Interfaces:
Shape,Serializable,Cloneable,Comparable,org.gvsig.fmap.geom.Geometry,GeometryJTS,org.gvsig.fmap.geom.primitive.OrientablePrimitive,org.gvsig.fmap.geom.primitive.Primitive,org.gvsig.tools.util.GetItem<org.gvsig.fmap.geom.primitive.Point>,org.gvsig.tools.util.IsEmpty,org.gvsig.tools.util.Size
- Direct Known Subclasses:
Line2DM,Polygon2DM,Ring2DM
- Author:
- fdiaz
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.gvsig.fmap.geom.jts.primitive.curve.line.AbstractLine
AbstractLine.LineIterator, AbstractLine.VertexIteratorNested classes/interfaces inherited from interface org.gvsig.fmap.geom.Geometry
org.gvsig.fmap.geom.Geometry.DIMENSIONS, org.gvsig.fmap.geom.Geometry.OPERATIONS, org.gvsig.fmap.geom.Geometry.SUBTYPES, org.gvsig.fmap.geom.Geometry.TYPES, org.gvsig.fmap.geom.Geometry.ValidationStatus -
Field Summary
Fields inherited from class org.gvsig.fmap.geom.jts.primitive.curve.line.AbstractLine
coordinates, LOGGERFields inherited from interface org.gvsig.fmap.geom.Geometry
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, JOIN_STYLE_BEVEL, JOIN_STYLE_MITRE, JOIN_STYLE_ROUND, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W -
Constructor Summary
ConstructorsConstructorDescriptionBaseLine2DM(int type) BaseLine2DM(int type, com.vividsolutions.jts.geom.Coordinate[] coordinates) BaseLine2DM(int type, ArrayListCoordinateSequence coordinates) -
Method Summary
Modifier and TypeMethodDescriptionorg.gvsig.fmap.geom.primitive.OrientablePrimitiveaddVertex(double x, double y) org.gvsig.fmap.geom.primitive.OrientablePrimitiveaddVertex(double x, double y, double z) protected org.gvsig.fmap.geom.primitive.PointfixPoint(org.gvsig.fmap.geom.primitive.Point point) doublegetCoordinateAt(int index, int dimension) org.gvsig.fmap.geom.primitive.PointgetVertex(int index) voidreProject(org.gvsig.crs.projection.lib.CoordinateTransformation ct) org.gvsig.fmap.geom.primitive.OrientablePrimitivesetCoordinateAt(int index, int dimension, double value) org.gvsig.fmap.geom.aggregate.MultiLinetoLines()org.gvsig.fmap.geom.aggregate.MultiPointtoPoints()org.gvsig.fmap.geom.aggregate.MultiPolygonMethods inherited from class org.gvsig.fmap.geom.jts.primitive.curve.line.AbstractLine
addMoveToVertex, addVertex, canBeReprojected, canBeTransformed, cloneCoordinates, closePrimitive, ensureCapacity, extractPoint, flip, force2D, force2DM, force3D, force3DM, forceClose, get, getDimension, getGeneralPath, getJTS, getNumVertices, getPathIterator, getPathIterator, getPathLength, getShape, getShape, insertVertex, is3D, isClosed, isClosed, isEmpty, iterator, removeVertex, setGeneralPath, setPoints, setVertex, size, transformMethods inherited from class org.gvsig.fmap.geom.jts.primitive.AbstractPrimitive
getHandlersMethods inherited from class org.gvsig.fmap.geom.jts.AbstractGeometry
area, boundary, buffer, buffer, centroid, clone, closestPoints, compareTo, contains, contains, contains, contains, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, fix, forceSubtype, getBounds, getBounds2D, getEnvelope, getGeometryType, getInteriorPoint, getInternalShape, getManager, getProjection, getType, getValidationStatus, intersection, intersects, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, notifyDeprecated, out, overlaps, perimeter, rotate, scale, setGeometryType, setProjection, setProjection, setProjectionIffNull, snapTo, toString, touches, union, withinMethods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gvsig.fmap.geom.Geometry
area, boundary, buffer, buffer, centroid, clone, cloneGeometry, closestPoints, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, fix, forceSubtype, getBounds2D, getEnvelope, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getProjection, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, offset, out, overlaps, perimeter, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, touches, union, within
-
Constructor Details
-
BaseLine2DM
public BaseLine2DM(int type) - Parameters:
polygon-
-
BaseLine2DM
public BaseLine2DM(int type, com.vividsolutions.jts.geom.Coordinate[] coordinates) - Parameters:
coordinates-polygon-
-
BaseLine2DM
-
-
Method Details
-
addVertex
public org.gvsig.fmap.geom.primitive.OrientablePrimitive addVertex(double x, double y) -
addVertex
public org.gvsig.fmap.geom.primitive.OrientablePrimitive addVertex(double x, double y, double z) -
fixPoint
protected org.gvsig.fmap.geom.primitive.Point fixPoint(org.gvsig.fmap.geom.primitive.Point point) - Specified by:
fixPointin classAbstractLine- Parameters:
point-- Returns:
-
toPoints
public org.gvsig.fmap.geom.aggregate.MultiPoint toPoints() throws org.gvsig.fmap.geom.GeometryException- Throws:
org.gvsig.fmap.geom.GeometryException
-
toLines
public org.gvsig.fmap.geom.aggregate.MultiLine toLines() throws org.gvsig.fmap.geom.GeometryException- Throws:
org.gvsig.fmap.geom.GeometryException
-
toPolygons
public org.gvsig.fmap.geom.aggregate.MultiPolygon toPolygons() throws org.gvsig.fmap.geom.GeometryException- Throws:
org.gvsig.fmap.geom.GeometryException
-
getVertex
public org.gvsig.fmap.geom.primitive.Point getVertex(int index) - Specified by:
getVertexin interfaceorg.gvsig.fmap.geom.primitive.OrientablePrimitive- Specified by:
getVertexin classAbstractLine
-
getCoordinateAt
public double getCoordinateAt(int index, int dimension) - Specified by:
getCoordinateAtin interfaceorg.gvsig.fmap.geom.primitive.OrientablePrimitive- Overrides:
getCoordinateAtin classAbstractLine
-
setCoordinateAt
public org.gvsig.fmap.geom.primitive.OrientablePrimitive setCoordinateAt(int index, int dimension, double value) - Specified by:
setCoordinateAtin interfaceorg.gvsig.fmap.geom.primitive.OrientablePrimitive- Overrides:
setCoordinateAtin classAbstractLine
-
reProject
public void reProject(org.gvsig.crs.projection.lib.CoordinateTransformation ct) - Specified by:
reProjectin interfaceorg.gvsig.fmap.geom.Geometry- Overrides:
reProjectin classAbstractLine
-