public abstract class AbstractReader extends Object
Modifier and Type | Field and Description |
---|---|
protected DataSet |
ds
The dataset to add parsed objects to.
|
protected Map<PrimitiveId,OsmPrimitive> |
externalIdMap
the map from external ids to read OsmPrimitives.
|
protected Map<Long,Collection<RelationMemberData>> |
relations
Data structure for relation objects
|
protected Changeset |
uploadChangeset |
protected Map<Long,Collection<Long>> |
ways
Data structure for the remaining way objects
|
Constructor and Description |
---|
AbstractReader() |
Modifier and Type | Method and Description |
---|---|
DataSet |
getDataSet()
Replies the parsed data set
|
protected void |
prepareDataSet() |
protected void |
processChangesetAfterParsing() |
protected void |
processNodesAfterParsing()
Processes the parsed nodes after parsing.
|
protected void |
processRelationsAfterParsing()
Completes the parsed relations with its members.
|
protected void |
processWaysAfterParsing()
Processes the ways after parsing.
|
protected Changeset uploadChangeset
protected final Map<PrimitiveId,OsmPrimitive> externalIdMap
protected final Map<Long,Collection<Long>> ways
protected final Map<Long,Collection<RelationMemberData>> relations
public AbstractReader()
public DataSet getDataSet()
protected void processNodesAfterParsing()
protected void processWaysAfterParsing() throws IllegalDataException
IllegalDataException
- thrown if a data integrity problem is detectedprotected void processRelationsAfterParsing() throws IllegalDataException
IllegalDataException
- thrown if a data integrity problem is detected, i.e. if a
relation member refers to a local primitive which wasn't available in the dataprotected void processChangesetAfterParsing()
protected final void prepareDataSet() throws IllegalDataException
IllegalDataException