Jon,

Okay, thanks for looking into it!

To run the tests as-is you should download nik2img. From inside the  
unzipped test directory do:

wget http://mapnik-utils.googlecode.com/svn/trunk/desktop/nik2img/nik2img.py
export PATH=`pwd`:$PATH
chmod +x nik2img.py

... then
./run_tests.sh

Dane



On Oct 23, 2008, at 4:18 PM, Jon Burgess wrote:

> On Thu, 2008-10-23 at 15:42 -0700, Dane Springmeyer wrote:
>> Mapnik Users,
>>
>> I've run into a repeatable failure (on both mac 10.5 and Ubuntu 8.04)
>> of the mapnik Filter expression and have a test case.
>>
>>
>> You can download the test case as a zip archive from here:
>> http://mapnik-utils.googlecode.com/svn/trunk/sandbox/mapnik_filter_failure_test_case.zip
>>
>> Inside the zip archive are two shapefiles, two XML mapfiles, and a
>> test script.
>>
>> The run_test.sh script utilizes nik2img to generate a simple graphic
>> using each mapfile.
>>
>> The only difference between the mapfiles is that one points to a
>> 'states.shp' shapefile which mapnik renders fully green highlighting
>> the failure of the <Filter> expression, while the other points to
>> 'states_working.shp' which for me renders with states in shades of
>> green, blue or red, highlighting a working Filter on the [PEOPLE]
>> attribute.
>
> The test script isn't working for me, but doing a simple binary
> comparison between the files shows that only the dbf file are  
> different.
> We can discount the prj file since that is not read by Mapnik.
>
> If I dump the the two dbf files with dbfdump (from shapelib utilities)
> then the results are the same for the two files. The difference must  
> be
> in something very subtle like the padding bytes.
>
> It either needs some extra debug code in the Mapnik shapefile reader  
> to
> compare exactly what is read from the two files. Or if someone is
> familiar with the DBF format might be able to decode the differences
> byte-by-byte.
>
>       Jon
>
>
>
>

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to