~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to gis/dhis-gis-geostat/demos/geostat/config.js

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// SHAPE FILES
 
2
 
 
3
choropleth1 = '../../../geoserver/wfs?request=GetFeature&typename=who:admin0&outputformat=json&version=1.0.0'; // country
 
4
choropleth2 = '../../../geoserver/wfs?request=GetFeature&typename=who:admin1&outputformat=json&version=1.0.0'; // provinces
 
5
choropleth3 = '../../../geoserver/wfs?request=GetFeature&typename=who:admin2&outputformat=json&version=1.0.0'; // districts
 
6
choropleth4 = '../../../geoserver/wfs?request=GetFeature&typename=who:admin3&outputformat=json&version=1.0.0'; // chiefdoms
 
7
 
 
8
shapefiles = new Array(choropleth1, choropleth2, choropleth3, choropleth4);
 
9
 
 
10
shpcols = {
 
11
    1: [ { type: "Province", name: "NAME", geocode: "NAME", value: "value" } ],
 
12
    2: [ { type: "District", name: "NAME", geocode: "NAME", value: "value", parent1: "ADM1_NAME" } ],
 
13
    3: [ { type: "Chiefdom", name: "CHIEFDOM", geocode: "CHIEFDOM", value: "value", parent1: "PROVINCE", parent2: "DISTRICT" } ],
 
14
    4: [ { type: "Org. unit", name: "name", geocode: "ID", value: "value", parent1: "PROVINCE", parent2: "DISTRICT", parent3: "CHIEFDOM" } ]
 
15
};
 
16
 
 
17
pointLayer = 4; // the shpcols point layer number
 
18
 
 
19
 
 
20
// TOMCAT PORT
 
21
 
 
22
localhost_port = 8180;
 
23
 
 
24