[OSM-dev] Mapnik Q: enhance resolution?

Artem Pavlenko artem.mapnik at googlemail.com
Wed Mar 12 17:30:04 GMT 2008


On 12 Mar 2008, at 17:24, Artem Pavlenko wrote:

>
> On 12 Mar 2008, at 00:41, Tom Hughes wrote:
>
>> In message <6F7BBD13-FF02-4A41-B0B9-C3896CF92524 at gmail.com>
>>           Artem Pavlenko <artem.mapnik at googlemail.com> wrote:
>>
>>> On 9 Mar 2008, at 10:42, Tom Hughes wrote:
>>>
>>>>> Main problem with cairo - it is not reflected in Python bindings,
>>>>> yet.
>>>>>
>>>>> Should we have something like :
>>>>>
>>>>> agg = agg_renderer(m, im)
>>>>> agg.render()
>>>>>
>>>>>
>>>>> cairo = cairo_renderer(m,im)
>>>>> cairo.render()
>>>>>
>>>>> Ideas?
>>>>
>>>> I did look at this briefly - one issue is whether to wrap the cairo
>>>> surface object that is passed to the renderer using  
>>>> boost::python as
>>>> for everything else, or to use the existing cairo python bindings.
>>>
>>> Good point. How about supporting both?
>>
>> Well after several days doing battle with boost::python I seem to
>> have something that works (requires the Pycairo python bindings for
>> cairo) so I just committed python bindings for cairo rendering.
>
> Great! Thanks Tom! rundemo.py outputs nice pdf and svg on os x  
> 10.4. I'll give it a try on 64-bit ubuntu later on.

Couple things I noticed when viewing demo.svg in Inkscape :

1. Inkscape is extremely slow
2. two 'provinces' polygons are un-clipped and go far beyond drawing  
extent. Is there access to clipping in cairo (on vectors or in  
rasterizer? ) or this is something we need to fix ourselves?

Cheers
Artem
>
>>
>> Tom
>>
>> -- 
>> Tom Hughes (tom at compton.nu)
>> http://www.compton.nu/
>
> Artem
>
>





More information about the dev mailing list