- All Implemented Interfaces:
- org.geotools.data.DataAccess<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>, org.geotools.data.DataStore, org.geotools.data.FileDataStore
public class SDLDataStore
extends org.geotools.data.AbstractFileDataStore
DataStore for reading a SDL file produced by Autodesk SDF Loader which
supports the legacy SDF format (which FDO/MapGuide Open Source can't read).
The SDF component toolkit can read those but COM objects are perhaps a
lesser evil than Runtime.exec()'ing the SDF Loader.
Note that a single SDL file can contain point, line and polygon SimpleFeatures.
Although many files will only contain a single type, the parser can only
determine this by looking through the entire file - which is not advisable in
a streaming API. The same is true for a file containing only polygons or also
multipolygons etc.
Therefore always the same SimpleFeature schema is used:
the_geom_point: Point (SDL does not contains MultiPoints)
the_geom_line: MultiLineString (getNumGeometries() can be 1)
the_geom_polygon: MultiPolygons (getNumGeometries() can be 1, can contain holes)
Where only one of three is not null. The attributes are always the same:
key: String
name: String
urlLink: String
entryLineNumber: Integer
parseError: Boolean
error: String
Note that especially polygons can contain parse errors due to randomly
duplicated coordinates. Not much that can be done about that, because sometimes
it is not possible to determine if the coordinate is duplicated or a closing
coordinate of a subgeometry.
See the SDF Loader Help for the description of the SDL file format.
- Author:
- Matthijs Laan, B3Partners