New answers tagged

0

Find the state border in OSM (http://www.openstreetmap.org), make the required edits so the roads snap and then reimport the data. Normally they already snap at borders, so you must have been unlucky.


0

There's a tutorial in the QGIS documentation, might help: https://docs.qgis.org/2.2/en/docs/pyqgis_developer_cookbook/network_analysis.html


0

vector api changing a lot. I have a working sample with openlayer 3.16.0 specially note: that you must define featureProjection: 'EPSG:3857' as .readFeatures(_geojson_object, { featureProjection: 'EPSG:3857' }) Reference can be found at https://github.com/openlayers/ol3/blob/master/changelog/upgrade-notes.md#v350 _geojson_vectorSource ...


1

Start with the demo.bat/sh and modify the params to use your source You'll get two results, the gph and an sql. The sql lets you proceed with PostGIS,pgRouting,QGIS For deeper dives (native .gph) follow the Java-Example on the WebSite. Or use osm2po's simple REST-API which handles most common cases. It is documented on the site as well. The documentation ...


0

A lot of online services display in WGS84 Web Mercator, which calculates distances terribly, so they calculate distance along the ellipsoid (geodetic distance) in the background, rather than the direct planar distance. (Whether they are using the correct ellipsoid formula or not is for another question.) ArcMap is more of a professional tool and makes no ...


0

Are you working with an old version of QGIS? Even though I dont know your answer, maybe you will find an answer here


0

I know this is kind of an OLD thread, but I have looked for two days for an answer to this same error message about output dimensions needing to be 2 or 3. I think i have found a solution that could be useful to your problem as well as mine, so I'm going to share it. It worked for me. My issue, specifically, was when I converted a bunch of KML's from Google ...


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


0

I would create a Concave Hull (QGIS plugin) for the outer polygon. Calculate the distance from each point to the Outer polygon. Sort the Points by distance, deleting the smallest 20%. Generate a new Concave Hull around the remaining 80%.


0

Looks like this tool from Mapbox can do what I need. I only need to look at how it works and do it with database, not in memory.


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


0

You need to transform your marker position to EPSG:900913 also. var lonLat = new OpenLayers.LonLat( 77.1279688 ,51.5043436 ).transform( fromProjection, toProjection); Coordinates are given in different coordinate reference systems. Those reference systems are accessible through EPSG codes, where EPSG is the "European Petroleum Survey Group Geodesy". ...


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

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


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


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


0

It is possible. First you need to convert the .img files to a .mp format. A good tool for this procedure is MapEdit. Separate each symbol to its own .mp file. Then you can convert the .mp file to .shp


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.


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


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


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


3

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


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.


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


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


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


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.


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



Top 50 recent answers are included