[postgis-users] newbie question about non closed rings
kneufeld at refractions.net
Wed Apr 15 08:39:29 PDT 2009
You could try snapping your geometries to a grid after they are in the database.
NOTICE: IllegalArgumentException: points must form a closed linestring
G. van Es wrote:
> The shapefile is created with software from Bentley.
> PostgreSQL is version 8.3.4 on Ubuntu
> PostGis is version 1.3
> I also see a difference between conversion as WKB and WKT (-w option). If I use shp2pgsql with the -w option there are far less records that fail.
> So can this be an issue with rounding up numbers? In WKT I see a tiny difference between some start and end points on failing records.
> And if so, is there a possibility to ignore those tiny differences?
> Thanks again,
More information about the postgis-users