city

command
v0.0.0-...-8b66c38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 6 Imported by: 0

README

city

What it does:

  • loads all buildings in a city from file
  • normalizes their coordinates
  • triangulates them
  • calculates errors
  • saves triangles data to assets/json_tmp
  • finds out correctness %

Running

NOTE: get data from Overpass-turbo using the instructions below

go run city.go

Fetching data

Data comes from OpenStreetMap. You can use the Overpass-turbo query listed below, for fetching all buildings in Cracow:

[out:json];
(
    way[building](50.0,19.85,50.105,20.13);
    relation[building](50.0,19.85,50.105,20.13);
);
out body;
>;
out skel qt;

(shortened)

[out:json];(way[building](50.0,19.85,50.105,20.13);relation[building](50.0,19.85,50.105,20.13););out body;>;out skel qt;

Then look for an option to export data in *.geojson format and save it in assets/cracow_tmp.

TODO: Include data fetching in the program (requires OSM to GeoJSON conversion).

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL