New answers tagged

4

You're asking two questions here: administrative borders related to territorial disputes, and map label localization. Since you mention OpenStreetMap, I feel obliged to answer: The OpenStreetMap Foundation changed the policy regarding territorial disputes in 2013. You can find the full document here, but let me quote the relevant paragraph: Borders and ...


0

Use tileserver-GL to serve the mbtiles and you can get raster tile endpoint otherwise use tilehosting.com which is openmaptiles open street map it has raster endpoint URL too. Other options are using tilestrata with plugins but it requires mapnik


-5

Thats because there is no Country Palestine. Israel is the Country name. Check out vector tile basemap and change style sheet and point to language and tweak labels


2

Your query is for the wrong key. According to Key:parking:lane you need to query for keys parking:lane:both, parking:lane:left and parking:lane:right. You only need to look for ways and can skip nodes and relations. This is the resulting Overpass query: [out:json][timeout:25]; // gather results ( // query part for: “parking:lane:*” way["parking:lane:...


0

osmconvert did trick for me on windows for two files. osmconvert a.pbf --out-o5m | osmconvert - b.pbf -o=all.pbf https://wiki.openstreetmap.org/wiki/Osmconvert


1

According to https://wiki.openstreetmap.org/wiki/Shapefiles you can try JOSM with the OpenData plugin to open a Shapefile. https://wiki.openstreetmap.org/wiki/Software_comparison/Import_a_shapefile#Advanced:_Conversion_tools lists various other tools for converting a shapefile to OSM data: There are multiple tools for converting shapefiles into .osm ...


3

Yes, that's possible: [out:csv(_ref, name, ::lat, ::lon)]; node["highway"="motorway_junction"]({{bbox}}); foreach { // iterate over nodes way(bn)[highway~"^(motorway|trunk)$"][ref] -> .ways; // find ways for each node if (ways.count(ways) > 0) { // check that at least 1 way was found convert result ...


2

Got it! My mistake was in the new attribute field conversion. Must change v.db.addcolumn riodejaneiro2D col="altura integer" to v.db.addcolumn riodejaneiro2D col="altura double precision" Now I have | Map is 3D: Yes | | Number of dblinks: 1 ...


1

So actually, what I missed, is to reverse the mercator projection. Then everything was fine: function mercator (longitude, latitude) { var radius = 6378137; var max = 85.0511287798; var radians = Math.PI / 180; var point = {}; point.x = radius * longitude * radians; point.y = Math.max(Math.min(max, latitude), -max) * radians; point.y = radius ...


0

I just solved a similar problem, trying to import several geocoded JPEGs with lon/lat-Values from exif-header to qgis. I parsed the exif-headers and created world-files and prj-files for every image with epsg 4326, f. e.: 0.000001 0 0 -0.000001 6.3252777777778 50.677222222222 Importing my 5312 x 2988 pixel image to qgis an measuring with srid 25832 the ...


1

You can query and export data from Openstreetmap via overpass turbo. It's Wizard is quite easy to handle. Just search for the tags provided in your link like this: Which produces the following query you can execute: [out:json][timeout:25]; // gather results ( // query part for: “boundary=national_park and name="Nationalpark Sächsische Schweiz (Kernzone)"...


0

I think osm2pgrouting is the better tool. When you use osm2pgsql to import the osm data to database, the relation tag information was ignored, pgr_createTopology() only use the geometry relation between nodes, but osm2pgrouting use the relation tag information.


0

sas.planet is my favorite tool. You will use it forever. for more info : SAS.Team SAS SAS.Planet https://php-full-stack.blogspot.com/2019/06/sasteam-sas-sasplanetbin.html


0

After some research and with help of @Erik I've found out I'm trying to extract nodes but rails are stated by line. So I found the solution by seperating my osmosis queries. For extracting anything related railways: osmosis --read-pbf file=turkey-latest.osm.pbf --tf accept-nodes railway=* --tf reject-relations --tf reject-ways --write-xml nodes.osm For ...


1

MBTiles images extract in QGIS, there is a plugin specifically created for this purpose, called MBTiles images extract: https://plugins.qgis.org/plugins/MBTiles2img/ Make sure you install it on QGIS 3 or newer: Install QGIS, if you haven't done so yet Plugin menu -> Manage and install plugin -> type 'MBTiles' Install Plugin


1

With a geographers point of view I would skip the whole XML part and would only work with the PBF. Download it and put it into PostgreSQL with the spatial postgis extension. To work interactively with the data in the PostGIS database I would recommend using QGIS and connect to the db from there. Then only the sky is the limit. There are plenty of tutorials ...


Top 50 recent answers are included