Hot answers tagged

5

If you have imported a planet or extract some time ago and have now downloaded a (much) newer planet or extract: It does not really make sense to do any updating as I think calculating and applying the diff will not save you time. Just re-run osm2pgsql again and it will remove the tables and create new ones resulting in updated data. If you want to keep ...


4

Inside the layer parameters, define custom resolution for zoom greater than 19. As in this case i have defined the resolutions till zoom level 22. map = new OpenLayers.Map("osm"); var layer_osm = new OpenLayers.Layer.OSM(null, null, { resolutions: [156543.03390625, 78271.516953125, 39135.7584765625, 19567.87923828125, ...


3

Using ArcGIS tile server, I manage to display satellite imagery even to 16 layer zoom level, but tiles are shuffled around. .... Basemap tiles are shuffled and do not correspond to lat/lon, but overlay is ok. According to the osmdroid Map Sources page, ESRI map services use the ZYX URL tile numbering format instead of slippy maps' ZXY that osmdroid ...


3

The best way to get boundaries of countries, provinces and regions is to use the OSM Boundaries application: https://osm.wno-edv-service.de/boundaries/ Extracting boundaries from generic tools like Overpass Turbo is not always easy, as the boundaries may contain errors and are likely complex multipolygons consisting of many parts. The OSM Boundaries ...


3

Adding maxZoomLevel:19 should do the trick layer_osm = new OpenLayers.Layer.OSM( "Simple OSM Map","",{ isBaseLayer : true, displayInLayerSwitcher : false, maxZoomLevel: 19 });


2

Download administrative boundaries of the spain and portugal from in .shp format from http://www.gadm.org/ you can import the shapefiles into QGIS or another software the filter with query builder to isolate the regions you are interested in QGIS you can install openlayer plugin from the vectors tab select- openstreetmap then select download data points, ...


2

The easiest way to get OpenStreetMap extracts would probably be through Mapzen's Metro Extracts tool here I would suggest exporting it in GeoJSON, then using a tool like ogr2gre (there's an online version here) to convert it to KML. You may also be interested in looking at Overpass Turbo for exporting data from OpenStreetMap.


2

I would recommend using a scripting language to automate your tasks and querying the overpass data. Python is commonly used in GIS applications and interfaces well with QGIS. There's even an Overpass Python library. You can have a look at these resources for learning Python for GIS, you may also find some examples of scripts by searching for the [python] ...


2

I discovered that the complexity of installing own instance of Nominatim can be mitigated by using a docker container where the set up script is already prepared. I used a docker script available at https://github.com/helvalius/nominatim-docker. Then the installation is just the following: git clone https://github.com/helvalius/nominatim-docker.git cd ...


2

If you want to stick to OSM then you will need Nominatim to process it, or one of the other OSM geocoders. Address data in OSM is build up hierarchically. Just analyzing the raw data won't help, you have to build up an address hierarchy. This is what OSM geocoders usually do. Or take a look at alternative Nominatim instances / third-party providers.


2

You can use the setOpacity function to show/hide the layer_osm by detecting the zoom level on each zoom change. For example, use the below snippet map.events.register("zoomend", map, function(){ var zoom = map.getZoom(); console.log(zoom); if(zoom>19){ layer_osm.setOpacity(0); } else{ layer_osm.setOpacity(1); ...


2

This is explained on the download page of the ArcGIS Editor for OSM, 10.2.x Desktop: Also, there is not an installer for ArcGIS Desktop 10.2.0 because at the 10.2.1 update, significant changes to this toolbox were made that were not backported to 10.2. I recommend installing a later version of ArcGIS for Desktop, taking care to choose one for which ...


1

You can download the data of OSM in shapefile directly from geofabrik.de and adjust the data as you like using select by attribute to select the desired attribute information that you need and exclude other information that you don't need from the original data. Also, you can refer to this tutorial on how to search and download OSM from inside QGIS and do ...


1

Marco_B pointed the way and, therefore his answer is accepted as correct. Nevertheless, since it is a theoretical answer that takes time to figure out how to implement, i will post the final code using OSMdroid 4.3 (slight difference in 5.0, see Marco_B's answer): String[] urlArray = ...


1

I can't find an option to disable the data layer completely. But you can select Map Data in the panel on the right (shortcut F), open Map Features and disable individual features you don't want to see. Note: Such questions are better suited at http://help.openstreetmap.org.


1

You could download data directly from Openstreetmap as .osm file, and convert it in QGIS as .kml, since QGIS supports export data as .kml. Alternatively, you could download data from Geofabrik (also openstreeet map data, but country by country, as .gbd/mdb, and in ArcMap, export it as .kml. Also, I would suggest you to use, if you have, shapefiles od Spain ...


1

Altough I wasn't able to find a bug in the above code... I managed to work it around using another way to load GeoJSON based layers. Another thing, the lat and longs weren't properly ordered in the example given (so that the correspond to positions on Rosario, Argentina)... Below are written correctly. <!DOCTYPE html> <html> <head> ...


1

Mapzen has a really cool geocoding service that allows you to query the name of the place to get an XY coordinate. (https://mapzen.com/documentation/search/search/). You can get a free API key from their developers page which will allow you to make 30,000 queries per day at 6 per second. (https://mapzen.com/) Here's a function that will return the XY ...



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