[OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4
Tom Taylor
tom at tomtaylor.co.uk
Sun Oct 4 15:14:34 BST 2009
On 4 Oct 2009, at 14:31, Jon Burgess wrote:
> Can you see which proj library cs2cs & osm2pgsql are using?
> Something like this:
This seems to be the equivalent tool on OS X:
$ otool -l /usr/local/bin/cs2cs |grep proj
name /usr/local/Cellar/proj/4.7.0/lib/libproj.0.dylib
(offset 24)
$ otool -l ./osm2pgsql |grep proj
name /usr/local/Cellar/proj/4.7.0/lib/libproj.0.dylib
(offset 24)
> Then if you feel like digging deeper to see what the code for each
> program does when asked to initialize the projections then collect the
> strace output:
>
> $ strace -o /tmp/osm2pgsql.txt -f osm2pgsql great_britain.osm.bz2
> $ strace -o /tmp/cs2cs.txt -f cs2cs +init=epsg:4326 +to
> +init=esri.extra:900913
>
> Then compares the output in cs2cs.txt vs osm2pgsql.txt. There will
> be a
> lot of information in there. Towards the end you should see it opening
> and reading various proj data files from /usr/share/proj (or similar).
Using dtruss, which is pretty much the same, to trace the execution -
they both just refer to the same library: /usr/local/Cellar/proj/4.7.0/
lib/libproj.0.dylib.
I guess I'll give up on it on OS X for the time being. I've got an
Ubuntu Virtual Machine here which is probably going to be a lot easier!
Thanks for your help Jon - much appreciated.
More information about the dev
mailing list