Package de.dlr.proseo.geotools.rest
Klasse ShpFile
java.lang.Object
de.dlr.proseo.geotools.rest.ShpFile
Hold a shape file and initialized data like feature source, filter, geometry,
...
- Autor:
- Melchinger
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enum
An enumeration of different types of geographic file formats, i.e. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.opengis.filter.FilterFactory2
org.locationtech.jts.geom.GeometryFactory
org.geotools.data.simple.SimpleFeatureSource
getType()
openFileAndCreate
(String filename, ShpFile.GeoFileType type) Open and initialize a shape filevoid
setFilename
(String filename) void
setFilter
(org.opengis.filter.FilterFactory2 filter) void
setGeometry
(org.locationtech.jts.geom.GeometryFactory geometry) void
setSource
(org.geotools.data.simple.SimpleFeatureSource source) void
setType
(ShpFile.GeoFileType type)
-
Konstruktordetails
-
ShpFile
public ShpFile()
-
-
Methodendetails
-
getFilename
- Gibt zurück:
- the filename
-
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
- Parameter:
filename
- the filename to set
-
setType
- 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
public ShpFile openFileAndCreate(String filename, ShpFile.GeoFileType type) throws UnsupportedOperationException, IllegalArgumentException, IOException Open and initialize a shape file- Parameter:
filename
- The file nametype
- 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 givenIllegalArgumentException
- if an invalid file type was givenIOException
- if the shape file could not be opened created successfully
-