Tag Info

Hot answers tagged

3

QGIS and the server behind Overpass API are not able to handle large area requests. If you need that amount of data, think about downloading pbf extracts from Geofabrik filter the data for the items you really want with direct Overpass API calls set up a local postgis database for your area of interest with a suitable Geofabrik extract


2

I suggest first to open a command window, then execute osmconvert. Here are some hints on opening command windows: http://stackoverflow.com/questions/378319/windows-explorer-command-prompt-here Another choice is to create a batch file with the command, and add a pause command as last line: osmconvert.exe D:\Karten\osm\Geofabrik\germany.osm.pbf ...


2

Overpass API allows you to download only selected objects. For country borders, admin_level=2 should return the information you want: <osm-script> <query type="relation"> <has-kv k="admin_level" v="2"/> </query> <print mode="meta"/> </osm-script> This returns 302 border relations without all coordinates. ...


2

--write-pgsql wants to talk to a Postgis database. You have not specified any database connection for that task, e.g.: osmosis --read-pbf file=switzerland.pbf --tf accept-nodes shop=supermarket --write-pgsql host=128.178.12.34 database=myDatabase user=myUsername password=myPassword Furthermore, keep in mind that restaurants can also be modelled as closed ...


2

The best way is to use the planet.osm.pbf dump, which is a binary format and substantially faster than bzipped XML. You should also use Osmconvert instead of osmosis for a task like this. A suitable command would be osmconvert planet-latest.osm.pbf -b=10.5,49,11.5,50 -o=nuernberg.osm.pbf This will create a PBF file, which is quicker to process than ...


1

I think that ST_intersection is one of the possible answers, and here you can find a good point to start if you have the NYC boundaries.


1

Frederik Ramm answered on help.openstreetmap.org (edited by SomeoneElse): --merge can only merge two pipes, not more; you must use two instances of --merge to merge three pipes. Try this: osmosis \ --read-pbf switzerland.osm.pbf --tf accept-nodes sport=* --tf accept-ways sport=* --tf reject-relations \ --read-pbf file=switzerland.osm.pbf --tf ...


1

The bbox for osmosis should have the order left - right - top - bottom. Note that West of Greenwich has to be negative. Alternatively, you can write something like --bb left=30. right=34. bottom=53. top=57. to avoid any misunderstanding. See http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.44#--bounding-box_.28--bb.29 EDIT The Map-Writer ...


1

Actually you can use two tools, both are easy to install on your own server. OSRM writen in C++ and Lua GraphHopper if you prefer Java


1

Try this post: How to manage the osmosis command line? Pay attention to comments where I solved some troubles. Here I have some tricks too: How to extract primary and secondary roads from OSM data?


1

Converting OSM to PBF is probably not necessary, most tools that can read PBFs can also read OSM XML. If you do need to read the file with osmosis, the issue here is that ogr2osm by default generates files that can be loaded in JOSM and merged with existing OSM data. These files have no timestamp or version attributes as well as having negative IDs, while ...


1

If I understand correctly what you are looking for is something a bit like what is possible using Google Maps with its user added markers and lines. The reason that Google can do this is that they offer a service costing lots of money - but paid for by advertisers. OSM is different. There are disadvantages - and advantages. The fact that it's a lot harder ...


1

For a simple way to add markers on top of an OSM based map: uMap This lets you add markers, or draw lines or areas on the map. You can import data from a GPX, KML, or GeoJSON file etc. It has a number of different tile layers to choose for the background map. You can share a link to the map if you want, or embed it another webpage. By default, any maps ...


1

That depends on what you want to achieve. How to render your own tiles is described on switch2osm. This step is only necessary if you want to change the style of the tiles. TileMill is another approach for rendering your own tiles, among many many others. If you are instead just interested in adding a custom overlay, then go for Leaflet or OpenLayers. ...


1

osm2pgsql is a good option for working with OpenStreetMap data like this, particularly if you have enough data you need a database to store it. You would find building information in planet_osm_polygon. You could get it using a query like SELECT * FROM planet_osm_polygon WHERE building IS NOT NULL and building != 'no'. For addresses you may find that ...


1

ST_Length, when called on a geometry, reports in units of the spatial reference system. For EPSG:900913/EPSG:3857, the units are in Mercator meters, not in meters. At all points on the globe, a Mercator meter is at most 1 real meter. To do this there are two possible fixes Transform to an appropriate projection for your area. UTM, state plane and albers ...


1

With version 10.2 for ArcGIS on windows 8.1, I was not able to add the toolbox. This is because the installer did not copy the 'data' folder. To get the data folder, I had to download the source code from github, and place it into the directory C:\Program Files (x86)\ESRI\OSMEditor



Only top voted, non community-wiki answers of a minimum length are eligible