Tag Info

New answers tagged

0

JOSM has the feature to define custom map styles: http://josm.openstreetmap.de/wiki/Styles


0

It sounds like what you've done (reasonably enough) has provided you with raw Openstreetmap data, rather than the map pictures which you're familiar with looking at. What you have is a set of points and lines, each with data attached to them - so for example a line might represent a motorway, a river, or a boundary (etc). This is a good thing - if what you ...


0

I've not tried to do this recently, but in the past (6 months ago) the creation of a printed map using composer and the Openlayers plugin with some (all?) of the available OSM layers often didn't work for me. The other problem was that the only way I could find to set the choice of zoom level that the printed map used was to alter the resolution in the ...


0

First of all, ST_Distance_Sphere returns in meters, so you are actually looking at 8km, which might be more reasonable. I suspect, also, that you have you lat/lon the wrong way round -- your point is somewhere off the coast of the Seychelles, not Carlisle, and there are not too many roads in the Indian Ocean. Also, while the query planner will optimize this ...


0

The PicLayer plugin adds new items to the Imagery/More… menu item. There you will find the following new items: New picture Layer from file New picture Layer from clipboard


0

If you want a little more control and a little more SQL: UPDATE TABLE foo SET geom = ST_TRANSFORM(geom, 3857); The command updates the geom geometry column of your table foo with a geometry with transformed SRID.


0

If your server has enough disk space, then rebuild your database in a database with a different name. After your DB rebuild is finished you can switch the databases in the config.


0

You can use full planet dump and corresponding tools to create a dataset that contains the historic content of OSM and "undos" edits. This can be rendered with the ordinary mapnik rendering stack and published via WMS. There are also some animations out there that shows OSM growth during time (e.g. ITO, geofabrik ...). But as @Jesse mentioned, OSM started ...


0

At first glance, it appears that the only styles missing are the styles that rely on a zoom level. When exported in MBtiles, your "map" is seen in a map context where you have zoom levels, and as such, your styles are rightfully applied. However, when exporting a static map, by default there is no zoom level applied during rendering. I've snooped a bit and ...


4

I found the solution here: http://postgis.net/docs/UpdateGeometrySRID.html --This will change the srid of the roads table to 3857 from whatever it was before UpdateGeometrySRID(varchar table_name, varchar column_name, integer srid); So for my database the table name was 'planet_osm_line' and the column that contains the srid and geometry is 'way'. the ...


1

Ok, problem solved. Like I said early, the problem was in the resolutions, or better, in the zoom. If you use a max resolution or an array of resolutions(along with restricted extent), OpenLayers will ask to the server for the first set of tiles, which is not what I wanted. To fix the problem, you must tell the server that you want to start from the set of ...


1

since the road named I5 is segmented in OSM, you have to query the ref value instead of the id of a segment: /* This has been generated by the overpass-turbo wizard. The original search was: “ref="I 5"” */ [out:json][timeout:25]; // gather results ( // query part for: “ref="I 5"” node["ref"="I 5"]; way["ref"="I 5"]; relation["ref"="I 5"]; ); // ...


0

If I understand the problem correctly, there are two ways to solve the problem. 1) First, you can configure IIS to allow CORS. Here's a link on how to do this. Basically, you have to add these lines to your web.config file. <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <httpProtocol> ...


0

You need to find the correct name for the layer you are trying to load. Try a getcapabilities request to the service like so: http://demo.opengeo.org/geoserver/wfs?request=getcapabilities Then search for 'countr' to find whether there are any layers with country geometries for you to use. Edit: I made a little JSFiddle for the layer. Depending on your ...


3

{{nominatimArea}} is the old name for {{geocodeArea}} which in turn is a query extension provided by overpass-turbo and not supported by Overpass API directly. If you want to perform this query with Overpass API then you have to replace it with the actual area ID. Note that overpass turbo is able to convert this query to an Overpass API compatible query ...


5

You will have to create a new one. Nominatim requires a different database scheme than your rendering stack because it needs to perform really different queries. Using the same database for rendering and geocoding would be very inefficient, if possible at all.


1

You can read WKB as many other geo formats using JTS and add this data onto osm map as vector overlay. As example GeoJson Layer from MapBox SDK


2

What you should look for is called 'Map Matching'. I've opened sourced my idea based on GraphHopper very recently here so it is still in a VERY early shape, please give feedback via providing data or creating issues etc.


0

I would recommend splitting the Europe file, as opposed to trying to merge OSM files. Often the country extracts will have a slight buffer, so the Czech extract will include a bit of germany. I don't know how well various merging tools are at deduplicating that.


0

This can be accomplished using a css Transform, but it doesn't look great, but it works well enough for some things. The screenshot below uses the style: transform: translate3d(-300px, -141px, 0px) on the div containing the map.


1

There is no builtin functionality for this in Leaflet, and no plugin to do it that I am aware of either. You could maybe produce something like it with some CSS transform3d hack, but it would likely look pretty horrible. In general, I think OpenLayers 3 might be more suited for pseudo-3d functionality. I have not used OpenLayers 3 myself, though.


