Class GeoJSONExporter
- java.lang.Object
-
- org.openstreetmap.josm.gui.io.importexport.FileExporter
-
- org.openstreetmap.josm.gui.io.importexport.GeoJSONExporter
-
- All Implemented Interfaces:
MainLayerManager.ActiveLayerChangeListener
public class GeoJSONExporter extends FileExporter
Exporter to write map data to a GeoJSON file.- Since:
- 4886
-
-
Field Summary
Fields Modifier and Type Field Description static ExtensionFileFilterFILE_FILTERFile extension filter for .geojson files-
Fields inherited from class org.openstreetmap.josm.gui.io.importexport.FileExporter
filter
-
-
Constructor Summary
Constructors Constructor Description GeoJSONExporter()Constructs a newGeoJSONExporterwith WGS84 projection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexportData(java.io.File file, Layer layer)Execute the data export.-
Methods inherited from class org.openstreetmap.josm.gui.io.importexport.FileExporter
acceptFile, activeOrEditLayerChanged, exportDataQuiet, isCanceled, isEnabled, setCanceled, setEnabled
-
-
-
-
Field Detail
-
FILE_FILTER
public static final ExtensionFileFilter FILE_FILTER
File extension filter for .geojson files
-
-
Constructor Detail
-
GeoJSONExporter
public GeoJSONExporter()
Constructs a newGeoJSONExporterwith WGS84 projection.
-
-
Method Detail
-
exportData
public void exportData(java.io.File file, Layer layer) throws java.io.IOException
Description copied from class:FileExporterExecute the data export. (To be overridden by subclasses.)- Overrides:
exportDatain classFileExporter- Parameters:
file- target filelayer- the layer to export- Throws:
java.io.IOException- in case of an IO error
-
-