Class AbstractGeometry

java.lang.Object
org.gvsig.fmap.geom.jts.AbstractGeometry
All Implemented Interfaces:
Shape, Serializable, Cloneable, Comparable, org.gvsig.fmap.geom.Geometry, GeometryJTS
Direct Known Subclasses:
AbstractAggregate, AbstractPrimitive, DefaultComplex

public abstract class AbstractGeometry extends Object implements GeometryJTS
Author:
gvSIG Team
See Also:
  • Field Details

    • LOGGER

      protected static final org.slf4j.Logger LOGGER
  • Constructor Details

    • AbstractGeometry

      public AbstractGeometry(int type, int subtype)
      Parameters:
      type -
      subtype -
  • Method Details

    • setGeometryType

      public void setGeometryType(org.gvsig.fmap.geom.type.GeometryType geometryType)
    • getGeometryType

      public org.gvsig.fmap.geom.type.GeometryType getGeometryType()
      Specified by:
      getGeometryType in interface org.gvsig.fmap.geom.Geometry
    • getManager

      protected org.gvsig.fmap.geom.GeometryManager getManager()
    • contains

      public boolean contains(org.gvsig.fmap.geom.Geometry geometry) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      contains in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • compareTo

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable
    • contains

      public boolean contains(double x, double y)
      Specified by:
      contains in interface Shape
    • intersects

      public boolean intersects(double x, double y, double w, double h)
      Specified by:
      intersects in interface Shape
    • contains

      public boolean contains(double x, double y, double w, double h)
      Specified by:
      contains in interface Shape
    • contains

      public boolean contains(Point2D p)
      Specified by:
      contains in interface Shape
    • contains

      public boolean contains(Rectangle2D r)
      Specified by:
      contains in interface Shape
    • distance

      public double distance(org.gvsig.fmap.geom.Geometry other) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      distance in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • isWithinDistance

      public boolean isWithinDistance(org.gvsig.fmap.geom.Geometry other, double distance) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      isWithinDistance in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • overlaps

      public boolean overlaps(org.gvsig.fmap.geom.Geometry geometry) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      overlaps in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • coveredBy

      public boolean coveredBy(org.gvsig.fmap.geom.Geometry geometry) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      coveredBy in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • covers

      public boolean covers(org.gvsig.fmap.geom.Geometry geometry) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      covers in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • crosses

      public boolean crosses(org.gvsig.fmap.geom.Geometry geometry) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      crosses in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • intersects

      public boolean intersects(org.gvsig.fmap.geom.Geometry geometry) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      intersects in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • touches

      public boolean touches(org.gvsig.fmap.geom.Geometry geometry) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      touches in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • disjoint

      public boolean disjoint(org.gvsig.fmap.geom.Geometry geometry) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      disjoint in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • within

      public boolean within(org.gvsig.fmap.geom.Geometry geometry) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      within in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • area

      public double area() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      area in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • perimeter

      public double perimeter() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      perimeter in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • intersects

      public boolean intersects(Rectangle2D r)
      Specified by:
      intersects in interface org.gvsig.fmap.geom.Geometry
      Specified by:
      intersects in interface Shape
    • fastIntersects

      public boolean fastIntersects(double x, double y, double w, double h)
      Specified by:
      fastIntersects in interface org.gvsig.fmap.geom.Geometry
    • getEnvelope

      public org.gvsig.fmap.geom.primitive.Envelope getEnvelope()
      Specified by:
      getEnvelope in interface org.gvsig.fmap.geom.Geometry
    • isSimple

      public boolean isSimple()
      Specified by:
      isSimple in interface org.gvsig.fmap.geom.Geometry
    • isCCW

      public boolean isCCW() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      isCCW in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • invokeOperation

      public Object invokeOperation(int index, org.gvsig.fmap.geom.operation.GeometryOperationContext ctx) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      invokeOperation in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • invokeOperation

      public Object invokeOperation(String opName, org.gvsig.fmap.geom.operation.GeometryOperationContext ctx) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      invokeOperation in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • getType

      public int getType()
      Specified by:
      getType in interface org.gvsig.fmap.geom.Geometry
    • convertTo

      public Object convertTo(String format, Object... args) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      convertTo in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • convertToWKB

      public byte[] convertToWKB() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      convertToWKB in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • convertToHexWKB

      public String convertToHexWKB() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      convertToHexWKB in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • convertToGeoJson

      public String convertToGeoJson() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • convertToGeoJson

      public String convertToGeoJson(Map<String,Object> properties, boolean encodecrs) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      convertToGeoJson in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • convertToHexEWKB

      public String convertToHexEWKB() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      convertToHexEWKB in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • convertToWKBQuietly

      public byte[] convertToWKBQuietly()
      Specified by:
      convertToWKBQuietly in interface org.gvsig.fmap.geom.Geometry
    • convertToHexWKBQuietly

      public String convertToHexWKBQuietly()
      Specified by:
      convertToHexWKBQuietly in interface org.gvsig.fmap.geom.Geometry
    • convertToHexEWKBQuietly

      public String convertToHexEWKBQuietly()
      Specified by:
      convertToHexEWKBQuietly in interface org.gvsig.fmap.geom.Geometry
    • convertToWKB

      public byte[] convertToWKB(int srs) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      convertToWKB in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • convertToWKBForcingType

      public byte[] convertToWKBForcingType(int srs, int type) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      convertToWKBForcingType in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • convertToEWKB

      public byte[] convertToEWKB() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      convertToEWKB in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • convertToEWKB

      public byte[] convertToEWKB(int srs) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      convertToEWKB in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • convertToEWKBForcingType

      public byte[] convertToEWKBForcingType(int srs, int type) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      convertToEWKBForcingType in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • convertToWKT

      public String convertToWKT() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      convertToWKT in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • convertToWKTQuietly

      public String convertToWKTQuietly()
      Specified by:
      convertToWKTQuietly in interface org.gvsig.fmap.geom.Geometry
    • buffer

      public org.gvsig.fmap.geom.Geometry buffer(double distance) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      buffer in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • buffer

      public org.gvsig.fmap.geom.Geometry buffer(double distance, int joinStyle, boolean capButt) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      buffer in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • snapTo

      public org.gvsig.fmap.geom.Geometry snapTo(org.gvsig.fmap.geom.Geometry other, double snapTolerance) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      snapTo in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • getInteriorPoint

      public org.gvsig.fmap.geom.primitive.Point getInteriorPoint() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      getInteriorPoint in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface org.gvsig.fmap.geom.Geometry
    • getValidationStatus

      public org.gvsig.fmap.geom.Geometry.ValidationStatus getValidationStatus()
      Specified by:
      getValidationStatus in interface org.gvsig.fmap.geom.Geometry
    • makeValid

      public org.gvsig.fmap.geom.Geometry makeValid()
      Specified by:
      makeValid in interface org.gvsig.fmap.geom.Geometry
    • getBounds2D

      public Rectangle2D getBounds2D()
      Specified by:
      getBounds2D in interface org.gvsig.fmap.geom.Geometry
      Specified by:
      getBounds2D in interface Shape
    • getBounds

      public Rectangle getBounds()
      Specified by:
      getBounds in interface Shape
    • getInternalShape

      public Shape getInternalShape()
      Specified by:
      getInternalShape in interface org.gvsig.fmap.geom.Geometry
    • rotate

      public void rotate(double radAngle, double basex, double basey)
      Specified by:
      rotate in interface org.gvsig.fmap.geom.Geometry
    • move

      public void move(double dx, double dy)
      Specified by:
      move in interface org.gvsig.fmap.geom.Geometry
    • scale

      public void scale(org.gvsig.fmap.geom.primitive.Point basePoint, double sx, double sy)
      Specified by:
      scale in interface org.gvsig.fmap.geom.Geometry
    • closestPoints

      public org.gvsig.fmap.geom.Geometry[] closestPoints(org.gvsig.fmap.geom.Geometry other) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      closestPoints in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • convexHull

      public org.gvsig.fmap.geom.Geometry convexHull() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      convexHull in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • difference

      public org.gvsig.fmap.geom.Geometry difference(org.gvsig.fmap.geom.Geometry other) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      difference in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • intersection

      public org.gvsig.fmap.geom.Geometry intersection(org.gvsig.fmap.geom.Geometry other) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      intersection in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • union

      public org.gvsig.fmap.geom.Geometry union(org.gvsig.fmap.geom.Geometry other) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      union in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • centroid

      public org.gvsig.fmap.geom.primitive.Point centroid() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      centroid in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • notifyDeprecated

      protected void notifyDeprecated(String message)
    • ensureOrientation

      public boolean ensureOrientation(boolean ccw) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      ensureOrientation in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • out

      public boolean out(org.gvsig.fmap.geom.Geometry geometry) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      out in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface org.gvsig.fmap.geom.Geometry
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getProjection

      public org.gvsig.crs.projection.lib.Projection getProjection()
      Specified by:
      getProjection in interface org.gvsig.fmap.geom.Geometry
    • setProjectionIffNull

      public void setProjectionIffNull(org.gvsig.crs.projection.lib.Projection projection)
      Specified by:
      setProjectionIffNull in interface org.gvsig.fmap.geom.Geometry
    • setProjection

      public void setProjection(org.gvsig.crs.projection.lib.Projection projection)
      Specified by:
      setProjection in interface org.gvsig.fmap.geom.Geometry
    • setProjection

      public void setProjection(String projection)
      Specified by:
      setProjection in interface org.gvsig.fmap.geom.Geometry
    • clone

      public org.gvsig.fmap.geom.Geometry clone() throws CloneNotSupportedException
      Specified by:
      clone in interface org.gvsig.fmap.geom.Geometry
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • boundary

      public org.gvsig.fmap.geom.Geometry boundary()
      Specified by:
      boundary in interface org.gvsig.fmap.geom.Geometry
    • fix

      public org.gvsig.fmap.geom.Geometry fix()
      Specified by:
      fix in interface org.gvsig.fmap.geom.Geometry
    • forceSubtype

      public org.gvsig.fmap.geom.Geometry forceSubtype(int subtype) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      forceSubtype in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • force2DM

      protected abstract org.gvsig.fmap.geom.Geometry force2DM() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • force3D

      protected abstract org.gvsig.fmap.geom.Geometry force3D() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • force3DM

      protected abstract org.gvsig.fmap.geom.Geometry force3DM() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.gvsig.fmap.geom.Geometry