![]() ![]() OVERPASS_DIFF_URL - url to a diff directory for updating the instance (e.g.OVERPASS_CLONE_SOURCE - ( clone mode only) the url to clone a copy of Overpass from.OVERPASS_PLANET_URL - ( init mode only) url to a "planet" file (e.g.OVERPASS_META - ( init mode only) yes, no or attic - passed to Overpass as -meta or -keep-attic.OVERPASS_MODE - takes the value of either init or clone. ![]() If, for whatever reason, the data must come from OSM, then I would suggest getting familiar with GDAL and/or Osmosis.By default, this image will clone an existing Overpass server for the whole planet, and make it available at The following enviroment variables can be used to customize the setup: You can always just go to an alternate source like Natural Earth, which provides global coverage of boundaries as shapefiles, among many other things. And that's not to mention that it would eat up a lot of storage space unnecessarily. This is ill-advised, as the extracts will contain everything, and will require some work to filter out the boundaries and bring them all together from disparate layers. In that case, you have a couple options.ĭownload regions and countries individually from Geofabrik, which come as shapefiles. ![]() ![]() The added benefit of GDAL is that you can also use it in conjunction with ogr2ogr to export directly to shapefile.įinally, perhaps you're really just looking for shapefiles of those boundaries, and don't want to fiddle around with these commands. I don't personally have experience working with OSM data directly with GDAL, but it does have the capability of reading and filtering OSM files, which you can read about here. In Osmosis, you'd need to use the -tag-filter command, among other things. If, however, you want to just extract those borders for the whole planet, you'll need to download a local copy of the OSM database from, then use a tool like Osmosis to extract the particular objects you're looking for. You'll want to consult the Tag:boundary=administrative wiki page to make sure that you're using the right admin level for the country you're looking at. If it's for specific cities and regions, you can use Overpass Turbo to create queries like admin_level=6 to find border ways. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |