Tag Info

Hot answers tagged

3

This can be easily fixed by storing the area in a named inputset (I use .a below) and refer to this inputset for both node statements: [out:json]; area[name = "New York"]->.a; ( node(area.a)[amenity=bar]; node(area.a)[amenity=restaurant]; ); out; Link to overpass turbo: http://overpass-turbo.eu/s/a2v Some background infos: In your example, ...


3

You can track all your edits using this url: http://www.openstreetmap.org/user/YourOSMUserNameGoesHere/history To uniquely identify your osm objects simply select one of the change-sets listed and you'll be provided with a link to every single osm feature.


3

If you enable the data layer on high zoom, you can click at the OSM elements and see their internal ID https://wiki.openstreetmap.org/wiki/Elements#Common_attributes Keep in mind that these IDs aren't absolut stable (splitting ways, ...) and can be altered by users (remove and reupload the data). So you might consider other ways to refer OSM objects as ...


3

So, you're looking for ways to style landuse at low/medium zoom levels, yeah? Looks like MapQuest is currently working on a new open CartoCSS-based map style (here). It's pretty bare bones still for stuff like landuse. Also checkout OSM's Carto styles, in particular landcover.mss. Also, MapBox has some good, open Carto styles. Their MapBox Outdoors is a ...


3

The "Topology" chapter of the workshop is there to explain the basics about the routing network. The first paragraph should actually explain that. If it's not so clear, then I will change this with the next version of the workshop. But if you import OSM data you just use an import tool named "osm2pgrouting", which is explained in detail a few chapters ...


2

I believe there is a bug affecting the display of labels when data is reprojected. I bumped into it a couple of days ago also. See: https://hub.qgis.org/issues/12025 Note: it looks like may have been fixed yesterday... impressive!


2

I'd suggest an alternative approach: Download raw OSM data and use OGR to prepare your data in such a way that the relevant tags are not mashed together in the "other_tags" column. This can be achieved by customizing OGR's osmconf.ini file as documented in http://www.gdal.org/drv_osm.html. Look for the lines # keys to report as OGR fields ...


2

When there is a boundary relation for that city area (like political boundaries) you can use its name for a query via overpass-api or overpass-turbo. So first find out about any good boundary relation within the OSM data: go to http://nominatim.openstreetmap.org and try to find a boundary relation for your city ... for example type "Buxtehude" in its search ...


2

I was really wondering how to do this, so I asked the question at help.openstreetmap.org as @scai suggested, and Roland Olbricht (developer of Overpass API) was kind enough to supply the query pasted below. Read the full answer for an explanation. [out:json][timeout:90]; rel["route"="bicycle"]({{bbox}}); way(r); way._["surface"="paved"]; out geom;


2

Try this: [out:json][timeout:100]; //find ways which are members of relation or have highway=cycleway //and write them as a ( relation[route=bicycle]({{bbox}}); way(r); way[highway=cycleway]({{bbox}}); )->.a; ( //take ways from a and filter them by surface=paved way.a[surface=paved]; //union with ways from a with surface=asphalt ...


2

The extent (and the data volume) is definitely too big. Alternatively, use QuickOSM to filter the items you want, or Geofabrik daily extracts.


2

The slow part of your query is probably the ST_Contains(ST_Transform(way,4326),..), postgres is having to transform every way in the table to run this query. There are two options to fix this: If the main purpose of your database is this type of query it might be more efficient to reimport and store the geometries as EPSG:4326 instead of the ESPG:900913 ...


2

You can: Create your own solution with Leaflet http://leafletjs.com/ and one of the plugins from a list below http://leafletjs.com/plugins.html#overlay-data Use http://umap.openstreetmap.fr/ with external data overlay. Check layers. It's not as easy as paste a link into google map search, but much more power-full. Yuo could upload your data or use a link ...


1

I think you're trying to create is working with Geocoding in ArcGIS. Here is a video tha you can follow the instructions to do the geocoding in ArcGIS. But before that you need to parse your XML data to get just the address. You can do it using a simple code using Python (it's installed by default when you install ArcGIS). Is that make sense for you?


1

Pelias gets boundaries from external source (or form OSM but loaded via separate query) and join points with boundaries within ElasticSearch. Try this https://github.com/kiselev-dv/gazetteer/tree/develop/Gazetteer It uses pretty similar scheme (with some additions) as Pelias. Run gazetteer.jar from releases with: bzcat CH.osm.bz | java -jar gazetteer.jar ...


1

You have two issues mixed. First: pgRoute, uses precreated topology based on LineString geometry. Such geometry doesn't have direct links on osm Nodes. You could get geospatial points for built route, not osm Nodes. To get Nodes, you could build an index among osm Nodes geometries and perform distance lookup. In other words, select all nodes which are not ...


1

Transform your center point, use the internal and external Projection as cgarillo mentioned and then also define the Projection of your vectorLayer and your map: var center_coord = new OpenLayers.LonLat(lon, lat).transform("EPSG:4326", "EPSG:3857"); map.setCenter(center_coord, zoom); ... var geojsonLayer = new OpenLayers.Layer.Vector("GeoJSON", { ...


1

I think the comments on this question are worth placing into an answer which I'll make Community Wiki: Try applying the spatial reference to the shape -- poly = arcpy.Polygon(ar,wgs) – Vince Jun 25 at 12:08 Yes, I would do as Vince says and add a spatial reference, otherwise the polygon has no idea where it is supposed to be. Also, you can ...


1

I haven't used that particular tool but the results look fairly typical of unsupervised snapping when the line vertex order doesn't respect the street topology and the geometric accuracy is poor. Not sure if by merge you simply mean create a topologically connected set of roads or merging parallel dual carriageway. But one option is to buffer with merge ...


1

If you want to extract the few addr:* tags attached to streets, the current version might help. But you'll need Java to overwrite some standard behavior. Implement your own WayTagResolver or extend the Default one. There is a "meta"-attibute which can be populated withr custom data. Nevertheless, GeoCoding is one of the next steps I'm going to implement. One ...


1

as you can see in your relation_members table, the member_role belonging to your id ( 57582 ) is 'R' <<-- Relation. So your id (108786) contains another relation. Check: select * from relation_members where id = 57582; to see if there is another relation nested within this one. Your can select the id from the nodes or way table if the corresponding ...


1

Did you try to check if this id (57582) is present in your table 'relations' ? I'm not really used to the pgnapshot schema but i guess it should be referenced itself as a relationship in your database ? Hope you will find (or already have) a solution to your answer!


1

I can't find any category in the response, did you mean class instead? class and type seem to be equivalent to key and value of a tag. So I guess the list you are searching for is located under settings/partitionedtags.def.


1

I would use the Quick OSM plug-in to download the data you need. It's very simple to use. Set the screen to show the extents of your project, set the project CRS and enable on-the-fly reprojection. Then start the plug-in (Web -> Quick OSM) select the required key ('power' in your case) and press 'Run query'. See the image below.


1

I would recommend to extract all relevant ways from Overpass API using regular expressions. Here's an example which returns only ways with a permissive value in any key in the current bbox. [bbox:{{bbox}}]; way[~"."~"^permissive$"]; (._;>;); out meta; Overpass Turbo Link: http://overpass-turbo.eu/s/9ML (Hit "Run" to test) You can use pretty much the ...


1

It probably depend on what you want to do with these informations and on the number of points on which you want apply this. 1) If you have not many points you can maybe try to do this with the overpass API. Trying to get the closest road around your pair of coordinates. It might look like this : [out:json]; ...


1

In order to add real time data to CartoDB you have two options: Using our SQL API in order to make inserts/updates whenever you detect some changes. This requires that you manage the datasource on your end and that you send to CartoDB what you want to edit in your table. Using the Sync tables feature: this allows you to use a public resource available ...


1

OK, here comes the correct answer: Make sure that rgdal (version >= 1.0.4) is installed install.packages('rgdal') packageVersion('rgdal') [1] ‘1.0.4’ Make sure that gdal (version >= 1.11.0) is installed library(rgdal) getGDALVersionInfo() [1] "GDAL 1.11.2, released 2015/02/10" Make sure that gdal is compiled with Expat/OSM and SQLite support: ...


1

Another way to make custom maps with OSM data is with the Mapsense.js library and the Mapsense Earth vector tiles. There's a UI for picking colors at http://styler.mapsense.co/ and demos showing the css and javascript at developer.mapsense.co/examples/ One benefit of an API like this is that you can add anything else you want with javascript/d3 (satellite ...



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