Tag Info

Hot answers tagged

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


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


2

I get the same nasty effect if I load the data with Add vector layer using the ogr driver: <provider encoding="System">ogr</provider> Alternatively (and the preferred way) I can load the data with Add spatialite layer. The encoding line changes to: <provider encoding="System">spatialite</provider> which is wrong ...


2

Ok, found at least one working solution. After finding that on Linux everything is fine suspected the default encoding in Windows. So I opened the QGIS project file (*.qgs) in PSPad and found this in layer description: <provider encoding="System">ogr</provider> So probably QGIS uses CP1250 encoding as default in Windows while the database is ...


2

OSM data is released under ODbL. In a nutshell you can do anything you like with the data as long as you attribute them. I am uncertain on SRTM data. I have always obtained it from USGS who have a similar citation policy.


2

In case you haven't tried it yet, the pgRouting Workshop is always a good place to get started. When you used osm2po to convert your OSM data, then source and target attributes are already there and ready to use. Sometimes the vertices table, that contains all source and target ID's, is useful to find the nearest vertex from a geographic point. The osm2po ...


2

Mapbox provides a gallery of their own stuff using tilestream: http://a.tiles.mapbox.com/v3/mapbox/maps.html I would also be interested to know if there are any sites for collections of third party basemaps.


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


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


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.


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


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

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


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.


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

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


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


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


1

This isn't covered by the functionality of most webmap toolkits. Instead this is realized by the renderers who create the basemap that is embedded with Leaflet. Thus, you need to setup Mapnik, Maperitive, Mapbox, ... create a mapstyle that you want and deliver it to your endusers. Otherwise you might want to adapt existing style e.g. delivered by Cloudmade, ...


1

I am familiar with the OSM plugin, however I mainly use the "Download, Extract, and Symbolize OSM Data" tool. When I use this, I enable "Extract OSM Tags into Standalone Attributes." The feature classes that are output have a large number of fields joined representing multiple attributes (most are Null), and I am able to label roads or other features using ...


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

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.



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