Class DefaultNullGeometry
java.lang.Object
org.gvsig.fmap.geom.jts.AbstractGeometry
org.gvsig.fmap.geom.jts.primitive.AbstractPrimitive
org.gvsig.fmap.geom.jts.primitive.DefaultNullGeometry
- All Implemented Interfaces:
Shape,Serializable,Cloneable,Comparable,org.gvsig.fmap.geom.Geometry,GeometryJTS,org.gvsig.fmap.geom.primitive.NullGeometry,org.gvsig.fmap.geom.primitive.Primitive
- Direct Known Subclasses:
Geometry2D,Geometry2DM,Geometry3D,Geometry3DM
public class DefaultNullGeometry
extends AbstractPrimitive
implements org.gvsig.fmap.geom.primitive.NullGeometry
DOCUMENT ME!
- Author:
- Vicente Caballero Navarro
- 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
ConstructorsConstructorDescriptionDefaultNullGeometry(org.gvsig.fmap.geom.type.GeometryType geometryType) The constructor with the GeometryType like and argument is used by theGeometryTypeto create the geometryinvalid reference
#create() -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeReprojected(org.gvsig.crs.projection.lib.CoordinateTransformation ct) booleanorg.gvsig.fmap.geom.Geometrybooleancontains(double arg0, double arg1) booleancontains(double arg0, double arg1, double arg2, double arg3) booleanbooleancontains(Rectangle2D arg0) booleanfastIntersects(double x, double y, double w, double h) voidflip()org.gvsig.fmap.geom.Geometryforce2D()org.gvsig.fmap.geom.Geometryforce2DM()org.gvsig.fmap.geom.Geometryforce3D()org.gvsig.fmap.geom.Geometryforce3DM()intorg.gvsig.fmap.geom.primitive.Envelopeorg.gvsig.fmap.geom.primitive.GeneralPathXorg.gvsig.fmap.geom.handler.Handler[]getHandlers(int type) com.vividsolutions.jts.geom.GeometrygetJTS()getPathIterator(AffineTransform at, double flatness) getShape()getShape(AffineTransform affineTransform) org.gvsig.fmap.geom.Geometry.ValidationStatusbooleanintersects(double arg0, double arg1, double arg2, double arg3) booleanbooleanis3D()booleanisSimple()booleanisValid()org.gvsig.fmap.geom.Geometryoffset(double distance) org.gvsig.fmap.geom.Geometryoffset(int joinStyle, double distance) voidreProject(org.gvsig.crs.projection.lib.CoordinateTransformation ct) 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, 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, fix, forceSubtype, getGeometryType, getInteriorPoint, getInternalShape, getManager, getProjection, getType, intersection, intersects, invokeOperation, invokeOperation, isCCW, isEmpty, 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, 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, fix, forceSubtype, getGeometryType, getInteriorPoint, getInternalShape, getProjection, getType, intersection, intersects, invokeOperation, invokeOperation, isCCW, isEmpty, isWithinDistance, makeValid, move, out, overlaps, perimeter, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, touches, union, within
-
Constructor Details
-
DefaultNullGeometry
public DefaultNullGeometry(org.gvsig.fmap.geom.type.GeometryType geometryType) The constructor with the GeometryType like and argument is used by theGeometryTypeto create the geometryinvalid reference
#create()- Parameters:
type- The geometry type
-
-
Method Details
-
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
-
getShape
- Specified by:
getShapein interfaceorg.gvsig.fmap.geom.Geometry
-
getShape
- Specified by:
getShapein interfaceorg.gvsig.fmap.geom.Geometry
-
intersects
- Specified by:
intersectsin interfaceorg.gvsig.fmap.geom.Geometry- Specified by:
intersectsin interfaceShape- Overrides:
intersectsin classAbstractGeometry
-
getBounds2D
- Specified by:
getBounds2Din interfaceorg.gvsig.fmap.geom.Geometry- Specified by:
getBounds2Din interfaceShape- Overrides:
getBounds2Din classAbstractGeometry
-
cloneGeometry
public org.gvsig.fmap.geom.Geometry cloneGeometry()- Specified by:
cloneGeometryin interfaceorg.gvsig.fmap.geom.Geometry
-
reProject
public void reProject(org.gvsig.crs.projection.lib.CoordinateTransformation ct) - Specified by:
reProjectin interfaceorg.gvsig.fmap.geom.Geometry
-
getPathIterator
- Specified by:
getPathIteratorin interfaceorg.gvsig.fmap.geom.Geometry- Specified by:
getPathIteratorin interfaceShape- See Also:
-
fastIntersects
public boolean fastIntersects(double x, double y, double w, double h) - Specified by:
fastIntersectsin interfaceorg.gvsig.fmap.geom.Geometry- Overrides:
fastIntersectsin classAbstractGeometry
-
getHandlers
public org.gvsig.fmap.geom.handler.Handler[] getHandlers(int type) - Specified by:
getHandlersin interfaceorg.gvsig.fmap.geom.Geometry- Overrides:
getHandlersin classAbstractPrimitive
-
transform
- Specified by:
transformin interfaceorg.gvsig.fmap.geom.Geometry
-
getPathIterator
- Specified by:
getPathIteratorin interfaceorg.gvsig.fmap.geom.Geometry- Specified by:
getPathIteratorin interfaceShape
-
contains
public boolean contains(double arg0, double arg1) - Specified by:
containsin interfaceShape- Overrides:
containsin classAbstractGeometry
-
contains
public boolean contains(double arg0, double arg1, double arg2, double arg3) - Specified by:
containsin interfaceShape- Overrides:
containsin classAbstractGeometry
-
intersects
public boolean intersects(double arg0, double arg1, double arg2, double arg3) - Specified by:
intersectsin interfaceShape- Overrides:
intersectsin classAbstractGeometry
-
getBounds
- Specified by:
getBoundsin interfaceShape- Overrides:
getBoundsin classAbstractGeometry
-
contains
- Specified by:
containsin interfaceShape- Overrides:
containsin classAbstractGeometry
-
contains
- Specified by:
containsin interfaceShape- Overrides:
containsin classAbstractGeometry
-
isSimple
public boolean isSimple()- Specified by:
isSimplein interfaceorg.gvsig.fmap.geom.Geometry- Overrides:
isSimplein classAbstractGeometry
-
getDimension
public int getDimension()- Specified by:
getDimensionin interfaceorg.gvsig.fmap.geom.Geometry
-
getEnvelope
public org.gvsig.fmap.geom.primitive.Envelope getEnvelope()- Specified by:
getEnvelopein interfaceorg.gvsig.fmap.geom.Geometry- Overrides:
getEnvelopein classAbstractGeometry
-
getGeneralPath
public org.gvsig.fmap.geom.primitive.GeneralPathX getGeneralPath()- Specified by:
getGeneralPathin interfaceorg.gvsig.fmap.geom.Geometry
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.gvsig.fmap.geom.Geometry- Overrides:
isValidin classAbstractGeometry
-
getValidationStatus
public org.gvsig.fmap.geom.Geometry.ValidationStatus getValidationStatus()- Specified by:
getValidationStatusin interfaceorg.gvsig.fmap.geom.Geometry- Overrides:
getValidationStatusin classAbstractGeometry
-
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
-
getJTS
public com.vividsolutions.jts.geom.Geometry getJTS()- Specified by:
getJTSin interfaceGeometryJTS- Returns:
- the jts geometry.
-
is3D
public boolean is3D()- Specified by:
is3Din interfaceGeometryJTS
-
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
-
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
-
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
-