public class OsmServerChangesetReader extends OsmServerReader
OsmPrimitive
from the OSM API server.gpxParsedProperly
activeConnection, cancel, oauthParameters
Constructor and Description |
---|
OsmServerChangesetReader()
constructor
|
Modifier and Type | Method and Description |
---|---|
ChangesetDataSet |
downloadChangeset(int id,
ProgressMonitor monitor)
Downloads the content of a changeset
|
DataSet |
parseOsm(ProgressMonitor progressMonitor)
don't use - not implemented!
|
java.util.List<Changeset> |
queryChangesets(ChangesetQuery query,
ProgressMonitor monitor)
Queries a list
|
Changeset |
readChangeset(long id,
ProgressMonitor monitor)
Reads the changeset with id
id from the server |
java.util.List<Changeset> |
readChangesets(java.util.Collection<java.lang.Integer> ids,
ProgressMonitor monitor)
Reads the changeset with id
id from the server |
getBaseUrl, getInputStream, getInputStream, getInputStreamRaw, getInputStreamRaw, getInputStreamRaw, isDoAuthenticate, isGpxParsedProperly, parseOsmBzip2, parseOsmChange, parseOsmChangeBzip2, parseOsmChangeGzip, parseOsmGzip, parseOsmZip, parseRawGps, parseRawGpsBzip2, setDoAuthenticate
addAuth, addBasicAuthorizationHeader, addOAuthAuthorizationHeader, cancel, isCanceled
public OsmServerChangesetReader()
public DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException
parseOsm
in class OsmServerReader
progressMonitor
- The progress monitorOsmTransferException
- if any error occurspublic java.util.List<Changeset> queryChangesets(ChangesetQuery query, ProgressMonitor monitor) throws OsmTransferException
query
- the query specification. Must not be null.monitor
- a progress monitor. Set to NullProgressMonitor.INSTANCE
if nulljava.lang.IllegalArgumentException
- thrown if query is nullOsmTransferException
- thrown if something goes wrong wpublic Changeset readChangeset(long id, ProgressMonitor monitor) throws OsmTransferException
id
from the serverid
- the changeset id. id > 0 required.monitor
- the progress monitor. Set to NullProgressMonitor.INSTANCE
if nullOsmTransferException
- thrown if something goes wrongjava.lang.IllegalArgumentException
- if id <= 0public java.util.List<Changeset> readChangesets(java.util.Collection<java.lang.Integer> ids, ProgressMonitor monitor) throws OsmTransferException
id
from the serverids
- the list of ids. Ignored if null. Only load changesets for ids > 0.monitor
- the progress monitor. Set to NullProgressMonitor.INSTANCE
if nullOsmTransferException
- thrown if something goes wrongjava.lang.IllegalArgumentException
- if id <= 0public ChangesetDataSet downloadChangeset(int id, ProgressMonitor monitor) throws java.lang.IllegalArgumentException, OsmTransferException
id
- the changeset id. > 0 required.monitor
- the progress monitor. NullProgressMonitor.INSTANCE
assumed if null.java.lang.IllegalArgumentException
- thrown if id <= 0OsmTransferException
- thrown if something went wrong