OpenStreetMap logo OpenStreetMap

Setting up Mapnik

Posted by Steve Hill on 4 March 2008 in English.

I've been trying to set up Mapnik, but I've hit a problem...

Trying to import the coastlines with shp2pgsql gives me errors:

INSERT INTO "shoreline_a" ("error","tile_x","tile_y",way) VALUES ('0','17','286','SRID=900913;0106000000010000000103000000010000000200000000000060307C71C1522159370A6F604100000060307C71C1522159370A6F6041');
ERROR: geometry requires more points

Followed by lots of:

ERROR: current transaction is aborted, commands ignored until end of transaction block

This is running under CentOS 5.1 with postgis-1.3.2-1.el5.rf - can't see any useful references to this error in Google though. :(

Discussion

Comment from TomH on 4 March 2008 at 11:21

That's normal - there are always some broken bits of shoreline that cause errors like that. You should still find that most of it has imported, or I did at least.

Log in to leave a comment