public class OsmServerChangesetReader extends OsmServerReader
OsmPrimitive from the OSM API server.OsmServerReader.CompressiongpxParsedProperlyactiveConnection, 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!
|
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 |
List<Changeset> |
readChangesets(Collection<Integer> ids,
ProgressMonitor monitor)
Reads the changeset with id
id from the server |
getBaseUrl, getInputStream, getInputStreamRaw, isDoAuthenticate, isGpxParsedProperly, parseOsmBzip2, parseOsmChange, parseOsmChangeBzip2, parseOsmChangeGzip, parseOsmGzip, parseRawGps, parseRawGpsBzip2, setDoAuthenticateaddAuth, addBasicAuthorizationHeader, addOAuthAuthorizationHeader, cancel, isCanceledpublic OsmServerChangesetReader()
public DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException
parseOsm in class OsmServerReaderprogressMonitor - The progress monitorOsmTransferException - if any error occurspublic 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 nullIllegalArgumentException - 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 wrongIllegalArgumentException - if id <= 0public List<Changeset> readChangesets(Collection<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 wrongIllegalArgumentException - if id <= 0public ChangesetDataSet downloadChangeset(int id, ProgressMonitor monitor) throws IllegalArgumentException, OsmTransferException
id - the changeset id. >0 required.monitor - the progress monitor. NullProgressMonitor.INSTANCE assumed if null.IllegalArgumentException - thrown if id <= 0OsmTransferException - thrown if something went wrong