[Mapbender_dev] Writing tests for GeoJSON to GML converter
Christoph Baudson
christoph.baudson at wheregroup.com
Thu Sep 30 06:15:09 EDT 2010
Hello list,
is there anyone willing to write unit tests for the GeoJSON to GML
converter?
Due to a problem in trunk, I added a test case for donut polygons and
GML2, see [1]. 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 GML2.
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.
Christoph
[1]
http://trac.osgeo.org/mapbender/browser/trunk/mapbender/test/http/classes/Gml2FactoryTest.php
--
********************************************
INTERGEO 2010
05.-07. Oktober 2010 in Köln
Halle 11.2, Stand 2C.121
www.intergeo.de
********************************************
----------------------------------
Aufwind durch Wissen!
Qualifizierte OpenSource-Schulungen
bei der www.foss-academy.eu
----------------------------------
_______________________________________
W h e r e G r o u p GmbH & Co. KG
Siemensstraße 8
53121 Bonn
Germany
Christoph Baudson
Anwendungsentwickler
Fon: +49 (0)228 / 90 90 38 - 15
Fax: +49 (0)228 / 90 90 38 - 11
christoph.baudson at wheregroup.com
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
_______________________________________
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
_______________________________________
More information about the Mapbender_dev
mailing list