GeoJson World Database

99封情书 提交于 2019-12-02 13:51:57

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

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).

mjhoy

Note that, via the GDAL library, you may also use the command-line ogr2ogr to convert shapefiles. For example:

$ ogr2ogr -f geojson source_file.shp dst_file.json

will convert source_file.shp into the GeoJSON-formatted dst_file.json.

Read more here:

Convert a shapefile (.shp) to xml/json

ambientlight

Take a look at https://github.com/mledoze/countries

It has geoJSONs for each country. (med resolution I would say)

countries.json contain each country description including localized country names, coordinate (at which you can display the label), and capitals names.

Well, times are changing and some good folks made the shapefile to geojson formatter an online service.

Check the following link: http://ogre.adc4gis.com/

They even open-sourced it: http://github.com/wavded/ogre

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!