← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 43: Adding information to GIS user documentation of the production of GeoJSON files in EPSG 4326 (cur...

 

------------------------------------------------------------
revno: 43
committer: Jason Pickering <jason@jason-laptop>
branch nick: dhis2-docbook-docs
timestamp: Tue 2009-11-17 11:29:17 +0200
message:
  Adding information to GIS user documentation of the production of GeoJSON files in EPSG 4326 (currently required by client)
modified:
  src/docbkx/en/dhis2_gis_user_manual_en.xml


--
lp:~dhis2-documenters/dhis2/dhis2-docbook-docs
https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs

Your team DHIS 2 developers is subscribed to branch lp:~dhis2-documenters/dhis2/dhis2-docbook-docs.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs/+edit-subscription.
=== 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 @@
       <title>Production of GeoJSON files with Geoserver</title>
       <para>Geoserver is capable of outputting GeoJSON formats. If you have
       geoserver running someplace, you can execute the following query.</para>
-      <para><ulink url="http://localhost:8080/geoserver/wfs?request=GetFeature&amp;typename=who:zm_adm1&amp;outputformat=json";>http://localhost:8080/geoserver/wfs?request=GetFeature&amp;typename=who:zm_adm1&amp;outputformat=json</ulink></para>
+      <para><ulink url="http://localhost:8080/geoserver/ows?service=WFS&amp;version=1.0.0&amp;request=GetFeature&amp;typename=topp:states&amp;outputformat=json&amp;srs_name=EPSG:4326";>http://localhost:8080/geoserver/ows?service=WFS&amp;version=1.0.0&amp;request=GetFeature&amp;typename=topp:states&amp;outputformat=json&amp;srs_name=EPSG:4326</ulink></para>
+<para> 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). </para>
       <para>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
-      <parameter>who:zm_adm1</parameter>).</para>
+      <parameter>topp:states</parameter>).</para>
       <para>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:</para>
@@ -67,7 +69,7 @@
       to the destination geographical data file (following the naming
       convention described above) and
       <parameter>src_datasource_name</parameter> with the source geographical
-      data file.</para>
+      data file. Take note that you may need to specify input and output coordinate systems as described above.</para>
     </sect2>
     <sect2>
       <title>Copying files to the DHIS application</title>