[Mapbender_dev] Writing tests for GeoJSON to GML converter
christoph at baudson.de
Thu Oct 7 14:22:59 EDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Christoph Baudson wrote:
> Christoph Baudson wrote:
>> Hello list,
>> is there anyone willing to write unit tests for the GeoJSON to GML
>> Due to a problem in trunk, I added a test case for donut polygons and
>> GML2, see . We could easily extend the coverage to all geometry
>> types (points, multipoints, lines, multilines, polygons, donut
>> polygons (done), multipolygons, donut multipolygons) in both GML2 and
>> GML3, we just need data. You could use the standard gui_digitize for
>> The process is simple: First, add a new test case for each geometry
>> type. Then digitize each geometry, and save it to the default
>> featuretype (edit_polygons, edit_lines, edit_points). You can get the
>> GeoJSON from Firebug. If saving succeeds, get the GML from the logs,
>> and validate against it.
>> If you have any questions, please let me know. It's a fairly easy task
>> and you can learn about PHPUnit this way.
> Jonas (intern at WhereGroup) has successfully added these tests to SVN.
> I will have to do a code review later on, but the tests are more or less
The code has been reviewed; all tests seem to be plausible now and pass.
Here's the changeset . The bug fixes have also been merged to the 2.6
> Thanks to Jonas for his work :-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Mapbender_dev