Hot answers tagged

5

If you have imported a planet or extract some time ago and have now downloaded a (much) newer planet or extract: It does not really make sense to do any updating as I think calculating and applying the diff will not save you time. Just re-run osm2pgsql again and it will remove the tables and create new ones resulting in updated data. If you want to keep ...


4

Ok, I am sorry about me answering my own question. I guess I had to ask the question to think about it more and be able resolve the problem. It turns out the problem was not in the OSM data but with the osm2po default config file I use to generate the graph. The problem Somewhere (line 188, if you are using osm2po 5.1.8) in the default config file, there ...


4

You can not change the content of pre-renderd tiles. Since there seems to be no tile server with english labelling worldwide, you have to do it on your own: Render the tiles using the Mapnik toolchain or Maperitive using the name:en field instead of the name field for labelling. Add them with the TileLayer plugin to your project. Using the QuickOSM plugin, ...


4

Since nodes like speed_camera are always attached to a street ... So you mean that a node with tagging for a speed camera is always a child element of a street that it belongs to? Are you sure? According to the OSM wiki about Relation:enforcement a speed camera can also be next to the belonging street. The connection is done via a so called Relation in ...


3

Indeed, the default.config is very strict and to be honest it's too strict for my taste. I stumbled across a similar question weeks ago and modified the osm2po release notes for 5.1.0 to report this issue. Your solution above is correct. But I think there are not so many more positive tags, It would be shorter to modify the deny-option instead to sth. like ...


3

I would stick to the OSM design as close as possible. It works pretty well accross most zoom levels. I use #787878 for the base colour. Width 1mm. For the dashed line on top I use white as colour. Width 0.6mm. Cap style Square. Custom Dash 1.5mm (Space 3).


3

Check the instructions from Underdark about using OSM data (same as Stamen uses) with some style files she has made (see below for links) These have completely changed print cartography for us - we're doing both 36x24" plots and static images with the OSM lines styled with the 'Google' / colour version, and a black and white style I modified (I should ...


2

Save AS ... the kml file as a shapefile into a CRS that uses meters as units, like your local UTM zone. Then you can use the $length variable to label the line with the length in the layers units.


2

You can change the appearance in JOSM via styles. There are already various different styles available. Alternatively you can create your own style. This affects only the map rendering in JOSM of course.


2

The easiest way to get OpenStreetMap extracts would probably be through Mapzen's Metro Extracts tool here I would suggest exporting it in GeoJSON, then using a tool like ogr2gre (there's an online version here) to convert it to KML. You may also be interested in looking at Overpass Turbo for exporting data from OpenStreetMap.


2

Download administrative boundaries of the spain and portugal from in .shp format from http://www.gadm.org/ you can import the shapefiles into QGIS or another software the filter with query builder to isolate the regions you are interested in QGIS you can install openlayer plugin from the vectors tab select- openstreetmap then select download data points, ...


2

The best way to get boundaries of countries, provinces and regions is to use the OSM Boundaries application: https://osm.wno-edv-service.de/boundaries/ Extracting boundaries from generic tools like Overpass Turbo is not always easy, as the boundaries may contain errors and are likely complex multipolygons consisting of many parts. The OSM Boundaries ...


1

You could download data directly from Openstreetmap as .osm file, and convert it in QGIS as .kml, since QGIS supports export data as .kml. Alternatively, you could download data from Geofabrik (also openstreeet map data, but country by country, as .gbd/mdb, and in ArcMap, export it as .kml. Also, I would suggest you to use, if you have, shapefiles od Spain ...


1

As you discovered, osm2pgsql and osm2pgrouting are not the tools to use. These tools create dedicated spatial schema's and actually convert the raw data (especially in the case of osm2pgsql and its support for creating PostGIS multipolygons), instead of giving you the 'raw' data to do your own processing on. I think for your particular use case, you should ...


1

Altough I wasn't able to find a bug in the above code... I managed to work it around using another way to load GeoJSON based layers. Another thing, the lat and longs weren't properly ordered in the example given (so that the correspond to positions on Rosario, Argentina)... Below are written correctly. <!DOCTYPE html> <html> <head> ...


1

The geojson layer is in EPSG:4326, not 3857. For the center_coord, you should reproject the degree values to EPSG:900913: new OpenLayers.LonLat(lon, lat).transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject());


1

If you want a basemap with tiles, you need to render them yourself with Mapnik, Maperitive, TileMill or else. Depending on the extent of your area, you will get billions of tiles, mostly filled with ocean water. This is definitely not a task for Openlayers javascript. The OSMXML function might be useful to overlay some POI from the Openstreetmap database, ...


1

I found a solution using a transform method with a jar http://developer.onebusaway.org/modules/onebusaway-gtfs-modules/current-SNAPSHOT/onebusaway-gtfs-transformer-cli.html#Merge_Trips_and_Refactor_Calendar_Entries


1

probably you are not entering correct password. Please make sure you can access db from pgAdmin. Then use same user/password (copy&paste).



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