Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No import any nodes where id>type integer #14

Closed
denny123 opened this issue Feb 19, 2013 · 5 comments
Closed

No import any nodes where id>type integer #14

denny123 opened this issue Feb 19, 2013 · 5 comments

Comments

@denny123
Copy link

No import any nodes where id>type integer in table planet_osm_nodes.id and planet_osm_ways.nodes. After changed type INTEGER -> NUMERIC show error:

PREPARE node_changed_mark(int4) AS UPDATE planet_osm_ways SET pending = true WHERE nodes && ARRAY[$1] AND NOT pending;
failed: ERROR: operator does not exist: numeric[] && integer[]
LINE 1: ...TE planet_osm_ways SET pending = true WHERE nodes && ARRAY[$...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.

@lonvia
Copy link
Collaborator

lonvia commented Feb 19, 2013

Did you build your osm2pgsql with 64bit id space? If you check the osm2pgsql version you should see something like this:

me@machine:~$ ./osm2pgsql/osm2pgsql
osm2pgsql SVN version 0.81.0 (64bit id space)

Recent versions of the source code will build in 64bit mode automatically, older ones still need ./configure --enable-64bit-ids.

@denny123
Copy link
Author

opengeo@opengeo:~$ osm2pgsql
osm2pgsql SVN version 0.70.5
How configure in 64bit?

@lonvia
Copy link
Collaborator

lonvia commented Feb 19, 2013

This version is far too old. Check out the current source code here from github and build your own version. You can find some hints about the required dependencies in the wiki.

@denny123
Copy link
Author

svn co http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/
cd osm2pgsql/
./autogen.sh
./configure (without --enable-64bit-ids)
make
opengeo@opengeo:~/write/osm2pgsql$ ./osm2pgsql
osm2pgsql SVN version 0.81.0 (64bit id space)
Thank you!

@lonvia
Copy link
Collaborator

lonvia commented Feb 20, 2013

There was a bug in the configure script. Just fixed that, --enable-64bit-ids should work now too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants