Tag Info

New answers tagged

2

The 770.osc.gz file lives in the same directory as osmconvert.exe and the output extract.05m should populate in the same directory as the osmconvert.exe exists. That's not what your code is saying. The code says "execute osmconvert.exe from inside c:\temp\ but read 770.osc.gz and write extract.o5m from the current working directory". If you want ...


0

I remember reading that OSM-based layers will print in QGIS at pre-defined scales (see http://wiki.openstreetmap.org/wiki/Zoom_levels). Related to QGIS issue http://hub.qgis.org/issues/5827.


1

Sure you can. Its as easy as loading the map. See this example: http://dev.openlayers.org/examples/osm-google.html Code: (Place this after the OpenLayers map) var gmap = new OpenLayers.Layer.Google("Google Streets"); map.addLayer(gmap); and load the folowing javascript: <script ...


3

I just found a solution. There is also an active psycop2 connection. When I commit it or close the connection before osm2pgsql runs and open it afterwards again it works. Probably osm2pgsql can't access to the database if this connection is open.


0

The problem was just that: I didn't load data with postgis with the SRID (4326 in my case). Then I've clone a geom column by creating a route table, changing the preceding geom column by the simple_geom column, with a special srid (linestring) that seems to be more comprehensible from the version 2.x of pgrouting. CREATE TABLE routes AS SELECT *, ...


0

The OSM OSMOSIS page gives beginner examples under the section marked 'usage'. For further documentation try the detailed usage section. For routing specifically, you may also like to investigate PgRouting (for which you will need to load your data into PostGIS using OSMOSIS or OSM2PGSQL) or have a look at OSM2PO. Both of these a common routing solutions ...


0

OSM Bright from the MapBox people is also a useful starting point for custom OSM map tiles, unless you're trying to duplicate OSM carto exactly. OSM Bright is a little more lightweight (only 4 .mss style files, fewer layers defined), and easy to customize. Otherwise, as @math1985 said, just copy the .mml and .mss files from the openstreetmap-carto repo. ...


2

You should use osm2pgrouting to import the osm data into you DB, it's a command line tool that will automatically create the appropriate graph for pgrouting. http://www.pgrouting.org/docs/tools/osm2pgrouting.html


1

When you use OSM data for pgRouting, then you need to use special import tools. This will automatically solve your problem. To get started I highly recommend you the pgRouting workshop, because it will exactly guide you to get pgRouting work with OSM data: http://workshop.pgrouting.org/


0

Just checkout openstreetmap-carto in the Tilemill projects directory. The project.mml file, part of openstreetmap-carto, defines the queries and layers, so you won't need to do anything with that yourself.


2

Finnish Airports Isochrones using the Interpolation plugin Site analyses can benefit greatly from using “drive-time” isochrones to define the study area. Drive time isochrones are often significantly different from simple buffer areas which disregard natural barriers such as rivers or slow roads. ...


2

You can follow the latest development of the Windows build at https://github.com/openstreetmap/osm2pgsql/issues/17 providing links to testing builds. The last build I found (but not tested) is at https://dl.dropboxusercontent.com/u/63393258/osm2pgsql.zip Personally, I am still using the May 2013 build of Dominik Perpeet from ...


0

According to this link: https://github.com/springmeyer/win-osm-workshop/blob/master/Tutorial.md#step-7-install-osm2pgsql osm2pgsql is included in the HOT-installer: https://github.com/hotosm/installer/downloads. However, the last update is from 2010 but maybe it fits your needs.


-1

The OSM stylesheet is on github : https://github.com/gravitystorm/openstreetmap-carto


1

There are 2 Versions of the Community License COMMUNITY EDITION (Licensed Data) A popular free option among developers, the Community Edition using Licensed Data offers an industry-leading platform that includes the developer tools and resources needed to build rich and engaging mapping applications. General restrictions and requirements regarding the use ...


0

Please see this link, which gives some important background information on this question with regards to Overpass API. Assuming you want to find buildings with amenity nodes inside, you could use the following query in Overpass Turbo: node({{bbox}})[amenity];is_in; (way[building](pivot);>;);out; It first checks for all nodes having an amenity tag in ...


0

OSM uses (-ed) the native Mapnik XML stylesheets, while Tilemill uses CartoCSS as style language. You need to get a converted map style file here: https://wiki.openstreetmap.org/wiki/CartoCSS


1

I don't know the schema of the OSM tables, but you asked for a query like this: DELETE FROM labels WHERE label_id IN ( SELECT label_id_2 FROM ( SELECT a.label_id AS label_id_1, b.label_id AS label_id_2 FROM labels AS a, labels AS b WHERE STDWithin(a.the_geom,b.the_geom, 0.001) and a.street = b.street and a.label_id != b.label_id ) ...


0

AFAIK there is currently no real alternative to OTP, esp. for supporting big networks. See also: https://wiki.openstreetmap.org/wiki/GTFS


2

For viewing bus routes you can take a look at OSM-based maps which visualize bus routes. The OSM wiki has a list of public transport maps, for example the transport layer at the front page or the Öpnvkarte. For retrieving bus route data you can use the Overpass API or the nice frontend overpass turbo. Use this query for retrieving all bus routes in the ...


1

These pages on the OSM Wiki will help you determine the necessary tags for the data you need: Bus Stop, Stations, etc Bus Routes You can see what actual data is available in your area of interest by using the OSM Overpass Turbo Tool. Use the Wizard to create a subset of the available data using the tags described above


1

For OSM: (from: http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames) X and Y X goes from 0 (left edge is 180 °W) to 2zoom − 1 (right edge is 180 °E) Y goes from 0 (top edge is 85.0511 °N) to 2zoom − 1 (bottom edge is 85.0511 °S) in a Mercator projection Meaning OSM uses a NW origin. Your Mbtiles would be using a SW origin looking at your numbers, ...


2

I have a script I use to take a list of addresses and geocode them to points in a new feature class. You just need to download the requests module and supply a service url for a Geocoding REST service. I do not really know of any open source geocoding services though. import requests import json import arcpy import os import sys arcpy.env.overwriteOutput ...


0

The QGIS Quick OSM plugin implements the Overpass API to download specific subsets of the OSM database. This description is in French, but I'm sure you get what it means.


3

Try the OSM Overpass API a try at http://overpass-turbo.eu/. If you don't know the key/value pairs you are looking for or the correct JavaScript syntax, just click the "Wizard" button, type in the feature types you are after. it will build the correct JS sytax for you. Then just click the "Run" button to return the highlighted features in your current ...


0

The official OSM maps get styled with TileMill and rendered with Mapnik. Both tools are extremely powerful and flexible. What is good for OSM, should be good for you! Unfortunately the setup procedure for TileMillis a complicating, at least if you want to render OSM data. There are a lot of descriptions for Ubuntu or Mac, but the comments in forums show, ...


2

@jazzurro, you perfectly can do this with R, just look up osmar package! Read the osmar documentation (osmar.r-forge.r-project.org/RJpreprint.pdf). At pages 11 pp. you can find a detailed example for extracting roads/highways by the according tags for munich.osm! After pulling and extracting the data from a planet file for Australia you can convert to any ...


4

This is not an R solution, but Quantum GIS (QGIS) is a great way to achieve what you want. You can simply load the .osm file (Add Vector tool), right-click it in the Table of Contents and Save As ESRI Shapefile. QGIS may crash with such a large extract, so to avoid this you can uses OSM Tools like the OverPass API to download only what you need using ...


2

You can also download from DIVA-GIS: http://www.diva-gis.org/gdata Select India and then select the subject of the attributes such as: Administrative areas (boundaries) Roads Railroads Land cover Population


1

If you're inclined to set up your own server for the area you're interested in routing within, you can check out the open-source OpenTripPlanner (OTP) project for multimodal trip planning. OTP uses OpenStreetMap data for car/bike/pedestrian routing, and General Transit Feed Specification (GTFS) data for transit data. We've developed an open-source ...


0

The only OSM routing I've performed was using pgRouting. This is an extension for PostGIS. I found it a bit cumbersome to use. However, assuming you don't want to write your own algorithm, then this is going to have to be one of the options to consider. You would have to implement it on a server and then your android device communicate to the server. I ...


3

This link from geofabrik.de provide shape files for roads and other features from open layers categorized into countries and for India covering almost all urban area. For urban boundary or district boundary shape files for India this link would be helpful.


3

The background image of the Openlayers plugin is a set of tiles in raster format. You can not convert that to anything useful. You can digitize the features you want on the basis of the background download Openstreetmap data (one of the available backgrounds of Openlayers) and filter that for the data you need.


0

I believe that syntax is declaring multiple attachments. This works for waterways because they are all the same colour, no layering is involved, so ordering does not matter. Without the attachments, this turns into a combinatorial explosion, which is a fundamental problem with carto. This technique cannot be used for layers like the landcover layer, where ...


3

(Third try) Separate the rejects for each key, because the comma is reserved as a value separator: D:\Karten\OpenStreetMap\osmosis\bin\osmosis.bat --read-pbf file=belgium-latest.osm.pbf --tf accept-nodes railway=station,halt --tf reject-nodes disused=* --tf reject-nodes abandoned=* --tf reject-nodes railway=disused,abandoned --tf reject-nodes ...


0

You have to use a renderer like Maperitive, Mapnik or Tilemill to create the tiles. Since you are new to the subject, I suggest to install Maperitive, and try a small area first.


0

It sounds like what you are really wanting is to be able to override specific tiles in a map. I have implemented this with TileLayers in Google Maps in the past. Not sure how to do this with OSM, but there should be a tile request hook in your javascript that would allow you to point at a script to check a local cache before forwarding the request out to a ...


1

Check out compositing operations, possibly dst-in. Your carto might look something like this: #neighborhoods { line-color: #ccc; polygon-opacity: 1; polygon-comp-op: dst-in; }



Top 50 recent answers are included