Class SHPFile2

java.lang.Object
org.gvsig.fmap.dal.store.shp.utils.SHPFile2
All Implemented Interfaces:
ISHPFile

public class SHPFile2 extends Object implements ISHPFile
Author:
jmvivo
  • Constructor Details

  • Method Details

    • setUseNullGeometry

      public void setUseNullGeometry(boolean useNullGeometry)
      Specified by:
      setUseNullGeometry in interface ISHPFile
    • close

      public void close() throws org.gvsig.fmap.dal.exception.CloseException
      Specified by:
      close in interface ISHPFile
      Throws:
      org.gvsig.fmap.dal.exception.CloseException
    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface ISHPFile
    • open

      public void open() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      open in interface ISHPFile
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getFullExtent

      public org.gvsig.fmap.geom.primitive.Envelope getFullExtent() throws org.gvsig.fmap.dal.exception.ReadException
      Specified by:
      getFullExtent in interface ISHPFile
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
    • isEditable

      public boolean isEditable()
      Specified by:
      isEditable in interface ISHPFile
    • getGeometryType

      public int getGeometryType() throws org.gvsig.fmap.dal.exception.ReadException
      Specified by:
      getGeometryType in interface ISHPFile
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
    • getGeometrySubType

      public int getGeometrySubType() throws org.gvsig.fmap.dal.exception.ReadException
      Specified by:
      getGeometrySubType in interface ISHPFile
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
    • getNullGeometry

      public org.gvsig.fmap.geom.Geometry getNullGeometry() throws org.gvsig.fmap.geom.exception.CreateGeometryException
      Throws:
      org.gvsig.fmap.geom.exception.CreateGeometryException
    • getGeometry

      public org.gvsig.fmap.geom.Geometry getGeometry(long position) throws org.gvsig.fmap.dal.exception.ReadException, org.gvsig.fmap.geom.exception.CreateGeometryException
      Gets the geometry with the index provided. Set to synchronized to prevent concurrent threads issue (?)
      Specified by:
      getGeometry in interface ISHPFile
      Parameters:
      position -
      Returns:
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
      org.gvsig.fmap.geom.exception.CreateGeometryException
    • getBoundingBox

      public org.gvsig.fmap.geom.primitive.Envelope getBoundingBox(long featureIndex) throws org.gvsig.fmap.dal.exception.ReadException, org.gvsig.fmap.geom.exception.CreateEnvelopeException, org.gvsig.fmap.geom.exception.CreateGeometryException
      Gets the geometry bbox with the index provided. Set to synchronized to prevent concurrent threads issue (?)
      Specified by:
      getBoundingBox in interface ISHPFile
      Parameters:
      featureIndex -
      Returns:
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
      org.gvsig.fmap.geom.exception.CreateEnvelopeException
      org.gvsig.fmap.geom.exception.CreateGeometryException
    • getSRSParameters

      public String getSRSParameters()
      Specified by:
      getSRSParameters in interface ISHPFile
      Returns:
    • canWriteGeometry

      public boolean canWriteGeometry(int gvSIGgeometryType)
      Specified by:
      canWriteGeometry in interface ISHPFile