Tag Info

New answers tagged

0

One way to show people what the differences in projection mean in practice is to draw a long line in Google Earth. By "long line" I mean one that is visibly a Great Circle route. Everything's fine in Google Earth. But if you draw a line between the same two points in Google Maps, CartoDB or OpenStreetMap, the line is flattened onto the flat projection. Zoom ...


2

You could calculate a buffer (not more than 5 meters) for the start- and endpoint of every linestring. Then, intersect the buffer with the road network. A line that doesn't intersect with the buffer is likely to be a "correct" unconnected road. However, you'll have to play with the buffer radius for satisfactory results.


0

Leaving out name seems no good idea. Not every object in Germany has a name:de tag. I would keep landuse to get the residential and industrial areas. access would be nice to filter out private ways.


0

Perhaps use the Spatial Query to select all lines that intersect or touch or overlap other lines. Then could you invert the selection (to select all lines that do not intersect, touch or overlap) and delete the lines? Perhaps the topology checker could work to help you select or identify lines not touching other lines.


0

You can use QGIS for georeferencing (tutorial), then generate tiles with it (another tutorial). Finally, you should specify layer bounds in Leaflet tile layer with bounds option.


3

I found this gudie by Anita Graser a couple of days ago, and it looks like just what you need: http://anitagraser.com/2014/05/31/a-guide-to-googlemaps-like-maps-with-osm-in-qgis/ Using that method you can define the lat-long box that you are interested in and apply it to .pbf file downloaded from the Geofabrik site.


1

The original OSM data doesn't have weights. It has attributes (tags) like road class, maxspeed, width, surface and many more which can be used by tools like routing engines to calculate weights as a post-process step. Which of these attributes are actually used for weight calculation depends entirely on the specific router you are using. So the only valid ...


0

If you want to edit OSM data with the goal of creating a new .osm file for Navit then have a look at this list of OSM editors: http://wiki.openstreetmap.org/wiki/Editing PgRouting really is not the right tool for your use case.


1

By using overpass turbo's wizard and the search string highway or building in "Flemish Brabant" this query has been created (I increased the timeout a little): <osm-script output="xml" timeout="250"> <!-- fetch area “Flemish Brabant” to search in --> <id-query {{nominatimArea:Flemish Brabant}} into="area"/> <!-- gather results ...


1

The OpenStreetMap tiles are pre-rendered in Web-Mercator (i.e. EPSG:3857) and hence you can't get them in your projection, and show it in this map. You have two options: Tile your data in Web Mercator Download OSM data, and then create tiles for it your Projection.


1

In server side convert json type to array.


0

Two answers possible: Or you follow this steps by steps guide straight from the Mapbox Blog: here Or you dig on how to use the Print Composer in Qgis.


0

The parameter --node-key-value (--nkv) is for tags, not for users. According to Osmosis/Detailed Usage in the OSM wiki osmosis doesn't have an option for filtering for specific users. Also keep in mind that a single object can be edited by multiple users, but a .osm file usually only contains the last user who edited the object. For obtaining the user who ...


2

If you want to see the same map as on http://www.openstreetmap.org, install the Openlayers plugin and select OSM as a background layer from there. If you download the raw data, you have to style that data yourself. This is not an easy task. In many cases, the background map is the easiest solution.


0

Answer pulled from a related question: Pretty easy assuming you have the lat/lngs. Convert lat/lng to the osm data srid Compute the distance to all POIs that you care about in the database. Pick the row with the smallest distance. Additionally, you may want to limit your search to a radius of interest (say 5 KM..) As an example, let's find 5 closest ...


0

I had the same exact problem. I have points that represent vehicles and would like to get the closest road to within some error tolerance. In my case, the data I have is in SRID 900913 while the submitted points are lat,lng. Here's the query that's working for me: SELECT osm_id, name, ST_XMin(line.way), ST_XMax(line.way), ...


0

Did you do the settings that are suggested after setting up Postgresql in the link that you followed? shared_buffers = 128MB checkpoint_segments = 20 maintenance_work_mem = 256MB autovacuum = off Also, please try increasing the number of threads in renderd.conf And if you are using a relatively common machine eg. 8gb RAM, in my opinion, you should not ...


2

Looks like you found something to work with in the end and I hope by now you have a solution. I recently had a similar issue to yourself so I set about creating my own QML styles for OSM Shapefiles. You can find them on my github here: https://github.com/charleyglynn/OSM-Shapefile-QGIS-stylesheets I hope they can be of use.


0

