This is likely a bug in TileCache:
http://openlayers.org/pipermail/tilecache/2010-January/002205.html

Thanks,
Bjørn

2010/1/17 Rahkonen Jukka <[email protected]>:
> Hi,
>
> Unfortunately ogrinfo report looks totally OK to me.
>
> -Jukka-
>
>
> -----Alkuperäinen viesti-----
> Lähettäjä: Bjørn Sandvik [mailto:[email protected]]
> Lähetetty: la 16.1.2010 19:50
> Vastaanottaja: [email protected]; Rahkonen Jukka
> Aihe: Re: [Mapnik-users] Problem with spherical mercator at one zoom level
>
> ogrinfo -summary -al countries_point_lonlat_sorted.shp
>
> INFO: Open of `countries_point_lonlat_sorted.shp'
>      using driver `ESRI Shapefile' successful.
>
> Layer name: countries_point_lonlat_sorted
> Geometry: Point
> Feature Count: 198
> Extent: (-175.185000, -42.634000) - (179.219000, 64.764000)
> Layer SRS WKT:
> (unknown)
> name: String (254.0)
> iso2: String (254.0)
> iso3: String (254.0)
> un: Real (16.6)
> fips: String (254.0)
> lon: Real (16.6)
> lat: Real (16.6)
> area: Real (16.6)
> pop2005: Real (16.6)
> nor: String (254.0)
> swe: String (254.0)
> dan: String (254.0)
> fin: String (254.0)
> ice: String (254.0)
>
> Bjørn
>
>
> 2010/1/16 Rahkonen Jukka <[email protected]>:
>> Hi,
>>
>> Perhaps something odd with coordinates or extents.  What does "ogrinfo 
>> -summary -al" report about the shapefiles?
>>
>> -Jukka Rahkonen-
>>
>> Bjørn Sandvik wrote:
>>
>>> 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
>>
>>
>>
>
>
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to