public class GeoJSONImporter extends FileImporter
Modifier and Type | Field and Description |
---|---|
private static ExtensionFileFilter |
FILE_FILTER |
filter
Constructor and Description |
---|
GeoJSONImporter()
Constructs a new GeoJSON File importer with an extension filter for .json and .geojson
|
Modifier and Type | Method and Description |
---|---|
void |
importData(java.io.File file,
ProgressMonitor progressMonitor)
Needs to be implemented if isBatchImporter() returns false.
|
DataSet |
parseDataSet(java.lang.String source)
Parse GeoJSON dataset.
|
acceptFile, compareTo, getPriority, importData, importDataHandleExceptions, importDataHandleExceptions, isBatchImporter, isEnabled, setEnabled
private static final ExtensionFileFilter FILE_FILTER
public GeoJSONImporter()
public void importData(java.io.File file, ProgressMonitor progressMonitor)
FileImporter
importData
in class FileImporter
file
- file to importprogressMonitor
- progress monitorpublic DataSet parseDataSet(java.lang.String source) throws java.io.IOException, IllegalDataException
source
- geojson filejava.io.IOException
- in case of I/O errorIllegalDataException
- if an error was found while parsing the data from the source