[osmosis-dev] Single node ways
Jochen Topf
jochen at remote.org
Fri Nov 16 14:49:41 GMT 2012
On Wed, Nov 14, 2012 at 10:33:43PM +1100, Brett Henderson wrote:
> Jochen Topf was the one who originally introduced the checks in
> WayGeometryBuilder to ensure a Way contained at least two nodes. He might
> have some thoughts on whether we can remove the checks. Perhaps it was
> simply introduced to avoid the additional overheads of having to do
> st_isvalid() checks?
I don't remember doing that but it might well have been me, I guess Brett
looked at the svn log, so I believe him. :-)
Doing checks later in the database is much more expensive so it makes sense to
do them in Osmosis. But that doesn't work when you want to update the database
later, of course. But you have to take into account that for almost everything
you want to do with the geometries you'll get no end of problems if you have
the occasional bad geometry in there.
This discussion here highlights again the fact that there is no
once-size-fits-all solution for storing OSM data in a database. It very much
depends on what you are doing whether and when you want to check for geometry
problems.
Jochen
--
Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298
More information about the osmosis-dev
mailing list