Hi, OK, nested holes, two point polygons (which usually have three coordinate pairs but only two points, a triangle like thing made from points A and B as A-B-A), self-intersections and other topology errors in the coastline polygon data were not the reason for my troubles.
My problems have obviously been just and only due to wrong bounding boxes being sent with the final queries towards the Datasources. This happens if datasource extents in the mapfile wrap the world like in this <Parameter name="extent">-20037508,-19929239,20037508,19929239</Parameter> I had corrected OSM data extents but left coast-poly extents as that was the reason why I did not get all the islands. It was a bit hard to notice because the mainland coastline polygon is so large that it intersected the also the wrong bounding box. The coastline polygon data is topologically not very clean. PostGIS found 11482 topological errors from the total processed_a table which I imported three days ago. That was partly leading me to wrong direction because my strict GIS client did not show me anything if the queried dataset had faulty geometries. I have deleted all faulty features from the Finnish coastline subset and now I can use coastline polygon data also with OpenJUMP which does not not tolerate as much errors as Quantum GIS. I have finally been able to create georeferenced maps with both complete OSM data and all the coastlines with nik2img.py, converted them further to various formats like GeoTIFF and .ozf format used by OziExplorer CE. Georeferencing is also accurate. To guarantee the success it is best to reproject the original data into the same projection as the desired output and make sure that the extents do not go across the dateline. Reprojecting is simple if data are in PostGIS. I did not study a lot what happens if data are in WGS84 projection. Thanks a lot for help, -Jukka Rahkonen- -----Alkuperäinen viesti----- Lähettäjä: Jon Burgess [mailto:[EMAIL PROTECTED] Lähetetty: su 2.11.2008 18:05 Vastaanottaja: Rahkonen Jukka Kopio: Mapnik users mailing-list Aihe: Re: [Mapnik-users] Nested coastline holes and Mapnik rendering On Sun, 2008-11-02 at 17:39 +0200, Rahkonen Jukka wrote: > Hi, > > I managed to find en error on the coastline data. Could this be a reason for > the Mapnik rendering issue I have had? > > postgis=# select count(*) from (select asbinary(way) as geom from (select way > from shoreline_a) as "coast-poly" where wa > y && setSRID('BOX3D(2796623.487632482 8414856.658170387,3648235.036730606 > 8450106.434262134)'::box3d,900913) and isvalid > (way)=true) as foo; > NOTICE: Holes are nested at or near point 3.49321e+006 8.42585e+006 > NOTICE: IllegalArgumentException: Number of points must be 0 or >3 > count > ------- > 291 > (1 row) Unlikely, but you can check this either by deleting them or fixing the bad geometries in the OSM data. Jon _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

