xyzspaces.datasets package¶
This package provides access to some public datasets used.
- xyzspaces.datasets.get_countries_data()[source]¶
Pull countries example GeoJSON from the net or a locally cached file.
If this is not locally cached, yet, it will be after the first call, unless the file cannot be saved, in which case it will be re-downloaded again with every call.
Source (under http://unlicense.org): https://raw.githubusercontent.com/johan/world.geo.json/master/countries.geo.json
The data contains 180 countries, and does not cover all existing countries, ca. 200. For example the Vatican is missing.
- Returns
A JSON object.
- xyzspaces.datasets.get_chicago_parks_data()[source]¶
Create GeoJSON from file
chicago_parks.geo.json
stored locally.
- xyzspaces.datasets.get_microsoft_buildings_space()[source]¶
Create a space object for the MS “US Buildings Footprints” dataset.
The original source for this dataset can be found on https://github.com/Microsoft/USBuildingFootprints.
- Returns
A space object.