Versions Compared

Key

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

...

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> 

...