Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GeoJson World Database [closed]

Tags:

svg

d3.js

geojson

I am working on a project where it is necessary to display maps of countries and cities using d3.js.

Actually, D3 supports GeoJson format. Usually, I guess, GeoJson format is converted from some other format.

I found some places with this GeoJson data:

http://mbostock.github.com/protovis/ex/countries.js

But, this is only a list of countries, I am looking for some service or program that gives me the ability to set an ID, get this format, and convert it to GeoJson, or get it in GeoJson better.

Thanks!!

like image 868
todotresde Avatar asked Mar 03 '12 02:03

todotresde


People also ask

How do I view GeoJSON data?

You can open GeoJSON files from your computer, Google Drive. GeoJSON Map Viewer is a tool that views the GeoJSON file in your browser. This app allows you to validate your GeoJSON and display it on a Google map.

How do I open a GeoJSON account online?

upload the GeoJSON file to the folder with a simple drag&drop. click on the pc screen icon, in correspondence of the file just uploaded. choose the “Open” option.

Where can I buy GeoJSON?

Most readily available geoJSON data is for US states and country level boundaries, not regions within the country. This geoJSON will be used to create a geographic visualization using D3. js. www.boundaries-io.com for GeoJson boundaries.


1 Answers

Does this need to be a service? Here's how I've approached this in the past, using free/Open Source tools:

  • Download public-domain shape files from Natural Earth Data

  • Use Quantum GIS to convert .shp to .geojson (one step, under "Layer > Save As...")

Now you have hi-res GeoJSON data. Here, have some countries.

This is a really big file, though, so you'll want to split it up. But you don't need a service for this, just static files for each country, named by ID. This would be easy enough to produce with a script in your utility of choice (Python, Ruby, node.js).

like image 181
nrabinowitz Avatar answered Nov 13 '22 13:11

nrabinowitz