mapbox / windows-builds

DEPRECATED! build scripts for mapnik dependencies, mapnik, node-mapnik, node, libosmiom, osmium-tool
38 stars 22 forks source link

PolygonSymbolizer doesn't work #32

Closed cboittin closed 9 years ago

cboittin commented 9 years ago

I installed the 64 bits build of mapnik given by @BergWerkGIS (thanks !) at https://mapnik.s3.amazonaws.com/dist/dev/mapnik-win-sdk-14.0-x64-v3.0.0-rc1-645-gfe01d52.7z following https://github.com/mapnik/mapnik-packaging/issues/188, and it seems to work with Python 2.7 64 bits (import works fine, at least).

However, when trying to run the example script (https://github.com/mapnik/mapnik/wiki/GettingStartedInPython), i get this error :

Traceback (most recent call last):
  File "mapnikTest.py", line 6, in <module>
    polygon_symbolizer = mapnik.PolygonSymbolizer(mapnik.Color('#f2eff9'))
Boost.Python.ArgumentError: Python argument types in
    PolygonSymbolizer.__init__(PolygonSymbolizer, Color)
did not match C++ signature:
    __init__(struct _object * __ptr64)

EDIT : Works in XML, so it's probably related to https://github.com/mapnik/mapnik-support/issues/22 ?

wilhelmberg commented 9 years ago

@cboittin Yes, this is currently broken.

"For now the recommendation is to only interface with Text labeling in Mapnik through XML and not via python bindings." https://github.com/mapnik/mapnik/issues/2225

alexchamberlain commented 8 years ago

Is this still the case? If so, is it worth adding that to https://github.com/mapnik/mapnik/wiki/GettingStartedInPython?