Skip to content

OpenDataDE/de-geojson-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

de-geojson-data

A collection of GeoJSON files for Delaware!

GeoJSON is great for open source mapping libraries like Leaflet, but sometimes you can only get a KML or Shapefile. Open Data Delaware to the rescue! We've converted these formats for you. And here's Leaflet example showing state Representative districts. (Click the id 45533.... to view it on Github's Gists site).

Everything in the "firstmap" directory was converted from opendata.firstmap.delaware.gov

The nine datasets in the "firstmap/boundaries" were converted on Oct. 19, 2016. Here's an example of what we did to convert the KML file of state representative districts:

A KML file of the representative districts was downloaded from opendata.firstmap.delaware.gov

And then converted to GeoJSON with the node project toGeoJSON.

togeojson Districts_Representative.kml  > de_districts_representative.json

Then minified with the node project json-minify.

json-minify de_districts_representative.json > de_districts_representative.min.json

Then the file 'de_districts_representative.min.json' was added to the project.

Data in the "census" directory came from the US Census. Currently just a zip code boundaries file. Thanks to Github user jgoodall for his us-maps example! Below is an edited version of his national example showing how to generate the file for Delaware.

Zip codes

Then unzip the files, and run ogr2ogr!

ogr2ogr -f "GeoJSON" de_zipcode_boundaries.json tl_2010_10_zcta510.shp

The file was minified like above, then the file 'de_zipcode_boundaries.min.json' was added to the project.

About

A collection of GeoJSON files for Delaware!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors