Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

mapnik Filer : multibyte encoding support (e.g. utf-8 or sjis ) #1153

Open
pockel opened this Issue · 0 comments

1 participant

@pockel

I have Japanese geo-spatial data in shalefile format.
In this shapefile, some attribute's name have Shift-jis encoding characters.
I could retrieve the attribute name and the values in Shift-jis by osgeo.ogr Python binding.
So I tried to make an image map from this shapefile and use mapnik's Filter function.
Then I recieved error messages as followings,

 File "../P265_sjis.py", line 18, in <module>
    rule.filter = mapnik.Filter("[**] = ' --'")
RuntimeError: Failed to parse filter expression:
[**] = '--'
Parsing aborted at '['

(**, and -- are Japanese in Shift-JIS or UTF-8. )

Please support to treat multibyte encoding in Filter function.

The shapefiles are available from following links.
For example, the attribute name contains "名称", and "行政コード" in AdmArea shapefile.
http://www.pockel.net/shapefile/AdmArea.dbf etc.
(These shapefile's content is of Shizuoka Prefecture of Japan, in 1/25000 scale.)
In addition of AdmArea, there are AdmBdry, AdmPt, BldA, Cntr, Cstline, ElvPt, RailCL, RdEdg, WL shapefiles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.