[OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4

2009-10-04 Thread Tom Taylor
Hi all, I'm trying to get an environment up and running for Mapnik on OS X 10.6. I'm using Postgres 8.4 and Postgis 1.4. I've compiled osm2pgsql, but whenever I attempt to import data I get the following: mu:~ tom$ osm2pgsql -m -d osm Downloads/great_britain.osm.bz2 osm2pgsql

Re: [OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4

2009-10-04 Thread Jon Burgess
On Sun, 2009-10-04 at 11:19 +0100, Tom Taylor wrote: Hi all, I'm trying to get an environment up and running for Mapnik on OS X 10.6. I'm using Postgres 8.4 and Postgis 1.4. I've compiled osm2pgsql, but whenever I attempt to import data I get the following: mu:~ tom$ osm2pgsql

Re: [OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4

2009-10-04 Thread Tom Taylor
On 4 Oct 2009, at 12:19, Jon Burgess wrote: Those error messages all come from reprojection.c which is trying to initialise the projection using the proj library. This should have nothing to do with postgres postgis. What version of proj are you using? Jon, thanks for helping out. I'm

Re: [OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4

2009-10-04 Thread Tom Hughes
On 04/10/09 12:19, Jon Burgess wrote: Can you try the following command which should project a point using a command line proj tool: $ echo 45 45 | cs2cs +proj=latlong +ellps=GRS80 +no_defs +to +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m

Re: [OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4

2009-10-04 Thread Lennard
Tom Hughes wrote: Well that certainly fails for me: Rel. 4.6.1, 21 August 2008 Worksforme Rel. 4.7.1, 23 September 2009 -- Lennard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev

Re: [OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4

2009-10-04 Thread Jon Burgess
On Sun, 2009-10-04 at 12:27 +0100, Tom Taylor wrote: On 4 Oct 2009, at 12:19, Jon Burgess wrote: Those error messages all come from reprojection.c which is trying to initialise the projection using the proj library. This should have nothing to do with postgres postgis. What version of

Re: [OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4

2009-10-04 Thread Tom Taylor
On 4 Oct 2009, at 13:16, Jon Burgess wrote: 4.7.1 does not exist @ http://download.osgeo.org/proj/ do you mean an SVN version? Sorry, yes, I downloaded proj-4.7.0.tar.gz, it just seems to identify itself as 4.7.1 in the version info in executable. $ echo 45 45 | cs2cs +init=epsg:4326 +to

Re: [OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4

2009-10-04 Thread Jon Burgess
On Sun, 2009-10-04 at 13:28 +0100, Tom Taylor wrote: On 4 Oct 2009, at 13:16, Jon Burgess wrote: 4.7.1 does not exist @ http://download.osgeo.org/proj/ do you mean an SVN version? Sorry, yes, I downloaded proj-4.7.0.tar.gz, it just seems to identify itself as 4.7.1 in the version

Re: [OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4

2009-10-04 Thread Tom Taylor
On 4 Oct 2009, at 13:49, Jon Burgess wrote: I updated the proj strings to match those in the 4.7.1 definition files in r17981. Can you see if those work for you now? Jon, I'm afraid not: $ ./osm2pgsql -d osm ~/Downloads/great_britain.osm.bz2 osm2pgsql SVN version 0.67-17981 Projection

Re: [OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4

2009-10-04 Thread Jon Burgess
On Sun, 2009-10-04 at 14:04 +0100, Tom Taylor wrote: On 4 Oct 2009, at 13:49, Jon Burgess wrote: I updated the proj strings to match those in the 4.7.1 definition files in r17981. Can you see if those work for you now? Jon, I'm afraid not: $ ./osm2pgsql -d osm

Re: [OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4

2009-10-04 Thread Tom Taylor
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) $

Re: [OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4

2009-10-04 Thread Dane Springmeyer
Tom, There are 10.6 ready binaries of the latest stable release of proj.4 available here: http://www.kyngchaos.com/software:frameworks I use this proj distribution on OSX frequently and have not had a problem. If you try this approach, just patch your osm2pgsql Makefile like so: Index:

Re: [OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4

2009-10-04 Thread Tom Taylor
On 4 Oct 2009, at 16:12, Dane Springmeyer wrote: There are 10.6 ready binaries of the latest stable release of proj.4 available here: http://www.kyngchaos.com/software:frameworks Thanks Dane, that did the trick. Not sure what was wrong with my proj. 4 installation. I'm importing Great

Re: [OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4

2009-10-04 Thread Greg Troxel
Despite what apple claimed, OS X 10.6 was a major change that flipped the default toolchain to making 64-bit (amd64) binaries by default instead of 32-bit (i386) binaries. pkgsrc (www.pkgsrc.org) recently added support to force 32-bit mode. It may be that you are having a mix of 32 and 64.