Class OmsShapefileFeatureReader
- java.lang.Object
-
- org.hortonmachine.gears.libs.modules.HMModel
-
- org.hortonmachine.gears.io.shapefile.OmsShapefileFeatureReader
-
public class OmsShapefileFeatureReader extends HMModel
-
-
Constructor Summary
Constructors Constructor Description OmsShapefileFeatureReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadFeatureCollection()static org.geotools.data.simple.SimpleFeatureCollectionreadShapefile(String path)Fast read access mode.-
Methods inherited from class org.hortonmachine.gears.libs.modules.HMModel
checkCancel, checkFileExists, checkNull, checkWorkingFolderInPath, concatOr, dumpRaster, dumpVector, getDefaultThreadsNum, getRaster, getVector, help, isCanceled, template
-
-
-
-
Field Detail
-
file
public String file
-
geodata
public org.geotools.data.simple.SimpleFeatureCollection geodata
-
-
Method Detail
-
readFeatureCollection
public void readFeatureCollection() throws IOException- Throws:
IOException
-
readShapefile
public static org.geotools.data.simple.SimpleFeatureCollection readShapefile(String path) throws IOException
Fast read access mode.- Parameters:
path- the shapefile path.- Returns:
- the read
FeatureCollection. - Throws:
IOException
-
-