[osmosis-dev] Error when importing partial data with missing nodes into postgres
Paul Balomiri
paulbalomiri at gmail.com
Tue Jun 2 19:58:30 BST 2009
Hi Brett,
first of, I must thank you for the great project you released to the
community.
second :) :
I have here a partial country dataset. Trying o import it with --wp
(lastest svn version) works only if all nodes referenced are available.
This problem shows up when linestring calculations are turned on for
the postgres import (it might be an issue for bbox too, but it did not
show up in my case).
The attached patch proposes just logging and skipping the missing
Nodes, instead of not building a geometry at all.( Perhaps logging is
too much noise ?)
The changeset in WayMapper resolves a nullpointer issue, when a
geometry is null.
PGgeometry(null) throws a nullpointer exception. It might be more
appropiate to change the constructor of PGeometry, but
I cannot assess the implications of such change in behaviour myself.
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: referenced_inexisting_nodes_wp0.6.patch
Type: application/octet-stream
Size: 2539 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20090602/ae688466/attachment.obj>
-------------- next part --------------
More information about the osmosis-dev
mailing list