Skip to content

mariajmellado/geo

This branch is up to date with jlhonora/geo:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
jlhonora
Jan 30, 2015
461431d · Jan 30, 2015

History

34 Commits
Aug 9, 2014
Jul 9, 2014
Jul 9, 2014
Jul 9, 2014
Jul 9, 2014
Jul 9, 2014
Jul 9, 2014
Jul 9, 2014
Jul 9, 2014
Jul 9, 2014
Jul 9, 2014
Aug 9, 2014
Jul 9, 2014
Jul 9, 2014
Jul 9, 2014
Jul 9, 2014
Jul 9, 2014
Jan 30, 2015
Aug 7, 2014
Aug 7, 2014
Aug 8, 2014
Jul 9, 2014

Repository files navigation

Chile in GeoJSON format

Taken from http://siit2.bcn.cl/mapas_vectoriales/index_html/

To convert from a shapefile object to GeoJSON use

ogr2ogr -f GeoJSON -t_srs crs:84 [output].geojson [input].shp

You can also simplify the input:

ogr2ogr -f "GeoJSON" -t_srs crs:84 -overwrite -progress -simplify 2000

and crop the precision of the waypoints:

sed -E -i 's/([0-9]{2}\.[0-9]{1,4})[0-9]*/\1/g'

4 decimals will give you ~11 meters of precision.

To pretty-print a Json file:

cat [input].geojson | python -mjson.tool

To pack a pretty printed file I'm using Underscore:

underscore print --in [input].geojson --out [output].json --outfmt dense

About

GeoJSON data for Chile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%