|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.mkgmap.reader.osm.OsmReadingHooksAdaptor
uk.me.parabola.mkgmap.reader.osm.HighwayHooks
public class HighwayHooks
Operations mostly on highways that have to be performed during reading the OSM input file. Some of this would be much better done in a style file or by extending the style system.
Constructor Summary | |
---|---|
HighwayHooks()
|
Method Summary | |
---|---|
void |
end()
Called after the file has been read. |
boolean |
init(ElementSaver saver,
EnhancedProperties props)
Passes in the element saver and the command line options. |
void |
onAddNode(Node node)
Called on adding a node to the saver and just before it is added. |
void |
onAddWay(Way way)
Add the given way. |
void |
onCoordAddedToWay(Way way,
long id,
Coord co)
This is called whenever a node is added to a way. |
Methods inherited from class uk.me.parabola.mkgmap.reader.osm.OsmReadingHooksAdaptor |
---|
getUsedTags |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HighwayHooks()
Method Detail |
---|
public boolean init(ElementSaver saver, EnhancedProperties props)
OsmReadingHooks
init
in interface OsmReadingHooks
init
in class OsmReadingHooksAdaptor
saver
- This is where all the elements are being collected. You can access previously added
elements from here by their id. You can also add generated elements. You must not add the
element that is being passed in as it will be added automatically.props
- The command line options.
public void onAddNode(Node node)
OsmReadingHooks
onAddNode
in interface OsmReadingHooks
onAddNode
in class OsmReadingHooksAdaptor
node
- The node to be added.public void onCoordAddedToWay(Way way, long id, Coord co)
OsmReadingHooks
onCoordAddedToWay
in interface OsmReadingHooks
onCoordAddedToWay
in class OsmReadingHooksAdaptor
way
- The incomplete way.id
- The coordinate id of the node that is being added.co
- The coordinate.public void onAddWay(Way way)
OsmReadingHooks
onAddWay
in interface OsmReadingHooks
onAddWay
in class OsmReadingHooksAdaptor
way
- The osm way.public void end()
OsmReadingHooks
end
in interface OsmReadingHooks
end
in class OsmReadingHooksAdaptor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |