Klasse ShpFile

java.lang.Object
de.dlr.proseo.geotools.rest.ShpFile

public class ShpFile extends Object
Hold a shape file and initialized data like feature source, filter, geometry, ...
Autor:
Melchinger
  • Konstruktordetails

    • ShpFile

      public ShpFile()
  • Methodendetails

    • getFilename

      public String getFilename()
      Gibt zurück:
      the filename
    • getType

      public ShpFile.GeoFileType getType()
      Gibt zurück:
      the type
    • getSource

      public org.geotools.data.simple.SimpleFeatureSource getSource()
      Gibt zurück:
      the source
    • getFilter

      public org.opengis.filter.FilterFactory2 getFilter()
      Gibt zurück:
      the filter
    • getGeometry

      public org.locationtech.jts.geom.GeometryFactory getGeometry()
      Gibt zurück:
      the geometry factory
    • setFilename

      public void setFilename(String filename)
      Parameter:
      filename - the filename to set
    • setType

      public void setType(ShpFile.GeoFileType type)
      Parameter:
      type - the type to set
    • setSource

      public void setSource(org.geotools.data.simple.SimpleFeatureSource source)
      Parameter:
      source - the source to set
    • setFilter

      public void setFilter(org.opengis.filter.FilterFactory2 filter)
      Parameter:
      filter - the filter to set
    • setGeometry

      public void setGeometry(org.locationtech.jts.geom.GeometryFactory geometry)
      Parameter:
      geometry - the geometry factory to set
    • openFileAndCreate

      Open and initialize a shape file
      Parameter:
      filename - The file name
      type - The file type (currently only SHP supported)
      Gibt zurück:
      The initialized instance
      Löst aus:
      UnsupportedOperationException - if a valid, but not yet handled file type was given
      IllegalArgumentException - if an invalid file type was given
      IOException - if the shape file could not be opened created successfully