Hi,

to solve this problem, you must render images bigger than your tile size. I use this settings:

Map size = 768 x 768 px
Image size = 768 x 768 px
Tile size = 256 x 256 px

and to save the image, I create a view, with:

img = Image( 768, 768 )
render( map, img )
view = im.view( 256, 256, 256, 256 ) # x,y,width,height
view.save( 'central_tile', 'png' )

The process is slower, but solve this problem.

BRUNO CAPONI

>I was using avoid_edges, which used to work great. I'm having the same
>problem. Has anyone else noticed this parameter has stopped working?
>
>-rorie
>
>>Aron Bierbaum wrote:
>> I have been using Mapnik to render tile images of roads and I am
>> running into an interesting problem. I think know that Mapnik must
>> have a solution to the problem, but I can't seem to find the right
>> setting. The problem is that when I render two different tiles they
>> could have highway shields show up at different locations. And in the
>> worst case even on the edge of the image. I have tried to use the
>> avoid_edge setting to address this, but with no luck. Also I have
>> tried to use TileCache to render metatiles that are much larger and
>> then cut these larger images up. Does anyone have suggestions to what
>> I should be trying?
>>
>> Thanks,
>> Aron Bierbaum
>> _______________________________________________
>> 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