[Live-demo] [OSGeo] #1751: Mapnik python demo error

OSGeo trac_osgeo at osgeo.org
Wed Jul 13 01:40:18 PDT 2016


#1751: Mapnik python demo error
-------------------------------------+----------------------------
 Reporter:  darkblueb                |       Owner:  live-demo@…
     Type:  defect                   |      Status:  new
 Priority:  normal                   |   Milestone:  OSGeoLive10.0
Component:  LiveDVD                  |  Resolution:
 Keywords:  mapnik, python, jupyter  |
-------------------------------------+----------------------------

Comment (by sebastic):

 Based on the demo code included in Mapnik
 ([https://github.com/mapnik/mapnik/blob/master/demo/python/rundemo.py#L161
 demo/python/rundemo.py]), the notebook code should probably be rewritten
 to:
 {{{
 line_symbolizer = mapnik.LineSymbolizer()
 line_symbolizer.stroke = mapnik.Color('green')
 line_symbolizer.stroke_width = 0.4
 rule.symbols.append(line_symbolizer)
 }}}

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1751#comment:3>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.


More information about the Live-demo mailing list