Tag Info

New answers tagged

1

If you don't want to zoom before around Heidelberg and if you are pretty sure that only one object is called Umweltzone Heidelberg, you can set a quick query like this : key name value Umweltzone Heidelberg in : empty value. This will create only an attribute query, not a geographic query. This kind of query is very quick. <osm-script output="xml" ...


0

This example uses open cycle map tiles. So yes, you can create and use your own rendering styles. In switch2osm.org tutorial related section is Stylesheet configuration. You could write mapnik style xml stylesheet or convert it from carto-css project. This step actually converts carto-css to mapnik xml. carto project.mml > OSMBright.xml You could use ...


3

I guess your query area Germany does not exist with that name. Using Deutschland and disabeling the timeout returns the data. I zoomed around Heidelberg and ran the query successfully and much quicker, querying the extent of the map canvas.


0

It is not a good idea to display all data on the map (especially if you have more than 100 000 objects) as point. In openlayers there are heatmap(http://www.patrick-wied.at/static/heatmapjs/) and cluster map (http://openlayers.org/en/v3.6.0/examples/cluster.html). I recommend using one of them In my software I create own "interpolation image" with data


2

Depends on what you consider "visualisation". You can just use QGIS. Load the coordinates as separated text layer or whatever format you have. Then use the OpenLayers plugin to get a background OSM layer. Or if you actually do have world-wide data, better use Natural Earth vector data to show it in an appropriate projection. http://qgis.org/ ...


0

The solution I adopted to this followed on from another response from @Chris W at How do you remove isolated roads from a bigger network? where he use a 'kludge' of a service area. In my case, in QGIS I created a single central point to the network and use v.net alloc for a netwok allocation which (I think) found all connected roads. I used this in the ...


1

I think you will be best off using a tile server, and then your heat map on top. You don't want to be publishing your own OpenStreetMap. Follow this guide here: http://www.qgistutorials.com/en/docs/leaflet_maps_with_qgis2leaf.html Just replace the points dataset with your dataset.


0

Longitude conversion from elliptical Mercator (same formula in both systems?: import math def merc_x(lon): r_major=6378137.000 return r_major*math.radians(lon) Mercator X now known. Divide this by the longitude to get the scale value. Latitude conversion from spherical Mercator: import math def lat2y(a): return ...


1

Take a look at Proj4 https://github.com/OSGeo/proj.4/wiki python's implementation pyproj https://github.com/jswhit/pyproj You could specify src and dest projections (like EPSG:4326 and EPSG:3857) and convert coordinates between them. And pyproj will made all raw calculations.


0

Displaying Asian place names with Latin characters is not a matter of OpenLayers, but of the used map tile graphics. You can try some other tile sources, see the OSM wiki about Map Internationalization. Tell us if you have trouble to include those other map tiles in your framework. And always pay attention of the tile producer's licente and terms of use.


2

They are not bad coordinates. They are in Web Mercator (EPSG: 3857 aka 900913 - units meters). This is the default projection for Openlayers. These coordinates are perfectly normal but what you mean is "how can I get coordinates in decimal degrees projected to EPSG: 4326" (which is what you were expecting). To do that, see this example where you can see ...


0

A quick internet search for "nominatim add new country" shows several hits that lead finally to help.osm.org with this question: import-more-osm-files-in-to-nominatim Please tell us about success or failure. In case that you already followed exactly this instruction, examine your import log files.


1

At least two OSM aware programs that I know are based on Qt framework: Merkaartor and Marble, both are opensource. And OSM frameworks based on C++ are listed in the OSM wiki at http://wiki.openstreetmap.org/wiki/Frameworks


1

OSM tile names are not latitude and longitude. See https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames for algorithms to convert between the two. For a random tile within Indiana try 12/1066/1553 (see http://a.tile.openstreetmap.org/12/1066/1553.png ). You might want to use a viewing software that generates the tile names automatically, for example ...


0

Currently image reprojection on the fly is not icluded in OL library, your best shot is to reproject your image with gdal then use a ol.source.StaticImage for displaying it on the map. The raster reprojection is a work in progress, you can have a look to these links to have more information about that: OL 3 Google group discussion OL3 Github issue ...


1

The world picture is rendered from a shapefile. For detailed maps, you need to put the openstreetmap data into a postgis database using osm2pgsql (not osmosis!). http://wiki.openstreetmap.org/wiki/Mapnik can lead you to further instructions how to set up the database properly.


1

Did you read http://postgis.net/docs/ST_Contains.html? ST_Contains — Returns true if and only if no points of B lie in the exterior of A, and at least one point of the interior of B lies in the interior of A. Creating SQL queries which construct geometry from WKT is a good and controlled way for testing the syntax select ST_Contains( ...


3

You can use OpenRouteService to add custom avoid areas / danger zones etc. The only alternative seems to be BRouter corresponding to the wiki overview.


0

Turns out the 'clean' option does the trick, as per the osm2pgrouting documentation waaaay at the bottom: all available parameters are: required: -file -- name of your osm xml file -dbname -- name of your database -user -- name of the user, which have write access to the database -conf -- name of your configuration xml file optional: -host -- ...


3

Yes, I guess they are supposed to be part of a highway (according to the wiki page and to traffic_signals I previously show in OSM). "The mapping of traffic signals is an abstraction that the particular junction or way is regulated by traffic lights. It is not a representation of a particular device. Thus, because traffic signals can affect routing ...


0

relation //Name of country with native language // Use ["name:en"="France"] for english ["name"="France"] [boundary=administrative] [admin_level=2]; (._;>;); out body qt; It will return you Polygons, Lines and Points, so filter features by type, when import to GIS.


2

As I could see, you could crossreferene osm data with терсон names. For instance: Верхнеколымский улус from http://std.gmcrosstata.ru matches with http://atd.osm.rambler.ru/r1399830.html and there are OSM Relation/Way ids for nested territories. That's the id of Верхнеколымский улус http://www.openstreetmap.org/relation/1399830 (you could find it on list ...


2

Alright, when installing Nominatim a folder 'settings' is created, holding a PHP file named 'settings.php'. Within this file all sorts of constants are defined - also 'CONST_Postgresql_Version'. Simply edit this file and change the value from 9.3 to 9.4 will overcome the initial error message.


0

I'm working on automating this guide so people won't have as much trouble, as I too struggled in some spots. Anyway your error is in this part of the guide: Double check and make sure this is all correct. vim osm-bright/osm-bright.osm2pgsql.mml Find the lines with URLs pointing to shapefiles (ending .zip) and replace each one with these appropriate ...


6

As the GIS SE tag descriptions note: OpenStreetMap (OSM) is data OpenStreetMap is a collaborative project to create a free editable map of the world. The data is free, and free of legal and technical restrictions. OpenStreetMap is often shorted to OSM. OpenLayers is a client viewer OpenLayers is a JavaScript library which implements an API for ...


1

The reason for the missing tiles is that the tile server is responding too slow if it suffers heavy load from other users. Unfortunately, there is no option in the plugin to extend the timeout. You can try increasing the values under Settings -> Options -> Network tab; or simply move around the whole canvas to activate a reload of the tiles. Or use ...


0

You are allowed to do with Google Earth images whatever you want, if you pay them the license fee they want. (I know this is not the answer you want to read, but you better not mess with their license terms). Openstreetmap does not have any satellite images, only road and landuse vector data. It is allowed to use bing imagery for digitizing within OSM, but ...


2

There is a typo in you call. number-processes is an option, so you should use --number-processes


1

Not sure if you seen this link before but perhaps it might be of some use as it contains several style files for various types of features: QGIS stylesheets for OpenStreetMap Or click here to directly download the style files.


0

If your image uses paletted colours, you have to translate it first to RGB colours: gdal_translate -expand rgb src_dataset dst_dataset If your image is not placed correctly when loading into QGIS, use gdal_translate -a_ullr to set the bounds. Since Openstreetmap uses EPSG:3857, you can directly reproject your image to that projection with gdalwarp ...


2

Names and labeling rules are in default style. They are follows http://www.mapcss.org/ specification with some extras. Open DefaultStyle.bundle/Style.mapcss most of the names marked as { ... text:eval(locTag('name')); ... } You could use text:eval(any(tag('name:en'), tag('name'))); In that case, name:en will be used for names first, and ...


0

You want to make use of (your own) Nominatim geocoder. Or you use an data extract and filter it for objects with addr:* tags.


0

I recommend the following steps: Do you already know the tagging of OSM elements that represents bike lanes? Some documentation is in the OSM wiki about cycleway Do some queries via overpass-turbo just to see for a special area how much tagging of bike lanes is inside the raw OSM database at all. Via overpass-turbo you can also export the resulting data in ...


0

reading the mapsforge-dev mailinglist for a long time now, I never came accross such a conversion feature. I assume that OSM data -> mapsforge mapfiles is a oneway processing. But you can try to ask on your own there, see https://groups.google.com/forum/#!forum/mapsforge-dev (I only found one similar question there from 2013, but no answer.)


1

You may try to get parts you need from OSMAnd (it's opensource) https://github.com/osmandapp/Osmand You may use https://getyourmap.com/ (there are free usage plan)


0

When instantiating the OpenLayers Navigation bar, you can define the mouse wheel options [1]. The mouse wheel options are defined at the MouseWheel handler [2]. Here I leave an example: var ctrlNav = new OpenLayers.Control.Navigation({ mouseWheelOptions : { interval: 10, //{Integer} In order to increase server performance, an interval (in ...



Top 50 recent answers are included