Skip to content

Commit 25499e3

Browse files
committed
remove encoding=latin1 as shapefiles are UTF8 encoded
1 parent 435bb6d commit 25499e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demo/python/rundemo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33
#
44
#
@@ -55,7 +55,7 @@
5555

5656
provpoly_lyr = mapnik.Layer('Provinces')
5757
provpoly_lyr.srs = "+proj=lcc +ellps=GRS80 +lat_0=49 +lon_0=-95 +lat+1=49 +lat_2=77 +datum=NAD83 +units=m +no_defs"
58-
provpoly_lyr.datasource = mapnik.Shapefile(file=path.join(root,'../data/boundaries'), encoding='latin1')
58+
provpoly_lyr.datasource = mapnik.Shapefile(file=path.join(root,'../data/boundaries'))
5959

6060
# We then define a style for the layer. A layer can have one or many styles.
6161
# Styles are named, so they can be shared across different layers.
@@ -280,7 +280,7 @@
280280

281281
popplaces_lyr = mapnik.Layer('Populated Places')
282282
popplaces_lyr.srs = "+proj=lcc +ellps=GRS80 +lat_0=49 +lon_0=-95 +lat+1=49 +lat_2=77 +datum=NAD83 +units=m +no_defs"
283-
popplaces_lyr.datasource = mapnik.Shapefile(file=path.join(root,'../data/popplaces'),encoding='latin1')
283+
popplaces_lyr.datasource = mapnik.Shapefile(file=path.join(root,'../data/popplaces'))
284284

285285
popplaces_style = mapnik.Style()
286286
popplaces_rule = mapnik.Rule()

0 commit comments

Comments
 (0)