Would also be nice to add some overlays and perhaps even some facility
data and coordinates, which would further illustrate both the drill
down and the value of two thematic layers for GIS.
I was also reminded of the usefulness of having a history of views for
GIS - should add it to the list of desired blueprints. For example,
after drilling down to a district, one would like to return to the map
of the country.
Knut
···
On Fri, Nov 5, 2010 at 11:25 AM, Ola Hodne Titlestad <olati@ifi.uio.no> wrote:
Thanks Jo.
I'd like to add that this demo is based on the 2.0.5 release and makes use
of:
- the in-database GIS (no external files needed as all coordinates are
stored together with the orgunits)
- jasper reports (designs done in iReport are available at launchpad
in http://bazaar.launchpad.net/~dhis2-devs-core/dhis2/trunk/files/head:/resources/jrxml/
- a combination of default, section, and custom forms for data entry
----------------------------------
Ola Hodne Titlestad (Mr)
HISP
Department of Informatics
University of Oslo
Mobile: +47 48069736
Home address: Vetlandsvn. 95B, 0685 Oslo, Norway. Googlemaps link
On 5 November 2010 10:47, Jo Størset <storset@gmail.com> wrote:
Hi,
just wanted to let you know that the demo finally has been updated with
the latest demo-db. Take a look at:
I have followed the steps for converting an ESRI shapefile to the JSON format as stored in the org unit table. I am having a difficulty because the boundaries have too many points to fit into the field. Is there a piece of software out there to replace two segments AB-BC with AC in order of area of ABC or length of AC? Or do we have to change the field type to accommodate the larger length (and is the performance degradation acceptable)?
There are several ways to achieve simplification (aka generalization)
of shape files.
I recommend using Mapshaper, which allows you to try out different
degrees of simplification. Usually up to 80-90% will work nicely. http://mapshaper.com/test/demo.html
Once you are happy, download the new .shp and .shx files, and then
make a copy of the original dbf file and name it the same as the
simlified shp file. Then use ogr2ogr to convert to GML, do the
renaming (ogr:Name) and import.
Knut
···
On Sun, Nov 7, 2010 at 9:36 PM, Friedman, Roger (CDC/CGH/DGHA) (CTR) <rdf4@cdc.gov> wrote:
I have followed the steps for converting an ESRI shapefile to the JSON
format as stored in the org unit table. I am having a difficulty because
the boundaries have too many points to fit into the field. Is there a piece
of software out there to replace two segments AB-BC with AC in order of area
of ABC or length of AC? Or do we have to change the field type to
accommodate the larger length (and is the performance degradation
acceptable)?
Also as Knut implies the procedure with the latest release is slightly
different than before. I am not sure it has been changed in the GIS
user manual?
There are also some nice examples here if you are using PostGIS directly
As you can seen, this algorithm significantly alters the topology of
the geometry. The Douglas-Peucker algorithm may result in invalid
geometries in some cases, but probably will not matter for thematic
maps anyway.
If you use ArcGIS, the "Integrate" tool can be useful for
simplification of polygons as well.
Regards,
Jason
···
On Sun, Nov 7, 2010 at 11:13 PM, Knut Staring <knutst@gmail.com> wrote:
On Sun, Nov 7, 2010 at 9:36 PM, Friedman, Roger (CDC/CGH/DGHA) (CTR) > <rdf4@cdc.gov> wrote:
I have followed the steps for converting an ESRI shapefile to the JSON
format as stored in the org unit table. I am having a difficulty because
the boundaries have too many points to fit into the field. Is there a piece
of software out there to replace two segments AB-BC with AC in order of area
of ABC or length of AC? Or do we have to change the field type to
accommodate the larger length (and is the performance degradation
acceptable)?
There are several ways to achieve simplification (aka generalization)
of shape files.
I recommend using Mapshaper, which allows you to try out different
degrees of simplification. Usually up to 80-90% will work nicely. http://mapshaper.com/test/demo.html
Once you are happy, download the new .shp and .shx files, and then
make a copy of the original dbf file and name it the same as the
simlified shp file. Then use ogr2ogr to convert to GML, do the
renaming (ogr:Name) and import.