You most probably don't want to invent your own geocoder because this is a really tricky task. Addresses in OSM are rarely stored as a full, complete set for every single object. Instead, pre-calculations have to be done in order to add administrative information like cities, municipalities, countries and so on. Instead try to use one of the already ...


1

Probably the first thing to do is to import your data again after you have read about addresses in OSM from http://wiki.openstreetmap.org/wiki/Addresses. Why you should do import again is that the default osm2pgsql style file does not import all the keys which will likely need, for example addr:street ...


3

Fiona is by design restricted to the conventional record model of data, i.e. all records (features) have the same fields associated with them. This means that Fiona reads shapefiles, but does not read more flexible formats such as the OSM PBF format. You can check which drivers are supported in Fiona with: import fiona list(fiona.drivers) You have two ...


1

You want to look at the attribute data with [name='Mary Street']. Please look at my CartoCSS answer here. "Orchard Road" was used as more information was provided in the comments. Depending on what other road types were involved, one test had to use [name!='Mary Street'] for styling purposes.


0

Have a closer look at openmapsurfer ... choose a grayscale layer and the boundary overlay, and zoom to the area you are interested in ... boundary visible? Then try boundary service by OSM-user wambacher ... choose the country and province etc from the tree menu at the left. Then you can export the boundary silhouette in different formats.


2

The idea to transfer vector data instead of images and render it on the client side is not new. There are already a lot of tools/projects doing that. See for example this plugin of leaflet, polymap, and also the cartagen project. OpenLayer developer are trying to introduce it in the (long-awaited) version 3.0. Each of these initiatives use their own vector ...


0

With QuickOSM, you can save your shapefile in the "advanced" panel. You have to set a directory and a prefix. The plugin won't use the temp folder.


3

To extract selective data from OSM you can use Overpass, you could also check download server of Geofabrik EDIT after some comments: In OSM boundaries of cities and villages are tagged with boundary=administrative + admin_level=*, unfortunately in different countries there are different values of tag admin_level. Here is table with meaning of this values ...


1

Configure your layer as SQL View - link to the docs For your case (buildings), the SQL statement for filtering will be: SELECT * FROM planet_osm_polygon WHERE building IS NOT NULL And then, publish the layer as usual.


1

There are several options for rendering or displaying geospatial objects within a Rails application. Usually the hardest part is setting up your application to be able to store geospatial data and run PostGIS related functions with it. I'm not sure where you are at in your process of using Rails with PostGIS, so as long as you have already installed ...


1

You can use the QuickOSM plugin to directly download only desired data, e.g. everything in Guatemala with amenity=hospital as shown in the following screenshot: The data is downloaded and stored as (temporary) Shapefiles (in the Processing temp folder). I suggest using "Save as" to create permanent Shapefiles in a different folder with more descriptive ...


2

In QGIS (can be done in ArcGIS) You can download shapefiles from: http://download.geofabrik.de/central-america/guatemala.html Once downloaded and unzipped (guatemala-latest.shp.zip) you can filter the restaurants and hospitals


0

The new QuickOSM plugin for QGIS provides a nice GUI to use the Overpass API. You can specify the key-value pairs that you want and it also offers user-friendly ways to filter by location: either bounding box or even by just specifying the region name like "Austria" for features within Austrian borders.


2

So this is how I do it: 1.) convert the osm.pbf file to geojson with ogr2ogr like this: ogr2ogr -f GeoJSON points.json C:\data\osm\karlsruhe-regbez-latest.osm.pbf points the only trick is that you have to enter this statement five times, changing the type of the geometry at the end of the statement : points / lines / multilinestrings / ...


1

A German user has set up a wiki page dealing with admintrative Borders: http://wiki.openstreetmap.org/wiki/User:Wambacher#International_Administrative_Boundarie together with links to the admin_0 relation and the relating wikipedia pages. Soem parts of the page are in German, but I think you get the overview you want. He has also a vizualisation and ...


0

Only thing that I know is Osmo but IMHO the best/best supported method is using PostgreSQL as it's most supported solution by the OSM tools.


0

You can surely reduce the amount of data in the sourcefile before storing it in the spatialite database. OSMfilter or osmosis are powerful tools to filter the data. It depends on what you are after. If you only need streets, you can drop buildings and housenumbers. In some parts of the world these take a growing part of the database.


1

It is not the size of the database that makes it slow, it is that you select too much to render. Simplification can be a part of the solution but it will not be enough for making you happy. You can do lot of things once the data are in Spatialite. As you suggested, simplify "update lines set geometry=ST_Simplify(geometry,0.01);" Do the same but instead of ...



Top 50 recent answers are included