You are viewing an old version of this content. View the current version.
Compare with Current
View Version History
« Previous
Version 2
Next »
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
<!-- globalmap -->
<?include config_globalmap/globalmap.xml?>
<?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>
<?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>