-
Notifications
You must be signed in to change notification settings - Fork 0
/
osm.h
38 lines (32 loc) · 893 Bytes
/
osm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*osm.h*/
//
// Functions for working with an Open Street Map file.
//
// Mark Fortes
// Northwestern University
// CS 211: Winter 2023
//
// References:
//
// TinyXML:
// files: https://github.com/leethomason/tinyxml2
// docs: http://leethomason.github.io/tinyxml2/
//
// OpenStreetMap: https://www.openstreetmap.org
// OpenStreetMap docs:
// https://wiki.openstreetmap.org/wiki/Main_Page
// https://wiki.openstreetmap.org/wiki/Map_Features
// https://wiki.openstreetmap.org/wiki/Node
// https://wiki.openstreetmap.org/wiki/Way
// https://wiki.openstreetmap.org/wiki/Relation
//
#pragma once
#include "tinyxml2.h"
using namespace std;
using namespace tinyxml2;
//
// Helper functions:
//
bool osmLoadMapFile(string filename, XMLDocument& xmldoc);
bool osmContainsKeyValue(XMLElement* e, string key, string value);
string osmGetKeyValue(XMLElement* e, string key);