GeoServer DataStore Configuration for Complex Features

Document Information
Document ID: 
imp2009-003
Implementation Type: 
Server

This XML file configures a directory as a DataStore in GeoServer. Instead of containing explicitly the information GeoServer needs to make a connection to actual data, it invokes the app-schema extension and forwards us on to a "mapping file", described elsewhere.

The id element contains GeoServer's internal identifier for this datastore

The name element contains the human-readable name of the datastore

The workspace element contains a reference to the id of the workspace to which this datastore belongs

the connectionParameters element contains three important entries:

 

entry key="namespace": The URI of the namespace appropriate for this datastore

entry key="url": File path to the mapping file for this datastore. Path is relative to the geoserver\data directory

entry key="dbtype": Must read "app-schema" in order to initialize the app-schema extension

 


 

<dataStore>

      <id>gsml_GeologicUnit_datastore</id>

      <name>gsml_GeologicUnit</name>

      <enabled>true</enabled>

      <workspace>

            <id>gsml_workspace</id>

      </workspace>

      <connectionParameters>

            <entry key="namespace">urn:cgi:xmlns:CGI:GeoSciML:2.0</entry>

            <entry key="url">file:workspaces/gsml/gsml_GeologicUnit/gsml_GeologicUnit.xml</entry>

            <entry key="dbtype">app-schema</entry>

      </connectionParameters>

</dataStore>


Implementation Documents Type Applications Description Document #sort icon Posted by Update Average Rating
A Sample GeoServer Mapping file for NCGMP09 to GeoSciML Server GeoServer This is a snippet from a GeoServer/App-schema mapping file. The type mapping section is where you indicate what fields... imp2009-005 Ryan Clark 09/18/2009 - 3:23pm
3
GeoServer FeatureType Configuration Server GeoServer This XML document tells GeoServer to treat a datastore as a featuretype -- that is, provide it as a featuretype that... imp2009-006 Ryan Clark 09/18/2009 - 3:01pm
3
Related Community Groups
Troubleshooting Web Service Deployment - Blog | 5 Posts | Join
This blog is for documenting our group's experiences with web service deployment.