Re: [OSM-dev] osm2pgsql -C vs --flat-nodes

2012-09-19 Thread Lynn W. Deffenbaugh (Mr)
BTW, I believe you can access my OSM machine's munin graphs at: http://ldeffenb.dnsalias.net:6360/munin/localdomain/localhost.localdomain/index.html If this doesn't work, please let me know and I'll see what I've not got configured correctly. Lynn (D) - KJ4ERJ On 9/19/2012 9:38 AM, Lynn W. D

[OSM-dev] osm2pgsql -C vs --flat-nodes

2012-09-19 Thread Lynn W. Deffenbaugh (Mr)
Greetings developers, I'm in the process of attempting to load the newly licensed planet and have recently learned about --flat-nodes in osm2pgsql. I'm trying to make use of this feature to reduce the disk space consumption of the --slim updatable database, but I'm having issues getting enoug

Re: [OSM-dev] Making polylines from route relations

2012-09-19 Thread Richard Fairhurst
Frederik Ramm wrote: > Kind of depends how you have the data and what you want > but here's a snippet from a program where I did that with Osmium. That's great - thank you (and thanks Komzpa and Pawel too). I'm currently using a fairly custom setup with a Postgres (but not PostGIS) database and

Re: [OSM-dev] Making polylines from route relations

2012-09-19 Thread Paweł Paprota
Hi, It is trivial to do in PostGIS (ST_LineMerge) or anything that can deal with standard (OGC) geospatial types, e.g. RGeo in Ruby. However from my experience I can tell you that working with route relation geometries is very tricky because of how they are mapped. At least for road and bicycle r

Re: [OSM-dev] Making polylines from route relations

2012-09-19 Thread Frederik Ramm
Hi, On 09/19/2012 02:28 PM, Richard Fairhurst wrote: Does anyone have any code to convert a route relation into a polyline? Kind of depends how you have the data and what you want but here's a snippet from a program where I did that with Osmium. It's not terribly elegant but works ok. It is

Re: [OSM-dev] Making polylines from route relations

2012-09-19 Thread Komяpa
2012/9/19 Richard Fairhurst : > Hi all, > > Does anyone have any code to convert a route relation into a polyline? Can you please describe the technology that you'd like to use? In PostGIS it's as simple as ST_LineMerge(ST_Union(way, way, way)). The code that you may want to look at is in osm2pgs

[OSM-dev] Making polylines from route relations

2012-09-19 Thread Richard Fairhurst
Hi all, Does anyone have any code to convert a route relation into a polyline? In other words, given a relation with (unordered) ways A, B, and C, which contain nodes "i-j-k", "p-o-n", and "k-l-m-n", I'd like to get "i-j-k-l-m-n-o-p" out the other end. Not the hardest of programming challenge

Re: [OSM-dev] osmjs question

2012-09-19 Thread Jochen Topf
On Tue, Sep 18, 2012 at 05:19:27PM -0600, Martijn van Exel wrote: > if (Object.keys(this.tags).length > 0) > > a valid way to check whether an osm object has any tags? That should work. Somebody should add some convenience functions to osmjs, that could make these things easier... :-) Jochen --