Looks like an issue between ANSI and Unicode strings (in the MSVC
sense, i.e. single- vs multibyte strings).

How did you compile things? Build everything (including boost) from
source? What VS project files do you use?


On Tue, Apr 5, 2011 at 2:51 AM, William Johnston <[email protected]> wrote:
> I'm using VS 2010 and Mapnik 0.7.1 and compiling to 32 bits.
>
> When I run rundemo.exe I get this:
>
> Z:\SoftwareDevelopment\c++\Mapnik\Release>a
> Z:\SoftwareDevelopment\c++\Mapnik\ma
> pnik-0.7.1\lib\mapnik
> running demo ...
> looking for 'shape.input' plugin in...
> Z:\SoftwareDevelopment\c++\Mapnik\mapnik
> -0.7.1\lib\mapnik/input/
> looking for DejaVuSans font in...
> Z:\SoftwareDevelopment\c++\Mapnik\mapnik-0.7.
> 1\lib\mapnik/fonts/DejaVuSans.ttf
> ### Configuration error: Failed to parse filter expression:
> rundemo Z:\SoftwareDevelopment
> Parsing aborted at 'r'
>
> It's trying to parse the command line. If I change rundemo.exe to a.exe and
> rerun it I get:
>
> Z:\SoftwareDevelopment\c++\Mapnik\Release>a
> Z:\SoftwareDevelopment\c++\Mapnik\ma
> pnik-0.7.1\lib\mapnik
> running demo ...
> looking for 'shape.input' plugin in...
> Z:\SoftwareDevelopment\c++\Mapnik\mapnik
> -0.7.1\lib\mapnik/input/
> looking for DejaVuSans font in...
> Z:\SoftwareDevelopment\c++\Mapnik\mapnik-0.7.
> 1\lib\mapnik/fonts/DejaVuSans.ttf
> here### Configuration error: Failed to parse filter expression:
> a Z:\SoftwareDevelopment\c++\M
> Parsing aborted at 'a'
>
> The error is caused by this line:
> provpoly_rule_on.set_filter("[NAME_EN] = 'Ontario'");
>
> My understanding is that it is supposed to be parsing "[NAME_EN] =
> 'Ontario'" rather than the run command.
>
> If I change the line to be these two lines:
>
> std::string test("[NAME_EN] = 'Ontario'");
> provpoly_rule_on.set_filter(create_filter(test));
>
> I get:
> Z:\SoftwareDevelopment\c++\Mapnik\Release>Mapnik C:\mapnik-0.7.1\lib\mapnik
> running demo ...
> looking for 'shape.input' plugin in...
> Z:\SoftwareDevelopment\c++\Mapnik\mapnik
> -0.7.1\lib\mapnik/input/
> looking for DejaVuSans font in...
> C:\mapnik-0.7.1\lib\mapnik/fonts/DejaVuSans.t
> tf
> ### Configuration error: Failed to parse filter expression:
> ،n
>
> Even weirder.
>
> The peer line in rundemo.py works fine.
>
> This error make no logical sense. My current thinking is that there is
> something wrong with mapnik.dll
> or mapnik.lib.
>
> Does anyone have any experience with this?
>
>
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users
>
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to