Tag Info

Hot answers tagged

7

You can keep all of your code private. OSM's license only applies to its database, i.e. raw OSM data. But beware: If you use raw OSM data and add own information to it then you are creating a derivative database. This derivative database then has to be made available under the same licence as OSM data (the ODbL). And of course: IANAL. See the Legal FAQ for ...


3

I tried an imagery from OpenAerialMap and it aligns with the OSM building layer well. Of course, buildings in OSM, most probably, were traced over this OpenAerialMap images, so they match them. All satelite images could have alignment errors (as well as data traced among them). The quality of image referencing connected with: Relief and Digital ...


3

The purpose of a tile server is to deliver tiles (raster images). If you want to geocode then use/install a geocoder, for example Nominatim. If you want to access raw data then use/install a service offering raw data, for example Overpass API.


2

Try using Overpass API and for playing around the overpass turbo frontend. Example query: [out:xml] [timeout:25]; way["highway"](51.0634071197396,13.773078918457031,51.12550562618459,13.905601501464844); out body; >; out skel qt; Visualization on overpass turbo (might be slow in your browser!) Raw data as XML Please note that the other API you ...


2

You are not giving a whole lot of information here... What version of the ArcGIS Editor for OpenStreetMap are you using? The latest version has seen some major improvements in terms of processing speed, and added much better multipolygon handling, meaning you get more accurate and better polygon output, close to what osm2pgsql achieves. Still, especially ...


2

If your interested in using a microservice that you can run yourself, instead of a library check out https://github.com/trailbehind/StaticMapService/. You can install background layers into it, then post GeoJSON and get back map images. You mentioned facebook preview images, and that's exactly what I wrote it for. The image url points at a public web server, ...


2

If you reproject a raster with labels, you will obviously get squeezed labels. The only way to avoid this is to render the raster from vector data directly into the desired projection. You might want to look into mapnik, tilemill or maperitive to do this from Openstreetmap raw data (which is vector data). The R openstreetmap package only offers raster ...


2

try to add this text-dy: -10; you can look at file admin.mss in openstreetmap-carto project dir and find code #nature-reserve-text[zoom >= 13][way_pixels > 192000] { text-name: "[name]"; text-face-name: @book-fonts; text-fill: green; text-halo-radius: 1.0; text-halo-fill: rgba(255,255,255,0.6); text-placement: line; text-dy: -10; } ...


2

I guess it's better to answer here than comments on your question: 1) As mentioned source and target are integers that are unique identifiers for starting and ending points of your edge. So if an edge joins with another they share a point in common and you'll see the id repeated. This is a very fundamental piece of routing since travel stops are at the ...


2

No features at that location! center_bbox takes the arguments center_lon, center_lat, width, height - looks like you're requesting a box centred on 53.3528, -0.4468. That's off the coast of Mogadisho, all blue water, and no features, on OpenStreetMap: Looking at 'bb': left bottom right top 51.3213580 -0.4784529 51.3842420 ...


1

The area will be in the units of your map projection. Default is EPSG:3857 -> meters map.getView().getProjection() will get your the information


1

You can create an empty (completely transparent) image and provide it as the URL to a XYZ tile source: new ol.layer.Tile({ source: new ol.source.XYZ({ url: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIHWNgYGD4DwABBAEAHnOcQAAAAABJRU5ErkJggg==" }) })


1

The Overpass API server you are using is currently down, see platform status. There are other Overpass API instances available which you can try, assuming that QGIS allows to configure the server address.


1

It requires ArcGIS, but see my detailed response here in another GIS StackExchange thread regarding building networks and simplifying data while maintaining the topological structure: Building Large Network Datasets from OpenStreetMap in ArcGIS?


1

You can find some hints in the open source code of the JOSM editor, that program has a way-simplify-feature inside. Or have a look at that JOSM plugin named RemoveRedundantPoints


1

Baed on the Openstreetmap database, there is a service https://osm.wno-edv-service.de/boundaries/ which lets you select and download boundary data in various formats. Just expand the nodes on the left panel of the countries you want. If this is too slow for you, take the data from http://www.gadm.org/country or http://www.naturalearthdata.com/downloads/.


1

You can export data for several boundaries from the main OSM database. Administrative boundaries are complete in OSM for admin_level=2 that are for whole countries, and they are very up-to-date. The deper you go in admin_level there are countries that have 100% coverage for each place region, other countries still have some gaps. When using data from OSM, ...


1

I have resolved this issue. Go through this link and follow all the instructions posted there. Problem Resolved


1

I have resolved this error: The problem is still your pg_hba.conf file (/etc/postgresql/9.3/main/pg_hba.conf). This line: local all postgres peer Should be local all postgres trust After altering this file, don't forget to restart your PostgreSQL server. If you're ...


1

The problem you ran into has nothing to do with carto, it's an issue with your shell command, when you run sudo carto project.mml > OSMBright.xml carto runs as root, but the file write happens as your normal permission level, to do what your looking for you can sudo sh -c "carto project.mml > OSMBright.xml"


1

I resolved the error by following these steps: Step 1- Create a new file OSMBright.xml in the same folder. Step 2- Type 'ls -l' and see the read and write permission of OSMBright.xml file. Step 3- sudo Chmod 777 OSMBright.xml and it will change the read/write permission of the file. Step 4 - Now do sudo carto project.mml > OSMBright.xml and output ...


1

The Pelias Geocoder from mapzen runs on elasticsearch, and uses OSM data by default, though it can use any data source. The importers are split into separate modules, so even if your not interested in using the pelias geocoder, you may still find the OSM importer useful. On another note: Shapefiles of OSM data are probably not what you want for source ...


1

Take a look at https://github.com/kiselev-dv/gazetteer/tree/develop/Gazetteer It will create you a json index for osm file. And you could use https://github.com/kiselev-dv/gazetteer/tree/develop/GazetteerWeb as an example of geocoder based on ElasticSearch


1

You need a part of the answer for ways. Ways in OSM are ordered lists of node references. So the part of the answer what you need should looks like: <way id="22940464"> <nd ref="272304964"/><!-- First node --> <nd ref="273206415"/><!-- Second node --> <nd ref="273206424"/> <nd ref="1827734835"/> ...


1

The following code might seem a little long-winded as it represents a manual approach rather than relying on OpenStreetMap, but maybe it's of any help to you anyway. I took the country boundaries and the referring country labels from the wrld_simpl dataset (class 'SpatialPolygonsDataFrame', projected in EPSG:4326) that comes with maptools. The shapefile data ...



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