Skip to content

MichaelGordon/OS_OpenData_GeoJSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OS OpenData GeoJSON

Intro

Repo for Ordnance Survey data in GeoJSON format. Currently testing ways to minimise file size so that it can be displayed in Github over Leaflet. Using ogr2ogr to convert

ogr2ogr -f "GeoJSON" -simplify 0.1 -t_srs crs:84 -Skipfailures SP_AdministrativeBoundary.geojson SP_AdministrativeBoundary.shp

Then Notepad++ to remove spaces, properties, null features (ogr2ogr currently having various issues with some geometries I suspect because of topological errors in VectorMap District) - using remove space then, remove "properties":{[a-z":,0-9 ]+}, , then remove \.[0-9]+ for pushing the coords to 1m precision (could do in ogr2ogr in future), then remove {"type":"Feature","geometry":null} then finally remove line breaks \n ,`

  • Changed CRS to WGS84
  • Added Railway track as a smaller test dataset to try and visualise it

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published