Export a list of rendered features?

13 views
Skip to first unread message

stefan...@googlemail.com

unread,
Jun 26, 2017, 7:12:30 AM6/26/17
to mapnik
Hi everyone,

I'm rendering postgres data (e.g. town names) using mapnik 3.0.13 and nik4.py which uses python bindings. I installed the python bindings via 'pip install mapnik'.
Now I want to obtain a list of all towns, that were rendered and appear on the map.

In the Map object, is there somewhere stored which features of a layer are rendered or are omitted due to collisions?

I only found a list of all features in the datasource: m.layers[0].datasource.featureset().features after calling mapnik.render(m, im, scale_factor). But there seems to be no information if the features really appear on the map.

Thanks,

Stefan
Reply all
Reply to author
Forward
0 new messages