Data for a place
Data for a place is the path from a place name to the streets, the terrain and the other data of a run. Every dataset for a place belongs to an account or to a deployment. It is fetched or supplied on request and stored with its source and a digest of its bytes.
Inputs
- A place name. A geocoding service has a short list of candidates as its answer, each with a label, coordinates and a type, and a status: resolved, ambiguous or in need of refinement. For an ambiguous name, the choice is yours.
- A place name with a bounding box, for streets. The boundary is the result of a search in OpenStreetMap, and the streets are the result of one Overpass query inside the box.
- An OpenStreetMap extract in PBF form, as a file of your account.
- An area, for terrain. The elevation sources of a deployment are declared in its configuration, each with its coverage, resolution, horizontal and vertical datum, license and terms.
- An entry of the catalog. Whathappensify has a catalog of about 22,300 open data sources for 34 cities and 2 other places, plus 26 sources that cover anywhere. An entry has a name, a publisher, a page address, download addresses with their formats, topics, a license and access terms.
Outputs
- Streets as a graph. Each link has its coordinates in WGS 84, its road class, its lanes, the permission for each mode of travel and the original tags. The graph has a capture record: the exact bytes of the answer, their SHA-256 digest, the addresses of both services, the times of retrieval, the query, the timestamp of the OpenStreetMap data and the attribution.
- Terrain as GeoTIFF tiles of one degree with a manifest. The manifest has the source, the publisher, the resolution, both datums, the license, the terms, and the SHA-256 digest of each tile.
- Buildings as footprints with heights, in files prepared from OpenStreetMap for a deployment. The height of a building is its height tag or, without one, a fixed height for each of its levels.
- From a catalog entry, a request for an import. After your approval in the browser, the file at the entry's own address is fetched and stored as a version of a dataset of your account.
Guarantees and their checks
| Guarantee | Mechanism | Check |
|---|---|---|
| Terrain data are from a declared source. | For an area, the source is the declared source with the finest resolution over the whole area. For an area outside every source, the answer is the refusal "not covered". The flood model has the same refusal for bounds outside its tiles. | In tests, an area outside every source is refused, and a request to the flood model's terrain registry for uncovered bounds is an error. |
| A terrain tile is on the declared datum. | The coordinate codes and the extent of each tile are compared with the declaration of the source. | In a test, a request with a tile on another datum has the state "failed" as a whole. |
| A file is fetched after your approval. | Such a request is in the state "pending" until your decision in the browser. | In a test, the object store is empty before the approval. |
| A fetched file is the stated file. | The address is HTTPS, outside private networks, and checked again at each redirect. A stated digest or size is compared with the arrived bytes, and the digest of the arrived bytes is part of the stored version. | In tests, a request for a file with a different digest has the state "failed" and an empty store, and a request for an address outside the policy has the state "failed" too. |
| A license is the publisher's own statement. | For an import, the terms are the license of the catalog entry. For an entry without one, the terms are a sentence with that fact and the address of the publisher's page. | In a test, an entry without a license has that sentence as its terms. |
| The data of a run are on its record. | The provenance of a run has a list of data sources, each with an identifier, a version and a digest. | In tests, a world from an account's street network has the dataset's identifier, version and digest, and a world from a place capture has the capture's identifier among its sources. |
Place in the path of a question
The data of a place are ready before the scenario. Your AI assistant resolves the place name, asks for streets and terrain, and proposes imports from the catalog for your approval. In the scenario, each dataset is then named by its version and digest. In the engine, the bytes are compared with the digest before use, and the record of the run has the list of sources. Files of your own are in Your own data.