Class DwgReader
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.DwgReader
-
public class DwgReader extends Object
Feature reader for DWG files.We are going to implement the required methods, based on the DWG classes available from jdwglibs
- Since:
- 1.0.0
- Author:
- Andrea Antonello - www.hydrologis.com
-
-
Constructor Summary
Constructors Constructor Description DwgReader(DwgFile pFile, GeometryTranslator gTranslator)A basic reader based on a DwgFile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.geotools.data.simple.SimpleFeatureCollectiongetAttributesFeatures()org.geotools.data.simple.SimpleFeatureCollectiongetContourFeatures()Map<String,org.geotools.data.simple.SimpleFeatureCollection>getFeatureCollectionsMap()org.geotools.data.simple.SimpleFeatureCollectiongetMultiLineFeatures()org.geotools.data.simple.SimpleFeatureCollectiongetMultiPointFeatures()org.geotools.data.simple.SimpleFeatureCollectiongetMultiPolygonFeatures()org.geotools.data.simple.SimpleFeatureCollectiongetTextFeatures()
-
-
-
Constructor Detail
-
DwgReader
public DwgReader(DwgFile pFile, GeometryTranslator gTranslator) throws org.geotools.feature.SchemaException
A basic reader based on a DwgFile.- Parameters:
layerName- Should match a layerName in the Dwg fileoutFile-firstRound-- Throws:
org.geotools.feature.SchemaException
-
-
Method Detail
-
getFeatureCollectionsMap
public Map<String,org.geotools.data.simple.SimpleFeatureCollection> getFeatureCollectionsMap() throws IOException
- Throws:
IOException
-
getTextFeatures
public org.geotools.data.simple.SimpleFeatureCollection getTextFeatures()
-
getAttributesFeatures
public org.geotools.data.simple.SimpleFeatureCollection getAttributesFeatures()
-
getMultiLineFeatures
public org.geotools.data.simple.SimpleFeatureCollection getMultiLineFeatures()
-
getContourFeatures
public org.geotools.data.simple.SimpleFeatureCollection getContourFeatures()
-
getMultiPointFeatures
public org.geotools.data.simple.SimpleFeatureCollection getMultiPointFeatures()
-
getMultiPolygonFeatures
public org.geotools.data.simple.SimpleFeatureCollection getMultiPolygonFeatures()
-
close
public void close() throws IOException- Throws:
IOException
-
-