Package org.gvsig.fmap.geom.jts.complex
Class DefaultComplex
java.lang.Object
org.gvsig.fmap.geom.jts.AbstractGeometry
org.gvsig.fmap.geom.jts.complex.DefaultComplex
- All Implemented Interfaces:
Shape,Serializable,Cloneable,Comparable,Iterable<org.gvsig.fmap.geom.Geometry>,org.gvsig.fmap.geom.complex.Complex,org.gvsig.fmap.geom.Geometry,GeometryJTS,org.gvsig.tools.util.GetItem<org.gvsig.fmap.geom.Geometry>,org.gvsig.tools.util.IsEmpty,org.gvsig.tools.util.Size
- Author:
- fdiaz
- See Also:
-
Nested Class Summary
Nested 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.AbstractGeometry
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
ConstructorsConstructorDescriptionDefaultComplex(int subtype) DefaultComplex(org.gvsig.fmap.geom.type.GeometryType geomType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPrimitive(org.gvsig.fmap.geom.primitive.Primitive primitive) voidaddPrimitives(org.gvsig.fmap.geom.aggregate.Aggregate aggregate) voidaddPrimitives(org.gvsig.fmap.geom.Geometry geometry) booleancanBeReprojected(org.gvsig.crs.projection.lib.CoordinateTransformation ct) booleanorg.gvsig.fmap.geom.Geometryorg.gvsig.fmap.geom.aggregate.AggregatecreateAggregate(int type, Predicate<org.gvsig.fmap.geom.Geometry> filter) voidensureCapacity(int capacity) booleanvoidflip()org.gvsig.fmap.geom.Geometryforce2D()org.gvsig.fmap.geom.Geometryforce2DM()org.gvsig.fmap.geom.Geometryforce3D()org.gvsig.fmap.geom.Geometryforce3DM()org.gvsig.fmap.geom.Geometryget(int position) intCollection<? extends org.gvsig.fmap.geom.Geometry> org.gvsig.fmap.geom.primitive.GeneralPathXorg.gvsig.fmap.geom.handler.Handler[]getHandlers(int type) com.vividsolutions.jts.geom.GeometrygetJTS()getPathIterator(AffineTransform affineTransform) getPathIterator(AffineTransform at, double flatness) org.gvsig.fmap.geom.primitive.PrimitivegetPrimitiveAt(int i) intgetShape()getShape(AffineTransform affineTransform) inthashCode()booleanis3D()booleanisEmpty()Iterator<org.gvsig.fmap.geom.Geometry> iterator()Iterator<org.gvsig.fmap.geom.Geometry> org.gvsig.fmap.geom.Geometryoffset(double distance) org.gvsig.fmap.geom.Geometryoffset(int joinStyle, double distance) voidreProject(org.gvsig.crs.projection.lib.CoordinateTransformation ct) intsize()org.gvsig.fmap.geom.aggregate.MultiLinetoLines()org.gvsig.fmap.geom.aggregate.MultiPointtoPoints()org.gvsig.fmap.geom.aggregate.MultiPolygonvoidMethods 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, 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, 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, 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, fastIntersects, fix, forceSubtype, getBounds2D, getEnvelope, getGeometryType, getInteriorPoint, getInternalShape, getProjection, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, out, overlaps, perimeter, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, touches, union, withinMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DefaultComplex
public DefaultComplex(org.gvsig.fmap.geom.type.GeometryType geomType) -
DefaultComplex
public DefaultComplex(int subtype) - Parameters:
subtype-
-
-
Method Details
-
getPrimitivesNumber
public int getPrimitivesNumber()- Specified by:
getPrimitivesNumberin interfaceorg.gvsig.fmap.geom.complex.Complex
-
getPrimitiveAt
public org.gvsig.fmap.geom.primitive.Primitive getPrimitiveAt(int i) - Specified by:
getPrimitiveAtin interfaceorg.gvsig.fmap.geom.complex.Complex
-
getPathIterator
- Specified by:
getPathIteratorin interfaceorg.gvsig.fmap.geom.Geometry- Specified by:
getPathIteratorin interfaceShape
-
iterator
-
ensureCapacity
public void ensureCapacity(int capacity) - Specified by:
ensureCapacityin interfaceorg.gvsig.fmap.geom.complex.Complex
-
reProject
public void reProject(org.gvsig.crs.projection.lib.CoordinateTransformation ct) - Specified by:
reProjectin interfaceorg.gvsig.fmap.geom.Geometry
-
transform
- Specified by:
transformin interfaceorg.gvsig.fmap.geom.Geometry
-
is3D
public boolean is3D()- Specified by:
is3Din interfaceGeometryJTS
-
getShape
- Specified by:
getShapein interfaceorg.gvsig.fmap.geom.Geometry
-
getShape
- Specified by:
getShapein interfaceorg.gvsig.fmap.geom.Geometry
-
equals
- Specified by:
equalsin interfaceorg.gvsig.fmap.geom.Geometry- Overrides:
equalsin classAbstractGeometry
-
hashCode
public int hashCode() -
canBeTransformed
- Specified by:
canBeTransformedin interfaceorg.gvsig.fmap.geom.Geometry
-
canBeReprojected
public boolean canBeReprojected(org.gvsig.crs.projection.lib.CoordinateTransformation ct) - Specified by:
canBeReprojectedin interfaceorg.gvsig.fmap.geom.Geometry
-
flip
public void flip() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException- Specified by:
flipin interfaceorg.gvsig.fmap.geom.Geometry- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
addPrimitive
public void addPrimitive(org.gvsig.fmap.geom.primitive.Primitive primitive) - Specified by:
addPrimitivein interfaceorg.gvsig.fmap.geom.complex.Complex
-
addPrimitives
public void addPrimitives(org.gvsig.fmap.geom.aggregate.Aggregate aggregate) - Specified by:
addPrimitivesin interfaceorg.gvsig.fmap.geom.complex.Complex
-
addPrimitives
public void addPrimitives(org.gvsig.fmap.geom.Geometry geometry) - Specified by:
addPrimitivesin interfaceorg.gvsig.fmap.geom.complex.Complex
-
force2D
public org.gvsig.fmap.geom.Geometry force2D() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException- Specified by:
force2Din interfaceorg.gvsig.fmap.geom.Geometry- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
force2DM
public org.gvsig.fmap.geom.Geometry force2DM() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException- Specified by:
force2DMin classAbstractGeometry- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
force3D
public org.gvsig.fmap.geom.Geometry force3D() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException- Specified by:
force3Din classAbstractGeometry- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
force3DM
public org.gvsig.fmap.geom.Geometry force3DM() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException- Specified by:
force3DMin classAbstractGeometry- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
offset
public org.gvsig.fmap.geom.Geometry offset(double distance) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException - Specified by:
offsetin interfaceorg.gvsig.fmap.geom.Geometry- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
offset
public org.gvsig.fmap.geom.Geometry offset(int joinStyle, double distance) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException - Specified by:
offsetin interfaceorg.gvsig.fmap.geom.Geometry- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
getJTS
public com.vividsolutions.jts.geom.Geometry getJTS()- Specified by:
getJTSin interfaceGeometryJTS- Returns:
- the jts geometry.
-
cloneGeometry
public org.gvsig.fmap.geom.Geometry cloneGeometry()- Specified by:
cloneGeometryin interfaceorg.gvsig.fmap.geom.Geometry
-
getDimension
public int getDimension()- Specified by:
getDimensionin interfaceorg.gvsig.fmap.geom.Geometry
-
getHandlers
public org.gvsig.fmap.geom.handler.Handler[] getHandlers(int type) - Specified by:
getHandlersin interfaceorg.gvsig.fmap.geom.Geometry
-
getPathIterator
- Specified by:
getPathIteratorin interfaceorg.gvsig.fmap.geom.Geometry- Specified by:
getPathIteratorin interfaceShape
-
getGeneralPath
public org.gvsig.fmap.geom.primitive.GeneralPathX getGeneralPath()- Specified by:
getGeneralPathin interfaceorg.gvsig.fmap.geom.Geometry
-
toPoints
public org.gvsig.fmap.geom.aggregate.MultiPoint toPoints() throws org.gvsig.fmap.geom.GeometryException- Specified by:
toPointsin interfaceorg.gvsig.fmap.geom.Geometry- Throws:
org.gvsig.fmap.geom.GeometryException
-
toLines
public org.gvsig.fmap.geom.aggregate.MultiLine toLines() throws org.gvsig.fmap.geom.GeometryException- Specified by:
toLinesin interfaceorg.gvsig.fmap.geom.Geometry- Throws:
org.gvsig.fmap.geom.GeometryException
-
toPolygons
public org.gvsig.fmap.geom.aggregate.MultiPolygon toPolygons() throws org.gvsig.fmap.geom.GeometryException- Specified by:
toPolygonsin interfaceorg.gvsig.fmap.geom.Geometry- Throws:
org.gvsig.fmap.geom.GeometryException
-
getElements
- Specified by:
getElementsin interfaceorg.gvsig.fmap.geom.complex.Complex
-
iterator
public Iterator<org.gvsig.fmap.geom.Geometry> iterator(Predicate<org.gvsig.fmap.geom.Geometry> filter) - Specified by:
iteratorin interfaceorg.gvsig.fmap.geom.complex.Complex
-
createAggregate
public org.gvsig.fmap.geom.aggregate.Aggregate createAggregate(int type, Predicate<org.gvsig.fmap.geom.Geometry> filter) throws org.gvsig.fmap.geom.exception.CreateGeometryException - Specified by:
createAggregatein interfaceorg.gvsig.fmap.geom.complex.Complex- Throws:
org.gvsig.fmap.geom.exception.CreateGeometryException
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceorg.gvsig.fmap.geom.Geometry- Specified by:
isEmptyin interfaceorg.gvsig.tools.util.IsEmpty- Overrides:
isEmptyin classAbstractGeometry
-
size
public int size()- Specified by:
sizein interfaceorg.gvsig.tools.util.Size
-
get
public org.gvsig.fmap.geom.Geometry get(int position) - Specified by:
getin interfaceorg.gvsig.tools.util.GetItem<org.gvsig.fmap.geom.Geometry>
-