1

Couldn't find anything about OSM mapping for AGB's however I found this PowerPoint that explains what these AGB's are, it states: Google translates this to: The Geostatistical Framework, is a system designed by INEGI to reference the statistical information generated by the different census projects or surveys, with appropriate geographic locations. ...


1

As long as you have the data in OpenStreetMap format (i.e., you created it in JOSM, and exported as .osm), you should be able to load it into any tool that works with OSM data. I'd take a look at OpenTripPlanner, which has a heavy transit focus but should also work for simple walk trips. You should be able to build a graph file that is then loaded into an ...


2

You are going to split at each point? This may produce tons of data! Yes, osm2po can do that. Usually osm2po splits at intersections or at important nodes such as levelcrossings if necessary. The trick is, to give these nodes an importance. Namely, by setting the Node-Clazz >0. A good example of how to do it you'll find inside the plugins-source-zip. ...


1

QGIS is now able to read .pbf files with Add vector layer, but the data size will most probably kill QGIS with most of the available files. Try ogr2ogr -f SQLite my.sqlite some.pbf in the OSGEO4W shell to convert the pbf into a spatialite database, and connect to that in QGIS.


1

You could do some processing before with osmconvert (http://wiki.openstreetmap.org/wiki/Osmconvert) or osmosis. Basically you cut the area you're interested (clip based on bbox) in from the two extracts, then merge the two resulting files to have a single file. Then you can convert this file in spatialite, probably faster than doing on the complete file! ...


1

You can do this with the QGIS plugin QuickOSM. You can also grab the query from the QuickOSM-gui and use that for querying the Overpass-API (you just need to paste the XML to the editor and run the script..) which will allow you to export the search result as GeoJSON or osm-file. See the last picture with a query comprising all OSM-Data within a given ...


0

You could drop all the data (--drop-*) and keep only the bits you're interested in (--keep-*) Cfr http://wiki.openstreetmap.org/wiki/Osmfilter#Drop_all_Nodes.2C_Ways_or_Relations You can also try with osmosis http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage


0

There are several ways: http://taginfo.openstreetmap.org already provides this kind of data for the complete OSM data set the tool osmfilter can be used with the parameter --out-count or --out-key to get this data from your OSM data file. you can configure the .style file to just store any tag present in the data set using Postgres' hstore feature. This ...


1

Here is an original but older Code of the PgRoutingWriter. https://github.com/pgRouting/pgrouting-contrib/blob/master/plugin-osm2po/PgRoutingWriter.java


0

downloading three months of updates and applying them will probably take longer than downloading the full data file and importing it afresh! The server will let you download about 30 files a day so you would have to space your downloads a bit. Thank you Frederik Ramm


0

Did you try SVG export? SVG is vector format and may be rasterized with any resolution after being exported.


0

AFAIK there is (currently) no such lib https://wiki.openstreetmap.org/wiki/Frameworks


0

OSM relations are stored in the Postgis database with negative id to distinguish them from ways that could have the same id. So you have to put that negative osm_id value into your style definition. Apart from that, you could as well look into the polygon table. Relations of type boundary or multipolygon that form a closed line should land there (unless the ...


2

Looks like you may not have GDAL installed, ogr2poly.py will not work without it. Download either the 32-bit or 64-bit GDAL installers, depending on your system. You need to install the GDAL core, and then the GDAL Python bindings.


1

Are you calling pgr_drivingdistance and then using id2 (the "edge id") to join back to your edge table? If so, the pgr_drivingdistance function actually currently has a bug which causes this 'edge id' to not represent the actual path taken to get to that node. see https://github.com/pgRouting/pgrouting/issues/203 There's currently an open pull request to ...


1

Yes, the results are always sorted by importance according to the code. Consequently limiting the search to one result will return the address with the highest importance.


3

OSM editors are listed on this page: http://wiki.openstreetmap.org/wiki/Editors. Most people use one of the "Top Three" listed there--iD, Potlatch 2, or JOSM--but there are many other options. If all you're doing is adding roads and correcting names, iD or Potlatch 2 would easily meet your needs. iD is the default on osm.org and more beginner-friendly, so ...


1

I believe adding the osm user name or osm user id is out of the design scope of imposm. I don't know if the design goals are any different for the rewrite of the tool in Google's go language. Imposm wants to be fast at helping you create maps and does not appear to be interested in other data that may be used for statics or does not add to map data. Most ...


0

Osmosis stores the OSM data in the same way as the editor uses it: nodes, ways and relations. One of the time consuming tasks of osm2pgsql is to convert closed ways and multipolygon relations to multipolygons that can be used for rendering, as well as defining a rendering order of features that overlap like bridges over ways or other buildings. This is not ...


0

Thank you for your answers. I changed the base url to: baseURL: 'http://a.tile.openstreetmap.org/' in the OSM configurations. I also changed the host to - !dnsMatch host: a.tile.openstreetmap.org in the YAML file. Also! I found out why it didn't work. It was a stupid mistake of mine. I used JPEG format for the WMS layers that where over the OSM ...



Top 50 recent answers are included