public class ShapefileDirectoryReader extends RecordDirectoryReader
The ShapefileDirectoryReader is a that can read .shp data files contained in a single directory. The reader will iterate through the .shp files in alpabetical order returning all features.
See the AbstractDirectoryReader class for examples on how to use
dataset readers.
AbstractDirectoryReader| Constructor and Description |
|---|
ShapefileDirectoryReader() |
ShapefileDirectoryReader(File directory)
Construct a new ShapefileDirectoryReader.
|
| Modifier and Type | Method and Description |
|---|---|
protected Reader<Record> |
createReader(org.springframework.core.io.Resource resource)
Create a new
Reader to read the file. |
Map<String,String> |
getFileNameTypeMap() |
Map<String,RecordDefinition> |
getTypeNameRecordDefinitionMap() |
void |
setFileNameTypeMap(Map<String,String> fileNameTypeMap) |
void |
setTypeNameRecordDefinitionMap(Map<String,RecordDefinition> typeNameRecordDefinitionMap) |
addRecordDefinition, getRecordDefinition, getStatistics, next, setStatisticsclose, getBaseFileNames, getDirectory, getFileNameFilter, getFiles, hasNext, iterator, open, remove, setBaseFileNames, setDirectory, setFileExtensions, setFileExtensions, setFileNameFilterread, visitclearProperties, getProperties, getProperty, getProperty, removeProperty, setProperties, setProperty, setPropertySoft, setPropertyWeakclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearProperties, getProperties, getProperty, getProperty, removeProperty, setProperties, setProperty, setPropertySoft, setPropertyWeakpublic ShapefileDirectoryReader()
public ShapefileDirectoryReader(File directory)
directory - The containing the .shp files.protected Reader<Record> createReader(org.springframework.core.io.Resource resource)
AbstractDirectoryReaderReader to read the file.createReader in class RecordDirectoryReaderresource - The file to read.public Map<String,RecordDefinition> getTypeNameRecordDefinitionMap()
public void setTypeNameRecordDefinitionMap(Map<String,RecordDefinition> typeNameRecordDefinitionMap)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.