API for processing and serving map elements stored in GeoPackage (*.gpkg) format.
This repository can be installed as a pip package. Navigate to the root of the repository (the location of the pyproject.toml file) and enter the following command:
$ pip install .If the source code of this project will be edited frequently, it may convenient to install the package in development mode instead:
$ pip install -e .This will save you from having to reinstall the package after every change in the source code. Do note the limitations of development before using.
Be aware that installing pip packages with environment managers like conda may cause dependency conflicts or unexpected behaviour.
This repository includes annotation data for the locations that were recorded in the View-of-Delft dataset. The data can be found in the data directory. 'Raw' annotations are in the data/annotations/ directory, with processed data in the data/processed directory.
Raw annotations - if formatted as detailed in the following section - can be processed to the format expected by the functions and classes in this package using the process.py script. The syntax is:
$ python process.py -i path/to/raw/annotations -o path/to/processed/annotationsE.g. for the structure of the data directory of this repository:
$ python process.py -i data/annotations -o data/processedNote: the process.py script currently does not work.
TODO: explainer on the format of the annotations i.e. what fields are expected for each map element.
The API consists of a number of classes and functions that make working with common map elements more convenient.
TODO: write documentation.