You are not logged in.

#1 2012-09-13 10:11:56

neouser
Member
Registered: 2012-09-13
Posts: 1

GpsDrive, DeprecationWarning: mapnik2 module has been deprecated

Hi, I am trying to set up GpsDrive on my system, but when I need to create a customized osm.xml file, I encountere this error:


/usr/lib/python2.7/site-packages/mapnik2/__init__.py:27: DeprecationWarning:  mapnik2 module has been deprecated,
        please use 'import mapnik'
  warnings.warn(msg, DeprecationWarning)

I am following this example:

cd ~/gis/osm/
   svn checkout http://svn.openstreetmap.org/applicatio … ing/mapnik
   cd mapnik
   #./generate_xml.py -h
   # in the following, replace "$(date '+%Y-%m-%d')" with the correct date
   # also replace "location" in location_osm.xml with the correct location
   python2 generate_xml.py osm.xml location_osm.xml --symbols ./symbols/ --world_boundaries ~/"gis/osm/world_boundaries [$(date '+%Y-%m-%d')]/world_boundaries/" --host localhost --user "gis" --dbname "location" --port 5432 --password "..."

Cannot find anything useful already posted, can you help me?

Thank you,

Marco

Offline

Board footer

Powered by FluxBB