[osmosis-dev] one node ways

Jochen Topf jochen at remote.org
Sat Apr 9 06:15:21 BST 2011


Hi!

This has worked for me: I use the ST_isvalid() function in Postgis to find out
if a geometry is valid. If not, I either delete the way or set the geometry to
NULL and then do all further processing only on ways with geometry != NULL.

Jochen

On Fri, Apr 08, 2011 at 08:55:43PM +0400, Kirill Bestoujev wrote:
> Date: Fri, 8 Apr 2011 20:55:43 +0400
> From: Kirill Bestoujev <bestoujev at gmail.com>
> To: Igor Podolskiy <igor.podolskiy at vwi-stuttgart.de>
> Cc: osmosis-dev <osmosis-dev at openstreetmap.org>
> Subject: Re: [osmosis-dev] one node ways
> 
> Igor,
> 
> the context is simple - we have a mirror of the planet, we update if with
> replication with minute diffs.
> 
> You may have a look at way 35966868 to see the problem by yourself. After
> creation of geom by osmosis it looks like LINESTRING(2.2321042
> 48.7767191,2.2321042 48.7767191) which is not good.
> 
> 
> 
> K.
> 
> 2011/4/8 Igor Podolskiy <igor.podolskiy at vwi-stuttgart.de>
> 
> > Hi Kirill,
> >
> >
> >  When a one node way is present in the database and osmosis creates a
> >> linestring geometry for it the resulting geometry is something like
> >> LINESTRING(139.386972 37.095865)
> >>
> >> When we process this linestring with any postgis function it gives us
> >> an error - the linestring must contain 0 or > 1 nodes.
> >>
> >
> > I think I understand the problem but I'm having a hard time understanding
> > the context :) Could you maybe provide a simple example and/or a
> > step-by-step guide to reproduce this? Like the osmosis command line you're
> > using, the kind of data you're trying to put in the database - that would be
> > very helpful.
> >
> > Regards
> > Igor
> >

> _______________________________________________
> osmosis-dev mailing list
> osmosis-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osmosis-dev


-- 
Jochen Topf  jochen at remote.org  http://www.remote.org/jochen/  +49-721-388298




More information about the osmosis-dev mailing list