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 <[email protected]>
> To: Igor Podolskiy <[email protected]>
> Cc: osmosis-dev <[email protected]>
> 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 <[email protected]>
> 
> > 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
> [email protected]
> http://lists.openstreetmap.org/listinfo/osmosis-dev


-- 
Jochen Topf  [email protected]  http://www.remote.org/jochen/  +49-721-388298


_______________________________________________
osmosis-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osmosis-dev

Reply via email to