Hi Warren and Artem Thanks for your effort. Same result after adding "+over" to SRS. I'm using Mapnik 0.6.1 from the win32 binaries. I'll move to 0.7.0 binaries when its released.
Thanks, Bjørn 2010/1/16 Warren Vick <[email protected]>: > I'm using FME to reproject, but otherwise same set-up. Here's my SRS: > > +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 +nadgri...@null +no_defs +over > > I recall something important about the "+over" but confess I've forgotten > what it does. Perhaps worth a try! > > Regards, > Warren > > -----Original Message----- > From: Bjørn Sandvik [mailto:[email protected]] > Sent: 16 January 2010 12:18 PM > To: [email protected]; Warren Vick > Subject: Re: [Mapnik-users] Problem with spherical mercator at one zoom level > > Hi, > > I'm facing the same problem after converting the shapefile to > spherical mercator with ogr2ogr: > ogr2ogr -t_srs EPSG:900913 -s_srs EPSG:4326 > countries_point_lonlat_sorted_merc.shp > countries_point_lonlat_sorted.shp > > Projection used in mapnik xml: > <Layer name="Country Labels" srs="+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 > +nadgri...@null"> > > I've also tried different shapefiles. Same result. I'm using TileCache > to pre-generate the tiles. > > Bjørn > > > 2010/1/16 Warren Vick <[email protected]>: >> Hello Bjørn, >> >> I had similar issues when first working with Mapnik. The only solution I >> found was to convert all my data to spherical Mercator, rather than try to >> work with a mix. No problems since. >> >> Regards, >> Warren >> >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] On Behalf Of Bjørn Sandvik >> Sent: 15 January 2010 9:42 PM >> To: [email protected] >> Subject: [Mapnik-users] Problem with spherical mercator at one zoom level >> >> Hi, >> >> I'm experiencing a strange error with Mapnik rendering labels from a point >> shapefile. For zoom level 1 only labels on the southern hemisphere (the two >> bottom tiles) are rendered - see the image attachment. The other zoom levels >> are rendered correctly. It works when using standard latitude/longitide >> projection (EPSG:4326), but not "spherical mercator". >> >> tilecache.cfg >> >> [country_labels2] >> type=Mapnik >> mapfile=C:\EarthAtlas\maps\merc_country_labels2.xml >> spherical_mercator=true >> metaTile=true >> metaBuffer=50 >> metaSize=2,2 >> >> merc_country_labels2.xml >> >> <?xml version="1.0" encoding="utf-8"?> >> <!DOCTYPE Map> >> <Map srs="+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 +nadgri...@null"> >> <Style name="country_labels"> >> <Rule> >> <TextSymbolizer name="nor" face_name="DejaVu Sans Book" size="8" >> wrap_width="50" fill="black" halo_fill="white" halo_radius="1" dy="0" >> dx="0" vertical_alignment="middle" allow_overlap="false"/> >> </Rule> >> </Style> >> <Layer name="Cities" srs="+proj=latlong +datum=WGS84"> >> <StyleName>country_labels</StyleName> >> <Datasource> >> <Parameter name="encoding">latin1</Parameter> >> <Parameter name="type">shape</Parameter> >> <Parameter >> name="file">originals/countries_point_lonlat_sorted/countries_point_lonlat_sorted</Parameter> >> </Datasource> >> </Layer> >> </Map> >> >> I've also tried to reproject the shapefile before rendering the tiles >> - but the error was still there. >> >> Anyone else who have experienced this problem? >> >> Cheers, >> Bjørn >> >> http://blog.thematicmapping.org >> > _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

