Hot answers tagged

5

You are ahead of yourself, review the Guidelines and make sure you succeeded in all of the steps. Before you have gotten discussion on the imports mailing list there should be no thoughts wasted on data wrangling. The data structure of OSM itself is explained in http://wiki.openstreetmap.org/wiki/Map_Features You will need to invest considerable amounts of ...


5

In overpass turbo, click on "Wizard", enter tourism=* in the search field and then click on "build and run query" to execute your query. You may of course navigate to your area of interest and hit the "Run" button to re-run the query. For the second part of your question, simply enter the following in the wizard popup: tourism=apartment or tourism=...


4

The Openstreetmap background looks best if you hit exactly the scales in which the tiles are rendered. You might look into the TileMapScaleLevels plugin to get those scales by default.


3

If you display only OSM tiles, remember that these are only images, so you will not be able to match node id's nor to change how they are rendered (you cannot "highlight" them). You would need to retrieve the vectorial data of these ways / roads and display them as paths (e.g. L.polyline), with which you can associate metadata like the node id, and change ...


2

I couldn't get your overpass query to work so I tried building it using the wizard. I confess I tend to use the QuickOSM plugin as I find the overpass query language a bit tricky :) This is the query I went with:- /* This has been generated by the overpass-turbo wizard. The original search was: “natural=water or water=lake or waterway=*” */ [out:json][...


2

You may find the following code from tilemaker relevant: https://github.com/systemed/tilemaker/blob/master/src/coordinates.cpp I don't have any experience with osm2vectortiles because I find Docker and npm about as appealing as sandpapering my eyeballs, but I presume it uses the same tile layout.


2

Some things just don't have a name. For example some minor parks, many forests, parking areas, fountains, post boxes, elevators, waste baskets and so on. Do you want to search for all these things? Then the only option for you is to look at all the corresponding tags. See Map Features for the most important ones. The keys operator and brand are also very ...


2

Your problem is that you referenced {s} in your code but you dont have subdomains installed. The official OSM has 3 different subdomains for that: http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png where {s} = a,b and c. So you should create at least one subdomain (set a DNS server and configure apache2 properly). But you can use it without subdomains. They ...


2

The height of a building is difficult to obtain except when having official data. But the number of building levels is easy to obtain by just looking at the building. Maybe building:levels is sufficient for your use-case? Also see simple 3D buildings for various other interesting information regarding 3D tagging.


2

Osmosis takes all nodes to the output file, unless you add the --used-node options. --tf reject-nodes discards all nodes, including those of your ways. If the way leaves your bounding box or polygon, completeWays=yes might be useful too. As an example: osmosis.bat --read-pbf germany-latest.osm.pbf --tf accept-ways man_made=pipeline --tf reject-relations --...


2

Over at geofabrik you can download up-to-date shapefiles with selected osm attributes. They have even have categorized per country. Once downloaded and sorted the data that you need; you can upload your data to your postgis using a variety of tools depending on your project: Qgis, gdal, shp2pgsql and others. Also take heed, the data are in WSG84 (4326) so ...


1

See the Overpass API Language Guide. Basically you seem to want all data in a bounding box. Depending on your use-case you might want to download nodes, ways and relations. overpass turbo already has a preset for this. Just go to Load and select Map Call. The resulting query is: [out:xml]; ( node({{bbox}}); <; ); out meta; Change xml to json to ...


1

The function used in UpdateGeometrySRID is st_setsrid instead of st_transform. st_setsrid just sets the srid value without changing the coordinates. Since there is no function for looping tables to transform projection in PostGIS according to updateGeometrySRID function. I suggest you to write a script in python to execute it: Firstly execute to get the ...


1

You don't mention which version of QGIS you're using. I'm using 2.16.0 and this dialog has a 'select all' option:- Not used this function for a while now so I'm not sure when this was implemented, although I'm guessing it's probably in QGIS 2.x. but it seems to have been in 2.10 according to this commit I changed to using QuickOSM plugin (for small areas)...


1

This should be possible with the Overpass API: area[admin_level=2]["name"="Eesti"]->.boundaryarea; rel(area.boundaryarea)["admin_level"]; out;


1

I received an answer on OSM forum the order of ways on releation members doesn't matter. More info is here...


1

The .osm file is the raw data that you can download from the OSM server. It contains nodes with coordinates and attributes ("tags"), lines with the nodes they are built from, and relations containing nodes, lines or othe relations. You will need a software that transforms that file to something that can be displayed. One choice is the Mapnik or tilemill ...


1

According to Shapefiles#Create_your_own_shapefiles there is at least one of the various osm2shp softwares written in C#, the osm2shp hosted at google code.


1

There are various alternatives: The tiles page in the OSM wiki has a list of tile servers. Before choosing one make sure to read their tile usage policy / terms of use first. The tile usage policy for the official OSM tile server also lists some alternatives (currently Stamen, MapBox and CartoDB). There is also a list of commercial OSM software and ...


1

It's a complex answer as everything depends on your data source. Is it already linked to OSM, a set of speed vector, zones...? You can have a look at the OpenTraffic projects (architecture and to see an example on how a GPS point source can be mapped to OSM IDs. Another issue to keep in mind is that OSM data evolves in time (ways and nodes gets created, ...


1

I haven't done this yet but I have read about it and plan to implement something in the future. Looks like you just need to edit "replication/minute" in configuration.txt. Although it sounds like you should probably do a daily rather than a monthly because it would generate a larger change file to process. Choose replication file interval By ...


1

Using OSMConvert, the wiki shows how you can extract/display the timestamp from the file header: osmconvert yourfile.pbf --out-timestamp This could be included in your update process and piped into the database for your GUI to read later. you can download it here Using OSM2PGL, the wiki describes how the timestamp is retrieved with each object by ...


1

First of all I would find a definition of what is a valid address from OSM data for your purposes. IMHO an OSM object needs at least the two keys addr:street=xxx and addr:housenumber=yyy. See the OSM wiki about Addresses to find out more details For example in OSM data for Germany we have complete boundary relations for places down to admin_level=8 and ...


1

This is not a NULL tag, but simply an empty field, and the way QGIS displays it. Negative osm_id have all polygons that are build from multipolygon relations, while polygons build from simple closed ways have their positive way osm_id. See http://www.openstreetmap.org/relation/6188599 for the island you took as example. It has no building tag, neither have ...


1

The planet_osm_* tables are not normalized. You must create a table (or view) to store the data wich makes sense to your application. Example: DROP TABLE IF EXISTS "building"; CREATE TABLE "building" AS ( SELECT way,building,aeroway FROM planet_osm_polygon WHERE ("building" IS NOT NULL AND "building" != 'no') OR "aeroway" IN ('terminal') ORDER ...


1

According to http://taginfo.openstreetmap.org/keys/building#values, the building tag is not limited to yes, but several others. Try to use like default.style : node,way building text polygon I don't know why you're using nocolumn. The administrative boundaries came from ( http://taginfo.openstreetmap.org/keys/admin_level ) node,way ...


1

See the Readme about GeoJSON properties. The correct property name is height, not building:levels. building:levels is the corresponding tag in the OSM database but it is converted to a height property for the resulting GeoJSON data.



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