Package org.openstreetmap.josm.io
Class GeoJSONServerReader
- java.lang.Object
-
- org.openstreetmap.josm.io.OsmConnection
-
- org.openstreetmap.josm.io.OsmServerReader
-
- org.openstreetmap.josm.io.OsmServerLocationReader
-
- org.openstreetmap.josm.io.GeoJSONServerReader
-
public class GeoJSONServerReader extends OsmServerLocationReader
GeoJson server reader.- Since:
- 15424
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
GeoJSONServerReader.GeoJsonParser
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.io.OsmServerLocationReader
OsmServerLocationReader.GpxParser, OsmServerLocationReader.NoteParser, OsmServerLocationReader.OsmChangeParser, OsmServerLocationReader.OsmParser, OsmServerLocationReader.Parser<T>
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.io.OsmServerReader
OsmServerReader.DomParser<R>
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.io.OsmConnection
OsmConnection.OAuthAccessTokenFetcher
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.io.OsmServerLocationReader
url
-
Fields inherited from class org.openstreetmap.josm.io.OsmServerReader
contentType, gpxParsedProperly
-
Fields inherited from class org.openstreetmap.josm.io.OsmConnection
activeConnection, cancel, fetcher, oAuth20Parameters
-
-
Constructor Summary
Constructors Constructor Description GeoJSONServerReader(java.lang.String url)
Constructs a newGeoJSONServerReader
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSet
parseOsm(ProgressMonitor progressMonitor)
Download OSM files from somewhereDataSet
parseOsm(ProgressMonitor progressMonitor, Compression compression)
Download compressed OSM files from somewhere-
Methods inherited from class org.openstreetmap.josm.io.OsmServerLocationReader
doParse, getUrl, parseOsmChange, parseOsmChange, parseRawGps, parseRawGps, parseRawNotes, parseRawNotes
-
Methods inherited from class org.openstreetmap.josm.io.OsmServerReader
adaptRequest, fetchData, getAttribute, getBaseUrl, getInputStream, getInputStream, getInputStreamRaw, getInputStreamRaw, getInputStreamRaw, getInputStreamRaw, isDoAuthenticate, isGpxParsedProperly, parseNotes, setDoAuthenticate
-
Methods inherited from class org.openstreetmap.josm.io.OsmConnection
addAuth, addBasicAuthorizationHeader, addOAuth20AuthorizationHeader, cancel, isCanceled, retrieveBasicAuthorizationLogin, setOAuthAccessTokenFetcher
-
-
-
-
Constructor Detail
-
GeoJSONServerReader
public GeoJSONServerReader(java.lang.String url)
Constructs a newGeoJSONServerReader
.- Parameters:
url
- geojson URL
-
-
Method Detail
-
parseOsm
public DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException
Description copied from class:OsmServerReader
Download OSM files from somewhere- Overrides:
parseOsm
in classOsmServerLocationReader
- Parameters:
progressMonitor
- The progress monitor- Returns:
- The corresponding dataset
- Throws:
OsmTransferException
- if any error occurs
-
parseOsm
public DataSet parseOsm(ProgressMonitor progressMonitor, Compression compression) throws OsmTransferException
Description copied from class:OsmServerReader
Download compressed OSM files from somewhere- Overrides:
parseOsm
in classOsmServerLocationReader
- Parameters:
progressMonitor
- The progress monitorcompression
- compression to use- Returns:
- The corresponding dataset
- Throws:
OsmTransferException
- if any error occurs
-
-