Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Global data are data or services available for online or download. 

Database setup

Global data that are downlodaded is stored in a database with he name Globalmap prepared for spatial tables

Weave configuration

Common configuration for "Open Global Data".

The XML code to incuded in Weave  config.xml

Code Block
languagexml
themeDJango
titleconfig.xml
collapsetrue
<!-- globalmap -->
<?include config_globalmap/globalmap.xml?>

Includes the configuration for GADM

Code Block
languagexml
themeDJango
titleglobalmap.xml
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>

<config xmlns=          "urn:com.cohga.server.config#1.0"
	xmlns:xsi=      "http://www.w3.org/2001/XMLSchema-instance"
	xmlns:xsd=      "http://www.w3.org/2001/XMLSchema"

<?include globalmap_ds_localhost.xml?>
<?include globalmap_gadm.xml?>
<?include globalmap_geonames.xml?>

<!-- resources -->
<?include resources/locale_input_text_en.xml?>
<?include resources/locale_input_text_sv.xml?>
<?include resources/locale_input_text_no.xml?>
<?include resources/locale_input_text_es.xml?>
 
</config>

Database and spatial connections

Code Block
languagexml
themeDJango
titleglobalmap_ds_localhost.xml
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>

<config xmlns=          "urn:com.cohga.server.config#1.0"
	xmlns:cache=    "urn:com.cohga.server.cache#1.0"
	xmlns:acl=      "urn:com.cohga.server.acl#1.0"
	xmlns:pool=     "urn:com.cohga.server.pool#1.0"
	xmlns:options=  "urn:com.cohga.server.options#1.0"
	xmlns:parameter="urn:com.cohga.server.parameter#1.0"
	xmlns:search=   "urn:com.cohga.server.search.database#1.0"
	xmlns:birt=     "urn:com.cohga.server.report.birt#1.0"
	xmlns:data=     "urn:com.cohga.server.data.database#1.0"
	xmlns:entity=   "urn:com.cohga.server.entity#1.0"
	xmlns:jdbc=     "urn:com.cohga.server.datasource.jdbc#1.0"
	xmlns:arcgisws= "urn:com.cohga.server.map.arcgis.ws#1.0"
	xmlns:arcims=   "urn:com.cohga.server.map.arcims#1.0"
	xmlns:mapper=   "urn:com.cohga.server.spatial.mapper#1.0"
	xmlns:spatial=  "urn:com.cohga.server.spatial.geotools#1.0"
	xmlns:index=    "urn:com.cohga.server.index#1.0"
	xmlns:toc=      "urn:com.cohga.server.map.toc#1.0"
	xmlns:client=   "urn:com.cohga.html.client#1.0"
	xmlns:xsi=      "http://www.w3.org/2001/XMLSchema-instance"
	xmlns:xsd=      "http://www.w3.org/2001/XMLSchema"
	xmlns:wms =     "urn:com.cohga.server.map.wms#1.0"
	xmlns:edit=     "urn:com.cohga.spatial.edit#1.0">


   
	<jdbc:datasource id="ds.globalmap">
		<driver>org.postgresql.Driver</driver>
		<url><![CDATA[jdbc:postgresql://localhost:5432/globalmap]]></url>
		<username>postgres</username>
		<password>ENCFXPGFUMFKCAPPGQJFPKPAQTEBFTBJXZP</password>
		<encrypted>true</encrypted>
		<pool:pool>
			<maxActive>16</maxActive> <!-- not used if whenExhaustedAction is grow -->
			<minIdle>2</minIdle>
			<maxIdle>2</maxIdle>
			<testOnBorrow>true</testOnBorrow>
			<timeBetweenEvictionRunsMillis>60000</timeBetweenEvictionRunsMillis>
			<minEvictableIdleTimeMillis>1200000</minEvictableIdleTimeMillis>
			<whenExhaustedAction>grow</whenExhaustedAction>
		</pool:pool>
	</jdbc:datasource>


   <spatial:spatialengine id="spatialengine.globalmap_gadm">
      <dbtype>postgis</dbtype>
      <host>localhost</host>
      <port>5432</port>
      <database>globalmap</database>
      <schema>gadm</schema>
      <user>postgres</user>
      <passwd><![CDATA[ENCFXPGFUMFKCAPPGQJFPKPAQTEBFTBJXZP]]></passwd>
	  <encrypted>true</encrypted>
      <minConnections>1</minConnections>
      <preparedStatements>true</preparedStatements>
   </spatial:spatialengine>
   
      <spatial:spatialengine id="spatialengine.globalmap_geonames">
      <dbtype>postgis</dbtype>
      <host>localhost</host>
      <port>5432</port>
      <database>globalmap</database>
      <schema>geonames</schema>
      <user>postgres</user>
      <passwd><![CDATA[ENCFXPGFUMFKCAPPGQJFPKPAQTEBFTBJXZP]]></passwd>
 	  <encrypted>true</encrypted>
     <minConnections>1</minConnections>
      <preparedStatements>true</preparedStatements>
   </spatial:spatialengine>
</config>

Resource files for gadm

Code Block
languagexml
themeDJango
titlelocale_input_text_en.xml
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns=          "urn:com.cohga.server.config#1.0"
				xmlns:xsi=      "http://www.w3.org/2001/XMLSchema-instance"
				xmlns:xsd=      "http://www.w3.org/2001/XMLSchema"
				xmlns:client=	"urn:com.cohga.html.client#1.0">

 
<!-- Exported Date/Time: 2015-07-13  09:18:10 -->
 
 
<client:resources >
 
<resource id="globalmap.gadm.name_0"><![CDATA[Base level:  Countries]]></resource> 
<resource id="globalmap.gadm.name_1"><![CDATA[Sub level 1]]></resource> 
<resource id="globalmap.gadm.name_2"><![CDATA[Sub level 2]]></resource> 
<resource id="globalmap.gadm.name_3"><![CDATA[Sub level 3]]></resource> 
<resource id="globalmap.gadm.search"><![CDATA[Administration areas]]></resource> 
<resource id="globalmap.gadm.entity"><![CDATA[Administration areas]]></resource> 
<resource id="globalmap.gadm.area_km2"><![CDATA[Area km2]]></resource> 
<resource id="globalmap.gadm.total_area"><![CDATA[Total area]]></resource> 
<resource id="globalmap.gadm.number_of"><![CDATA[Number of]]></resource> 
<resource id="globalmap.gadm.area_per_country"><![CDATA[Area per country]]></resource> 
<resource id="globalmap.gadm.area_per_name_1"><![CDATA[Area per sub level 1]]></resource> 
<resource id="globalmap.global_data"><![CDATA[Global data]]></resource> 
<resource id="globalmap.geonames.entity"><![CDATA[Places]]></resource> 
<resource id="globalmap.geonames.entity"><![CDATA[Places]]></resource> 
<resource id="globalmap.geonames.name"><![CDATA[Name]]></resource> 
<resource id="globalmap.geonames.category"><![CDATA[Category]]></resource> 
<resource id="globalmap.geonames.type"><![CDATA[Type]]></resource> 
<resource id="globalmap.geonames.population"><![CDATA[Populated place]]></resource> 
 
</client:resources> 
</config> 
Code Block
languagexml
themeDJango
titlelocale_input_text_sv.xml
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns=          "urn:com.cohga.server.config#1.0"
				xmlns:xsi=      "http://www.w3.org/2001/XMLSchema-instance"
				xmlns:xsd=      "http://www.w3.org/2001/XMLSchema"
				xmlns:client=	"urn:com.cohga.html.client#1.0">

 
<!-- Exported Date/Time: 2015-07-13  09:18:10 -->
 
 
<client:resources lang="sv">
 
<resource id="globalmap.gadm.name_0"><![CDATA[Grundnivå: Länder]]></resource> 
<resource id="globalmap.gadm.name_1"><![CDATA[Undernivå 1]]></resource> 
<resource id="globalmap.gadm.name_2"><![CDATA[Undernivå 2]]></resource> 
<resource id="globalmap.gadm.name_3"><![CDATA[Undernivå 3]]></resource> 
<resource id="globalmap.gadm.search"><![CDATA[Administrationområden]]></resource> 
<resource id="globalmap.gadm.entity"><![CDATA[Administrationområden]]></resource> 
<resource id="globalmap.gadm.area_km2"><![CDATA[Området km2]]></resource> 
<resource id="globalmap.gadm.total_area"><![CDATA[Total area]]></resource> 
<resource id="globalmap.gadm.number_of"><![CDATA[Antal]]></resource> 
<resource id="globalmap.gadm.area_per_country"><![CDATA[Areal per land]]></resource> 
<resource id="globalmap.gadm.area_per_name_1"><![CDATA[Område per undernivå 1]]></resource> 
<resource id="globalmap.global_data"><![CDATA[Globala data]]></resource> 
<resource id="globalmap.geonames.entity"><![CDATA[Platser]]></resource> 
<resource id="globalmap.geonames.entity"><![CDATA[Platser]]></resource> 
<resource id="globalmap.geonames.name"><![CDATA[Namn]]></resource> 
<resource id="globalmap.geonames.category"><![CDATA[Kategori]]></resource> 
<resource id="globalmap.geonames.type"><![CDATA[Typ]]></resource> 
<resource id="globalmap.geonames.population"><![CDATA[Befolkade plats]]></resource> 
 
</client:resources> 
</config> 
Code Block
languagexml
themeDJango
titlelocale_input_text_no.xml
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns=          "urn:com.cohga.server.config#1.0"
				xmlns:xsi=      "http://www.w3.org/2001/XMLSchema-instance"
				xmlns:xsd=      "http://www.w3.org/2001/XMLSchema"
				xmlns:client=	"urn:com.cohga.html.client#1.0">

 
<!-- Exported Date/Time: 2015-07-13  09:18:10 -->
 
 
<client:resources lang="no">
 
<resource id="globalmap.gadm.name_0"><![CDATA[Basenivå: Land]]></resource> 
<resource id="globalmap.gadm.name_1"><![CDATA[Subnivå 1]]></resource> 
<resource id="globalmap.gadm.name_2"><![CDATA[Subnivå 2]]></resource> 
<resource id="globalmap.gadm.name_3"><![CDATA[Subnivå 3]]></resource> 
<resource id="globalmap.gadm.search"><![CDATA[Administrasjonområder]]></resource> 
<resource id="globalmap.gadm.entity"><![CDATA[Administrasjonområder]]></resource> 
<resource id="globalmap.gadm.area_km2"><![CDATA[Området km2]]></resource> 
<resource id="globalmap.gadm.total_area"><![CDATA[Totalt areal]]></resource> 
<resource id="globalmap.gadm.number_of"><![CDATA[Antall]]></resource> 
<resource id="globalmap.gadm.area_per_country"><![CDATA[Areal per land]]></resource> 
<resource id="globalmap.gadm.area_per_name_1"><![CDATA[Areal per subnivå 1]]></resource> 
<resource id="globalmap.global_data"><![CDATA[Globalt data]]></resource> 
<resource id="globalmap.geonames.entity"><![CDATA[Steder]]></resource> 
<resource id="globalmap.geonames.entity"><![CDATA[Steder]]></resource> 
<resource id="globalmap.geonames.name"><![CDATA[Navn]]></resource> 
<resource id="globalmap.geonames.category"><![CDATA[Kategori]]></resource> 
<resource id="globalmap.geonames.type"><![CDATA[Type]]></resource> 
<resource id="globalmap.geonames.population"><![CDATA[Befolket sted]]></resource> 
 
</client:resources>
</config> 
Code Block
languagexml
themeDJango
titlelocale_input_text_es.xml
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns=          "urn:com.cohga.server.config#1.0"
				xmlns:xsi=      "http://www.w3.org/2001/XMLSchema-instance"
				xmlns:xsd=      "http://www.w3.org/2001/XMLSchema"
				xmlns:client=	"urn:com.cohga.html.client#1.0">

 
<!-- Exported Date/Time: 2015-07-13  09:18:10 -->
 
 
<client:resources lang="es">
 
<resource id="globalmap.gadm.name_0"><![CDATA[Nivel de base: Países]]></resource> 
<resource id="globalmap.gadm.name_1"><![CDATA[Sub nivel 1]]></resource> 
<resource id="globalmap.gadm.name_2"><![CDATA[Sub nivel 2]]></resource> 
<resource id="globalmap.gadm.name_3"><![CDATA[Sub nivel 3]]></resource> 
<resource id="globalmap.gadm.search"><![CDATA[Áreas de la Administración]]></resource> 
<resource id="globalmap.gadm.entity"><![CDATA[Áreas de la Administración]]></resource> 
<resource id="globalmap.gadm.area_km2"><![CDATA[Km2 de la zona]]></resource> 
<resource id="globalmap.gadm.total_area"><![CDATA[Área total]]></resource> 
<resource id="globalmap.gadm.number_of"><![CDATA[Número de]]></resource> 
<resource id="globalmap.gadm.area_per_country"><![CDATA[Superficie por país]]></resource> 
<resource id="globalmap.gadm.area_per_name_1"><![CDATA[Superficie por subnivel 1]]></resource> 
<resource id="globalmap.global_data"><![CDATA[Los datos globales]]></resource> 
<resource id="globalmap.geonames.entity"><![CDATA[Lugares]]></resource> 
<resource id="globalmap.geonames.entity"><![CDATA[Lugares]]></resource> 
<resource id="globalmap.geonames.name"><![CDATA[Nombre]]></resource> 
<resource id="globalmap.geonames.category"><![CDATA[Categoría]]></resource> 
<resource id="globalmap.geonames.type"><![CDATA[Tipo]]></resource> 
<resource id="globalmap.geonames.population"><![CDATA[Lugar poblado]]></resource> 
 
</client:resources> 
</config>