Skip to content

Instantly share code, notes, and snippets.

@Robinlovelace
Last active September 6, 2016 11:19
Show Gist options
  • Select an option

  • Save Robinlovelace/6a6dd9fa57cbb7864aa46c38438a6267 to your computer and use it in GitHub Desktop.

Select an option

Save Robinlovelace/6a6dd9fa57cbb7864aa46c38438a6267 to your computer and use it in GitHub Desktop.
download.file("https://www.geofabrik.de/data/shapefiles_toulouse.zip", "shapefiles_toulouse.zip")
unzip("shapefiles_toulouse.zip")
system.time({
shp = rgdal::readOGR(dsn = ".", layer = "gis.osm_buildings_v06")
})
f = list.files(pattern = "gis.osm")
file.remove(f)
file.remove("shapefiles_toulouse.zip")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment