Tag Info

New answers tagged

0

Names and labeling rules are in default style. They are follows http://www.mapcss.org/ specification with some extras. Open DefaultStyle.bundle/Style.mapcss most of the names marked as { ... text:eval(locTag('name')); ... } You could use text:eval(any(tag('name:en'), tag('name'))); In that case, name:en will be used for names first, and ...


0

You want to make use of (your own) Nominatim geocoder. Or you use an data extract and filter it for objects with addr:* tags.


0

I recommend the following steps: Do you already know the tagging of OSM elements that represents bike lanes? Some documentation is in the OSM wiki about cycleway Do some queries via overpass-turbo just to see for a special area how much tagging of bike lanes is inside the raw OSM database at all. Via overpass-turbo you can also export the resulting data in ...


0

reading the mapsforge-dev mailinglist for a long time now, I never came accross such a conversion feature. I assume that OSM data -> mapsforge mapfiles is a oneway processing. But you can try to ask on your own there, see https://groups.google.com/forum/#!forum/mapsforge-dev (I only found one similar question there from 2013, but no answer.)


0

You may try to get parts you need from OSMAnd (it's opensource) https://github.com/osmandapp/Osmand You may use https://getyourmap.com/ (there are free usage plan)


0

When instantiating the OpenLayers Navigation bar, you can define the mouse wheel options [1]. The mouse wheel options are defined at the MouseWheel handler [2]. Here I leave an example: var ctrlNav = new OpenLayers.Control.Navigation({ mouseWheelOptions : { interval: 10, //{Integer} In order to increase server performance, an interval (in ...


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 ...


0

http://layers.openstreetmap.fr/ is what you're looking for. Has colored layers for each admin level's coverage over the whole OSM database.


2

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

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 ...


0

Options in [] are optional. You can specify them but you don't have to. If you decide to use them then always strip the [].


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 ...


0

Remove the [] around --osm2pgsql-cache 18000 Drop the "| tee setup.log" part. (It just pipes the output to a file. And check your permissions) Like this: sudo ./utils/setup.php --osm-file isle-of-man-latest.osm.pbf --all --osm2pgsql-cache 18000 Always a good idea to test with a small file like this one: ...


0

Try this: Sas Planet You can define your own TMS and XYZ layers to be scrapped


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

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", { ...


0

See the Quick Start Guide. There you will create a L.tileLayer object where you can just add the URL to your very own tileserver, probably starting with http:/localhost/ or the address of your webserver. That's all.


0

It wouldn't probably really respond to your answer but (and if your source file already contains your modifications, as suggested by a previous answer), i guess that ogr2ogr can sometimes have mixed results when dealing with polygons or relations if the OSM data don't strictly respect the schema required by ogr2ogr. You probably already have a look on this ...


0

I found some hints via https://help.osm.org map-not-displayed-in-the-browser-and-mod_tile-folder-is-empty how-to-serve-tiles-from-my-own-server setting-up-my-own-tile-server offline-open-street-map ... maybe the magic word is "localhost"? Give us more details where you get stuck.


2

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


0

Are you sure the new data is already in your source files? Maybe you could download with overpass api, which is always current. Existing lines will not get any boundary tags from the relation they are member of, but the whole relation is created as a separate polygon with a negative relation ID.


0

In pgrouting, pgr_trsp - Turn Restriction Shortest Path (TRSP) does exactly what you are looking for. Instead of specifying source and target nodes, you can specify source and target edges, and the fraction along the edge where your origin and destination are located. (You can use ST_Line_Locate_Point to get that fraction from your point geometry, assuming ...


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 ...


0

According to osmconvert in the OSM wiki it supports only change files (.osc or .o5c) but can't merge regular .osm files. osmosis instead supports merging. Example: osmosis --rx 1.osm --rx 2.osm --rx 3.osm --merge --merge --wx merged.osm Note that for n files you will need n-1 merge commands. However you should keep in mind that merging files from ...


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

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!


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 ...


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 ...


1

I feel that you have two questions: a) How to extract end points b) How to save data for showing it in Leaflet. For a) there is no native OpenJUMP tool but you can use the Sextante toolbox in OpenJUMP Plus. The tool is Sextante - Toolbox - Topology - Extract endpoints of lines. Tool extracts also start points but you can sort them out by having a look ...


0

The flat nodes file is used directly by osm2pgsql, not by PostgreSQL. To change the location, you just have to stop automatic updates, move the flat nodes file, and change the osm2pgsql command line being called to use the new location. If you are not updating your database, you do not need the flat nodes file at all, as it is only used by osm2pgsql.


0

Another related bug ticket is https://hub.qgis.org/issues/12727 (not dealing with lines crossing the bounding box). My workaround is to load the OSM data from the first import step with Add vector layer.


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, ...


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 ...


0

Not sure about the exact problem, but the basic syntax is right. For example via overpass turbo: [out:json][timeout:25]; ( node["amenity"="restaurant"]({{bbox}}); node["amenity"="toilets"]({{bbox}}); ); out body; >; out skel qt; Please be aware that Overpass is for training only. If you want to create an production workflow with global coverage, ...


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 ...


0

This is a known issue: OSM plugin fails to download all data within given extent I've provided a different working solution at the related question How do I load OSM vector data in QGIS 2.x?


0

Your syntax looks odd, please try the original code snippets and alter them step by step till you get the desired results: https://wiki.openstreetmap.org/wiki/Osmosis#Example_usage It's also wise to start with an pretty small area, so your processing is fast and doesn't prevent you from testing :)


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;


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]; ...


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

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 ...


-1

You need to use boundbox (example Central London) /* This shows the cycleway and cycleroute network. */ [out:json]; > ( // get cycle route relatoins > relation[route=bicycle]({{bbox}})->.cr; // get cycleways > way[highway=cycleway]({{bbox}}); > way[highway=path][bicycle=designated]({{bbox}}); ); > > out body; > >; ...


0

Yes, there is. Either by using Overpass API (see an example for Berlin with the overpass turbo frontend) or by downloading a raw dataset and doing the filtering yourself using osmfilter or osmosis. I suggesst to read about OSM's basic elements and tags first. Also make sure to understand which power tags are in use.


0

You can also use the QuickOSM plugin in QGIS. You can open a local OSM file and get all keys as a column. QuickOSM will split the "other_tags" column as you want.


0

Firstly I would convert OSM to a shapefile, it makes it easier to use and protects against 'black spots'. Here's a bit of code to get you started: // GDALAllRegister(); // More recent versions don't separate OGR from GDAL // READ http://www.gdal.org/ogr_apitut.html FOR MORE INFO char* BasePath = ""; // FILL IN FULL PATH TO SHAPE FILE OGRRegisterAll(); ...


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

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 ...



Top 50 recent answers are included