Lets draw borders of England using D3, and outline NY meanwhile....
A lot of articles starts from these words. And next always follows
The first task for any map is finding geometry.
And most of normal people could not accomplish this quest. So, then..
OSME-GEOMETRY
The source for shapes for all the countries and states.
Import
First step is to get data from osme-geometry
UMD
You can use unpkg to get access to the datafile.
normal quality datahighter quality datalow quality data data without maritime borders (ie with coastline) data will be stored inwindow.osmeGeometry['AU']
NodeJS
;// for nodejs you can also specify language ;;
Convert
Data is stored in OSME format, similar, but incompatible to TopoJson. To use data, you first need to convert it into GeoJSON
osme;
You can found different way to display a data in osme repository.
It is also possible to use osme
without osme-geometry
, in that case data will be fetched from backend provided by esosedi(http), or geolocated(https)
osme;
Example
http://data.esosedi.org/ - project home page.
Origin of a data
- The data included in this document is from www.openstreetmap.org.
- The data included in this document is from wikipedia.org.
- The data included in this document is from geonames.org.
- The data included in this document is from esosedi.org.
- The data is made available under ODbL and CC-BY-SA
Licence
MIT