Hello list,

I'm playing with Mapnik and Mapnik 2 on the same machine and when I'm doing
some tests with mapnik_utils, I've have some errors due to mapnik default
version.

I'm launching tests from
http://mapnik-utils.googlecode.com/svn/trunk/nik2img/tests/using_nik2img.txtbut
the line below failed (it calls mapnik2)

>>> c =
Compose('tests/mapfile_lambert.xml',image='/tmp/8_bit.png',format='png256')

Changing it to

c =
Compose('tests/mapfile_lambert.xml',image='/tmp/8_bit.png',format='png256',mapnik_version
= '1')

change nothing. I always get "Must have face-name or fontset-name in
TextSymbolizer in style 'states_shp_labels' in map
'tests/mapfile_lambert.xml'"
I know the error is related to mapnik version of xml files

I try to force Mapnik version before importing any mapnik_utils module but
it don't change anything

from mapnik_utils.version_adapter import Mapnik
mapnik = Mapnik(options.mapnik_version)

So my question, is how to make working, in command line, the tests of the
previous
http://mapnik-utils.googlecode.com/svn/trunk/nik2img/tests/using_nik2img.txtwith
Mapnik 0.7.1?
It's annoying when you see, there is no problem with nik2img
--mapnik-version=1 ...........................
I've to reinstall mapnik_utils, to change some code, ...?

Any clue is welcome.

Regards

ThomasG
GIS specialist
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to