| java.lang.Object org.geotools.data.ogr.FeatureMapper
FeatureMapper | class FeatureMapper (Code) | | Maps OGR features into Geotools ones, and vice versa. Chances are that if you
need to update a decode method a simmetric modification will be needed in the
encode method. This class is not thread safe, so each thread should create
its own instance.
author: aaime |
Constructor Summary | |
public | FeatureMapper(GeometryFactory geomFactory) |
USE_WKB | final static boolean USE_WKB(Code) | | Enables usage of WKB encoding for OGR/Java Geometry conversion. At the
time of writing, it cannot be used because it'll bring the virtual
machine down (yes, a real crash...)
|
WKB_XDR | final static int WKB_XDR(Code) | | From ogr_core.h, the byte order constants
|
dateTimeFormat | DateFormat dateTimeFormat(Code) | | The date time format used by OGR when getting/setting times using strings
|
geomFactory | GeometryFactory geomFactory(Code) | | |
wkbReader | WKBReader wkbReader(Code) | | |
wkbWriter | WKBWriter wkbWriter(Code) | | |
wktReader | WKTReader wktReader(Code) | | |
wktWriter | WKTWriter wktWriter(Code) | | |
FeatureMapper | public FeatureMapper(GeometryFactory geomFactory)(Code) | | |
convertGTFID | int convertGTFID(Feature feature)(Code) | | Decodes a GT2 feature id into an OGR one
Parameters: feature - |
convertOGRFID | String convertOGRFID(FeatureType schema, org.gdal.ogr.Feature ogrFeature)(Code) | | Generates a GT2 feature id given its feature type and an OGR feature
Parameters: schema - Parameters: ogrFeature - |
fixGeometryType | Geometry fixGeometryType(Geometry ogrGeometry, AttributeType at)(Code) | | Turns line and polygon into multiline and multipolygon. This is a
stop-gap measure to make things works against shapefiles, I've asked the
GDAL mailing list on how to properly handle this in the meantime
Parameters: ogrGeometry - Parameters: at - |
getOgrField | Object getOgrField(AttributeType at, org.gdal.ogr.Feature ogrFeature) throws IOException(Code) | | Reads the current feature's specified field using the most appropriate
OGR field extraction method
Parameters: at - |
parseOgrGeometry | Geometry parseOgrGeometry(org.gdal.ogr.Geometry geom) throws IOException(Code) | | Reads the current feature's geometry using wkb encoding. A wkbReader
should be provided since it's not thread safe by design.
throws: IOException - |
|
|