|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openstreetmap.josm.io.FileImporter
org.openstreetmap.josm.io.GpxImporter
public class GpxImporter
File importer allowing to import GPX files (*.gpx/gpx.gz files).
| Nested Class Summary | |
|---|---|
static class |
GpxImporter.GpxImporterData
Utility class containing imported GPX and marker layers, and a task to run after they are added to MapView. |
| Field Summary | |
|---|---|
static ExtensionFileFilter |
FILE_FILTER
The GPX file filter (*.gpx and *.gpx.gz files). |
| Fields inherited from class org.openstreetmap.josm.io.FileImporter |
|---|
filter |
| Constructor Summary | |
|---|---|
GpxImporter()
Constructs a new GpxImporter. |
|
| Method Summary | |
|---|---|
static void |
addLayers(GpxImporter.GpxImporterData data)
Adds the specified GPX and marker layers to Map.main |
void |
importData(java.io.File file,
ProgressMonitor progressMonitor)
Needs to be implemented if isBatchImporter() returns false. |
static GpxImporter.GpxImporterData |
loadLayers(GpxData data,
boolean parsedProperly,
java.lang.String gpxLayerName,
java.lang.String markerLayerName)
Replies the new GPX and marker layers corresponding to the specified GPX data. |
static GpxImporter.GpxImporterData |
loadLayers(java.io.InputStream is,
java.io.File associatedFile,
java.lang.String gpxLayerName,
java.lang.String markerLayerName,
ProgressMonitor progressMonitor)
|
| Methods inherited from class org.openstreetmap.josm.io.FileImporter |
|---|
acceptFile, activeLayerChange, compareTo, getBZip2InputStream, getGZipInputStream, getPriority, importData, importDataHandleExceptions, importDataHandleExceptions, isBatchImporter, isEnabled, layerAdded, layerRemoved, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ExtensionFileFilter FILE_FILTER
| Constructor Detail |
|---|
public GpxImporter()
GpxImporter.
| Method Detail |
|---|
public void importData(java.io.File file,
ProgressMonitor progressMonitor)
throws java.io.IOException
FileImporter
importData in class FileImporterjava.io.IOExceptionpublic static void addLayers(GpxImporter.GpxImporterData data)
data - The layers to addloadLayers(org.openstreetmap.josm.data.gpx.GpxData, boolean, java.lang.String, java.lang.String)
public static GpxImporter.GpxImporterData loadLayers(GpxData data,
boolean parsedProperly,
java.lang.String gpxLayerName,
java.lang.String markerLayerName)
data - The GPX dataparsedProperly - True if GPX data has been properly parsed by GpxReader.parse(boolean)gpxLayerName - The GPX layer namemarkerLayerName - The marker layer name
addLayers(org.openstreetmap.josm.io.GpxImporter.GpxImporterData)addLayers(org.openstreetmap.josm.io.GpxImporter.GpxImporterData)
public static GpxImporter.GpxImporterData loadLayers(java.io.InputStream is,
java.io.File associatedFile,
java.lang.String gpxLayerName,
java.lang.String markerLayerName,
ProgressMonitor progressMonitor)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||