=== modified file 'src/docbkx/en/dhis2_gis_user_manual_en.xml' --- src/docbkx/en/dhis2_gis_user_manual_en.xml 2009-10-28 10:51:10 +0000 +++ src/docbkx/en/dhis2_gis_user_manual_en.xml 2009-11-17 09:29:17 +0000 @@ -41,11 +41,13 @@ Production of GeoJSON files with Geoserver Geoserver is capable of outputting GeoJSON formats. If you have geoserver running someplace, you can execute the following query. - http://localhost:8080/geoserver/wfs?request=GetFeature&typename=who:zm_adm1&outputformat=json + http://localhost:8080/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typename=topp:states&outputformat=json&srs_name=EPSG:4326 + Take note that you need to specify the spatial coordinate system. By defualt, Geoserver will return GeoJSON files with the format "long/lat" while +the DHIS mapping client expects the ordering of the coordinates in "lat/long" format. The expllicit declartaion of the spatial reference system will ensure that coordinates are returned in the proper order. At the time of writing, the DHIS mapping client does not support spatial reference systems other than EPSG 4326. If you are using Geoserver, the application will handle the reprojection from the native format of the geographical data to EPSG 4326. If you are using other methods as described below to generate the GeoJSON file, you will need to ensure that the GeoJSON output is set to EPSG 4326 (Geographical Lat/long). You will need to adjust the host destination if the machine is not your local machine as well as defining the actual layer in Geoserver which should be output to GeoJSON (in this case - who:zm_adm1). + topp:states). Upon execution of the URL, Geoserver will produce a GeoJSON file, and you will be asked to save it. Once it has finished downloading, rename the file following the suggested naming convention: @@ -67,7 +69,7 @@ to the destination geographical data file (following the naming convention described above) and src_datasource_name with the source geographical - data file. + data file. Take note that you may need to specify input and output coordinate systems as described above. Copying files to the DHIS application