fix shapefiles encoding in demo for C++
Mapnik builds without `boost_regex_icu` (see #3440) and the C++ demo does not run: ``` /mapnik# demo/c++/rundemo `mapnik-config --prefix` running demo ... ### std::exception: could not create converter for latin1 ```
This commit is contained in:
parent
efdc90f699
commit
503d4eaea1
1 changed files with 2 additions and 2 deletions
|
@ -230,7 +230,7 @@ int main ( int, char** )
|
|||
parameters p;
|
||||
p["type"]="shape";
|
||||
p["file"]="demo/data/boundaries";
|
||||
p["encoding"]="latin1";
|
||||
p["encoding"]="utf8";
|
||||
|
||||
layer lyr("Provinces");
|
||||
lyr.set_datasource(datasource_cache::instance().create(p));
|
||||
|
@ -295,7 +295,7 @@ int main ( int, char** )
|
|||
parameters p;
|
||||
p["type"]="shape";
|
||||
p["file"]="demo/data/popplaces";
|
||||
p["encoding"] = "latin1";
|
||||
p["encoding"] = "utf8";
|
||||
layer lyr("Populated Places");
|
||||
lyr.set_srs(srs_lcc);
|
||||
lyr.set_datasource(datasource_cache::instance().create(p));
|
||||
|
|
Loading…
Reference in a new issue