New answers tagged

0

Within a layer, you can use the z-order values to determine the QGIS feature rendering order: Open the respective layer's style panel. Either in the layer properties or in the layer styling dock (both should work) Near the bottom of the layer style panel, check the Control feature rendering order checkbox. (The "Define order" window opens, probably ...


1

You should have plenty options to achieve what you describe. It mainly depends on your skills, which software you are comfortable with, etc. I am sure you will find lot of resources here on GIS SE. Look for ggmap, etc. But for sure Leaflet is not a good option for this use case. See https://stackoverflow.com/questions/38353361/get-the-resulting-url-from-a-...


1

From your question I think that you've almost certainly misunderstood the fundamentals of how Openstreetmap works. I can't imagine it being possible to make the judgement that your data should be uploaded to OSM without already knowing the 'OSM norms' like the back of your hand. This isn't the place to explain - there are good resources out there already, ...


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

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


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


2

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


3

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.


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

to find your mapnik plugins dir type the command mapnik-config --input-plugins Then copy the result (plugin path) and paste in renderd.conf file


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


0

Nantucket is tagged as place=town so it should be contained in your database. I couldn't find a place node for Westport, Massachusetts in OSM, this could be an error (however the relation for Westport exists). But there is for example Westport factory. How did you create your extract? Maybe the extract has been created the wrong way or something went wrong ...


0

Generally, the Openlayers plugin receives tiles in EPSG:3857. It works best if you leave the basemap layer and project CRS in that too. As an alternative, you can use the QuickMapServices plugin. It allows for different project CRS as well. But the basemap layer must stay in EPSG:3857.


0

You could try DogSheep Customizable Maps app. It lets you download maps by cutting it with a bounding box. The app uses MapsForge, so you could grab the map.map file from the download/dog_sheep/map_name directory, where map_name is the name you gave to the map when you downloaded it.


0

I figured it out! OP here. First, I will clarify that this is the solution to my setup from the edit I made, after my initial post. The setup was a from the installation by package using apt-get from switch2osm.org and an Ubuntu 14.04 server installation. I am not sure if this solution will work for someone who has a manually configured server. Even if ...


1

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


0

Use restrict extent as below example, so User will not go beyond the defined extent. Reference: http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html#OpenLayers.Map.restrictedExtent Example: http://dev.openlayers.org/examples/restricted-extent.html


0

The addresses styles are all defined in addressing.mss. Those particular ones are housenumbers and the style is #housenumbers { [zoom >= 17] { text-name: "[addr:housenumber]"; text-placement: interior; text-min-distance: 1; text-wrap-width: 0; text-face-name: @book-fonts; text-fill: #666; text-size: 9; } } From this ...


0

You can check this application, it might be useful too: osm2po. It can create a routable network on OSM.


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


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


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


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


0

suppose that in your edge_table you have a column state_id SELECT * from pgr_dijkstra(' SELECT id, source, target, cost, reverse_cost from edge_table WHERE state_id = 16' <rest of you parameters>);


0

I think that's what you are looking for: http://openlayers.org/


0

Part of the question mentions not knowing how to create a schema. You can create a schema with pgAdmin (GUI) or with this SQL statement: CREATE SCHEMA tiger_data; I recommend you install the PostGIS TIGER Geocoder. This extention creates scripts (windows and linux) to download and import US Census shapefiles. You can learn a lot from the process that ...


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


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


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


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.


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.


0

You can have a look at the OSM wiki about Shapefiles and Converting_map_data_between_formats to get all known tools for converting shapefiles into raw OSM XML format or compressed binary PBF files.


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


0

Have you tried using gdal_rasterize (http://www.gdal.org/gdal_rasterize.html) ?


0

If you just want the roads (and perhaps a little more information), there is a website called https://overpass-turbo.eu/ which helps build queries for extracting information from OSM. To download only the street, click wizard and type highway=road. Run then export query as geoJSON and save as whatever file type you need in QGIS.


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


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


0

def meta_to_xyz(pattern_meta_with_zoom='6/0/0/0/50/136'): """ Convert meta tiles to z x y scheme for mod_tile Author: Thomas Gratier based on Frederik Ramm C code from meta2tile.c from mod_tile License: GPL """ x, y = 0, 0 path_elements = [int(i) for i in pattern_meta_with_zoom.split('/')] z = path_elements.pop(0) for i in ...


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


0

At least GraphHopper, OSRM and brouter should update their data fairly often. I don't know the exact update intervals but your changes should be visible within a few days or maybe a week.


0

From Mapbox (google search term = 'mapbox update frquency') Data updates The current supported version of the Mapbox Streets vector tiles receives regular data updates as new information becomes available and existing information is improved. Layer (Source) Update frequency most layers (OpenStreetMap replication feed) ...


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


0

This may be irrelevant, but have you tried imposm 3 or osmosis? They may provide different results.


0

You can use OSM's regular API for fetching the OSM way via its ID. Example: https://www.openstreetmap.org/api/0.6/way/136322077/full The /full is important for fetching all of its nodes, too. The nodes define the geometry of the way. The order of the nodes is defined by the <nd ref> elements of the way. See OSM XML for more information. Also read ...


0

According to http://wiki.openstreetmap.org/wiki/Nominatim try this: http://nominatim.openstreetmap.org/lookup?osm_ids=R146656,W104393803,N240109189 You must try to do a GET in your Javascript using JQuery.



Top 50 recent answers are included