osm_cartography.xml_map¶
Generate geographic information maps based on Open Street Map XML data.
-
osm_cartography.xml_map.
get_osm
(url, bounds)[source]¶ Get geographic_msgs/GeographicMap from Open Street Map XML data.
The latitude and longitude of the bounding box returned may differ from the requested bounds.
Parameters: - url – Uniform Resource Locator for map.
- bounds – Desired geographic_msgs/BoundingBox for map (presently ignored).
Returns: geographic_msgs/GeographicMap message (header not filled in).
-
osm_cartography.xml_map.
get_required_attribute
(el, key)[source]¶ Get attribute key of element el.
Raises: ValueError
if key not found
-
osm_cartography.xml_map.
get_tag
(el)[source]¶ Returns: geographic_msgs/KeyValue message for <tag> el if any, None otherwise.
-
osm_cartography.xml_map.
makeOsmUniqueID
(namespace, el_id)[source]¶ Make UniqueID message for el_id number in OSM sub-namespace namespace.
Parameters: - namespace (string) – OSM sub-namespace
- el_id (int or string containing an integer) – OSM identifier within that namespace
Returns: corresponding geographic_msgs/UniqueID message.
Raises: