post /workspaces/{workspaceName}/appschemastores/{storeName}/cleanSchemas
post /workspaces/{workspaceName}/appschemastores/{storeName}/datastores/{internalStoreId}/cleanSchemas
delete /workspaces/{workspaceName}/datastores/{storeName}/{method}.{format}
delete /workspaces/{workspaceName}/datastores/{storeName}
delete /workspaces/{workspaceName}/datastores
get /workspaces/{workspaceName}/datastores/{storeName}
get /workspaces/{workspaceName}/datastores/{storeName}/{method}.{format}
get /workspaces/{workspaceName}/datastores
post /workspaces/{workspaceName}/datastores/{storeName}/{method}.{format}
post /workspaces/{workspaceName}/datastores/{storeName}
post /workspaces/{workspaceName}/datastores
put /workspaces/{workspaceName}/datastores/{storeName}/{method}.{format}
put /workspaces/{workspaceName}/datastores/{storeName}
put /workspaces/{workspaceName}/datastores
post /workspaces/{workspaceName}/appschemastores/{storeName}/rebuildMongoSchemas
post /workspaces/{workspaceName}/appschemastores/{storeName}/datastores/{internalStoreId}/rebuildMongoSchemas
post /workspaces/{workspaceName}/appschemastores/{storeName}/cleanSchemas
text/plain
post /workspaces/{workspaceName}/appschemastores/{storeName}/datastores/{internalStoreId}/cleanSchemas
text/plain
delete /workspaces/{workspaceName}/datastores/{storeName}/{method}.{format}
delete /workspaces/{workspaceName}/datastores/{storeName}
delete /workspaces/{workspaceName}/datastores
get /workspaces/{workspaceName}/datastores/{storeName}
"\n sf \n true \n \n sf \n \n \n \n file:data/sf \n http://www.openplans.org/spearfish \n \n <__default>false\n \n \n \n \n"
"{\"dataStore\":{\"name\":\"sf\",\"enabled\":true,\"workspace\":{\"name\":\"sf\",\"href\":\"http://localhost:8080/geoserver/rest/workspaces/sf.json\"},\"connectionParameters\":{\"entry\":[{\"@key\":\"url\",\"$\":\"file:data/sf\"},{\"@key\":\"namespace\",\"$\":\"http://www.openplans.org/spearfish\"}]},\"_default\":false,\"featureTypes\":\"http://localhost:8080/geoserver/rest/workspaces/sf/datastores/sf/featuretypes.json\"}}\n"
application/xml
application/json
text/html
sf
true
sf
file:data/sf
http://www.openplans.org/spearfish
<__default>false
{"dataStore":{"name":"sf","enabled":true,"workspace":{"name":"sf","href":"http://localhost:8080/geoserver/rest/workspaces/sf.json"},"connectionParameters":{"entry":[{"@key":"url","$":"file:data/sf"},{"@key":"namespace","$":"http://www.openplans.org/spearfish"}]},"_default":false,"featureTypes":"http://localhost:8080/geoserver/rest/workspaces/sf/datastores/sf/featuretypes.json"}}
get /workspaces/{workspaceName}/datastores/{storeName}/{method}.{format}
get /workspaces/{workspaceName}/datastores
"\n sf \n \n \n"
"{\"dataStores\":{\"dataStore\":[{\"name\":\"sf\",\"href\":\"http://localhost:8080/geoserver/rest/workspaces/sf/datastores/sf.json\"}]}}\n"
application/xml
application/json
text/html
sf
{"dataStores":{"dataStore":[{"name":"sf","href":"http://localhost:8080/geoserver/rest/workspaces/sf/datastores/sf.json"}]}}
post /workspaces/{workspaceName}/datastores/{storeName}/{method}.{format}
post /workspaces/{workspaceName}/datastores/{storeName}
post /workspaces/{workspaceName}/datastores
application/xml
application/json
The data store body information to upload.
The contents of the connection parameters will differ depending on the type of data store being added.
GeoPackage
Examples:
application/xml:
<dataStore>
<name>nyc</name>
<connectionParameters>
<database>file:///path/to/nyc.gpkg</database>
<dbtype>geopkg</dbtype>
</connectionParameters>
</dataStore>
application/json:
{
"dataStore": {
"name": "nyc",
"connectionParameters": {
"entry": [
{"@key":"database","$":"file:///path/to/nyc.gpkg"},
{"@key":"dbtype","$":"geopkg"}
]
}
}
}
Connection Parameters:
| key | description | level | type | required | default |
| --- | ----------- | ----- | ---- | -------- | ------- |
| Primary key metadata table | The optional table containing primary key structure and sequence associations. Can be expressed as 'schema.name' or just 'name' | user | String | False | |
| Callback factory | Name of JDBCReaderCallbackFactory to enable on the data store | user | String | False |
|
| Evictor tests per run | number of connections checked by the idle connection evictor for each of its runs (defaults to 3) | user | Integer | False |
3
|
| database | Database | user | File | True | |
| Batch insert size | Number of records inserted in the same batch (default, 1). For optimal performance, set to 100. | user | Integer | False |
1
|
| fetch size | number of records read with each interaction with the DBMS | user | Integer | False | 1000
|
| Connection timeout | number of seconds the connection pool will wait before timing out attempting to get a new connection (default, 20 seconds) | user | Integer | False | 20
|
| namespace | Namespace prefix | user | String | False | |
| max connections | maximum number of open connections | user | Integer | False |
10
|
| Test while idle | Periodically test the connections are still valid also while idle in the pool | user | Boolean | False | True
|
| Max connection idle time | number of seconds a connection needs to stay idle for the evictor to consider closing it | user | Integer | False | 300
|
| Session startup SQL | SQL statement executed when the connection is grabbed from the pool | user | String | False | |
| validate connections | check connection is alive before using it | user | Boolean | False |
True
|
| dbtype | Type | program | String | True | geopkg
|
| passwd | password used to login | user | String | False | |
| Expose primary keys | Expose primary key columns as attributes of the feature type | user | Boolean | False |
False
|
| min connections | minimum number of pooled connections | user | Integer | False | 1
|
| Evictor run periodicity | number of seconds between idle object evictor runs (default, 300 seconds) | user | Integer | False | 300
|
| Session close-up SQL | SQL statement executed when the connection is released to the pool | user | String | False | |
| user | user name to login as | user | String | False |
|
PostGIS
Examples:
application/xml:
<dataStore>
<name>nyc</name>
<connectionParameters>
<host>localhost</host>
<port>5432</port>
<database>nyc</database>
<user>bob</user>
<passwd>postgres</passwd>
<dbtype>postgis</dbtype>
</connectionParameters>
</dataStore>
application/json:
{
"dataStore": {
"name": "nyc",
"connectionParameters": {
"entry": [
{"@key":"host","$":"localhost"},
{"@key":"port","$":"5432"},
{"@key":"database","$":"nyc"},
{"@key":"user","$":"bob"},
{"@key":"passwd","$":"postgres"},
{"@key":"dbtype","$":"postgis"}
]
}
}
}
Connection Parameters:
| key | description | level | type | required | default |
| --- | ----------- | ----- | ---- | -------- | ------- |
| Connection timeout | number of seconds the connection pool will wait before timing out attempting to get a new connection (default, 20 seconds) | user | Integer | False | 20
|
| validate connections | check connection is alive before using it | user | Boolean | False | True
|
| port | Port | user | Integer | True | 5432
|
| Primary key metadata table | The optional table containing primary key structure and sequence associations. Can be expressed as 'schema.name' or just 'name' | user | String | False | |
| Support on the fly geometry simplification | When enabled, operations such as map rendering will pass a hint that will enable the usage of ST_Simplify | user | Boolean | False |
True
|
| create database | Creates the database if it does not exist yet | advanced | Boolean | False | False
|
| create database params | Extra specifications appended to the CREATE DATABASE command | advanced | String | False | `` |
| dbtype | Type | program | String | True | postgis
|
| Batch insert size | Number of records inserted in the same batch (default, 1). For optimal performance, set to 100. | user | Integer | False | 1
|
| namespace | Namespace prefix | user | String | False | |
| Max connection idle time | number of seconds a connection needs to stay idle for the evictor to consider closing it | user | Integer | False |
300
|
| Session startup SQL | SQL statement executed when the connection is grabbed from the pool | user | String | False | |
| Expose primary keys | Expose primary key columns as attributes of the feature type | user | Boolean | False |
False
|
| min connections | minimum number of pooled connections | user | Integer | False | 1
|
| Max open prepared statements | Maximum number of prepared statements kept open and cached for each connection in the pool. Set to 0 to have unbounded caching, to -1 to disable caching | user | Integer | False | 50
|
| Callback factory | Name of JDBCReaderCallbackFactory to enable on the data store | user | String | False | |
| passwd | password used to login | user | String | False |
|
| encode functions | set to true to have a set of filter functions be translated directly in SQL. Due to differences in the type systems the result might not be the same as evaluating them in memory, including the SQL failing with errors while the in memory version works fine. However this allows us to push more of the filter into the database, increasing performance of the postgis table. | advanced | Boolean | False |
False
|
| host | Host | user | String | True | localhost
|
| Evictor tests per run | number of connections checked by the idle connection evictor for each of its runs (defaults to 3) | user | Integer | False | 3
|
| Loose bbox | Perform only primary filter on bbox | user | Boolean | False | True
|
| Evictor run periodicity | number of seconds between idle object evictor runs (default, 300 seconds) | user | Integer | False | 300
|
| Estimated extends | Use the spatial index information to quickly get an estimate of the data bounds | user | Boolean | False | True
|
| database | Database | user | String | False | |
| fetch size | number of records read with each interaction with the DBMS | user | Integer | False |
1000
|
| Test while idle | Periodically test the connections are still valid also while idle in the pool | user | Boolean | False | True
|
| max connections | maximum number of open connections | user | Integer | False | 10
|
| preparedStatements | Use prepared statements | user | Boolean | False | False
|
| Session close-up SQL | SQL statement executed when the connection is released to the pool | user | String | False | |
| schema | Schema | user | String | False |
public
|
| user | user name to login as | user | String | True | |
Shapefile
Examples:
application/xml:
<dataStore>
<name>nyc</name>
<connectionParameters>
<url>file:/path/to/nyc.shp</url>
</connectionParameters>
</dataStore>
application/json:
{
"dataStore": {
"name": "nyc",
"connectionParameters": {
"entry": [
{"@key":"url","$":"file:/path/to/nyc.shp"}
]
}
}
}
Connection Parameters:
| key | description | level | type | required | default |
| --- | ----------- | ----- | ---- | -------- | ------- |
| cache and reuse memory maps | only memory map a file one, then cache and reuse the map | advanced | Boolean | False | True
|
| namespace | URI to the namespace | advanced | URI | False | |
| filetype | Discriminator for directory stores | program | String | False |
shapefile
|
| charset | character used to decode strings from the DBF file | advanced | Charset | False | ISO-8859-1
|
| create spatial index | enable/disable the automatic creation of spatial index | advanced | Boolean | False | True
|
| fstype | Enable using a setting of 'shape'. | advanced | String | False | shape
|
| url | url to a .shp file | user | URL | True | |
| enable spatial index | enable/disable the use of spatial index for local shapefiles | advanced | Boolean | False |
True
|
| memory mapped buffer | enable/disable the use of memory-mapped IO | advanced | Boolean | False | False
|
| timezone | time zone used to read dates from the DBF file | advanced | TimeZone | False | Pacific Standard Time
|
Directory of spatial files (shapefiles)
Examples:
application/xml:
<dataStore>
<name>nyc</name>
<connectionParameters>
<url>file:/path/to/directory</url>
</connectionParameters>
</dataStore>
application/json:
{
"dataStore": {
"name": "nyc",
"connectionParameters": {
"entry": [
{"@key":"url","$":"file:/path/to/directory"}
]
}
}
}
Connection Parameters:
| key | description | level | type | required | default |
| --- | ----------- | ----- | ---- | -------- | ------- |
| cache and reuse memory maps | only memory map a file one, then cache and reuse the map | advanced | Boolean | False | True
|
| namespace | URI to the namespace | advanced | URI | False | |
| filetype | Discriminator for directory stores | program | String | False |
shapefile
|
| charset | character used to decode strings from the DBF file | advanced | Charset | False | ISO-8859-1
|
| create spatial index | enable/disable the automatic creation of spatial index | advanced | Boolean | False | True
|
| fstype | Enable using a setting of 'shape'. | advanced | String | False | shape
|
| url | url to a .shp file | user | URL | True | |
| enable spatial index | enable/disable the use of spatial index for local shapefiles | advanced | Boolean | False |
True
|
| memory mapped buffer | enable/disable the use of memory-mapped IO | advanced | Boolean | False | False
|
| timezone | time zone used to read dates from the DBF file | advanced | TimeZone | False | Pacific Standard Time
|
Web Feature Service
Examples:
application/xml:
<dataStore>
<name>nyc</name>
<connectionParameters>
<GET_CAPABILITIES_URL>http://localhost:8080/geoserver/wfs?request=GetCapabilities</GET_CAPABILITIES_URL>
</connectionParameters>
</dataStore>
application/json:
{
"dataStore": {
"name": "nyc",
"connectionParameters": {
"entry": [
{"@key":"GET_CAPABILITIES_URL","$":"http://localhost:8080/geoserver/wfs?request=GetCapabilities"}
]
}
}
}
Connection Parameters:
| key | description | level | type | required | default |
| --- | ----------- | ----- | ---- | -------- | ------- |
| Protocol | Sets a preference for the HTTP protocol to use when requesting WFS functionality. Set this value to Boolean.TRUE for POST, Boolean.FALSE for GET or NULL for AUTO | user | Boolean | False | |
| WFS GetCapabilities URL | Represents a URL to the getCapabilities document or a server instance. | user | URL | False |
|
| Buffer Size | This allows the user to specify a buffer size in features. This param has a default value of 10 features. | user | Integer | False |
10
|
| Filter compliance | Level of compliance to WFS specification (0-low,1-medium,2-high) | user | Integer | False | |
| EntityResolver | Sets the entity resolver used to expand XML entities | program | EntityResolver | False |
org.geotools.xml.PreventLocalEntityResolver@75e98519
|
| Time-out | This allows the user to specify a timeout in milliseconds. This param has a default value of 3000ms. | user | Integer | False | 3000
|
| GmlComplianceLevel | Optional OGC GML compliance level required. | user | Integer | False | 0
|
| Lenient | Indicates that datastore should do its best to create features from the provided data even if it does not accurately match the schema. Errors will be logged but the parsing will continue if this is true. Default is false | user | Boolean | False | False
|
| Password | This allows the user to specify a username. This param should not be used without the USERNAME param. | user | String | False | |
| Use Default SRS | Use always the declared DefaultSRS for requests and reproject locally if necessary | advanced | Boolean | False |
False
|
| Namespace | Override the original WFS type name namespaces | advanced | String | False | |
| Username | This allows the user to specify a username. This param should not be used without the PASSWORD param. | user | String | False |
|
| Axis Order Filter | Indicates axis order used by the remote WFS server for filters. It applies only to WFS 1.x.0 servers. Default is the same as AXIS_ORDER | advanced | String | False |
|
| GmlCompatibleTypeNames | Use Gml Compatible TypeNames (replace : by _). | user | Boolean | False |
False
|
| Maximum features | Positive integer used as a hard limit for the number of Features to retrieve for each FeatureType. A value of zero or not providing this parameter means no limit. | user | Integer | False | 0
|
| Axis Order | Indicates axis order used by the remote WFS server in result coordinates. It applies only to WFS 1.x.0 servers. Default is Compliant | advanced | String | False | Compliant
|
| WFS Strategy | Override WFS strategy with either cubwerx, ionic, mapserver, geoserver, strict, nonstrict or arcgis strategy. | user | String | False | auto
|
| Try GZIP | Indicates that datastore should use gzip to transfer data if the server supports it. Default is true | user | Boolean | False | True
|
| Encoding | This allows the user to specify the character encoding of the XML-Requests sent to the Server. Defaults to UTF-8 | user | String | False | UTF-8
|
| Outputformat | This allows the user to specify an output format, different from the default one. | advanced | String | False | |
aeiou
""
application/xml
application/json
text/html
put /workspaces/{workspaceName}/datastores/{storeName}/{method}.{format}
put /workspaces/{workspaceName}/datastores/{storeName}
application/xml
application/json
The updated data store definition. For a PUT, only values which should be changed need to be included. The connectionParameters map counts as a single value, so if you change it all pre-existing connection parameters will be overwritten.
The contents of the connection parameters will differ depending on the type of data store being added.
GeoPackage
Examples:
application/xml:
<dataStore>
<description>A data store</description>
<enabled>true</enabled>
<__default>true</__default>
<connectionParameters>
<database>file:///path/to/nyc.gpkg</database>
</connectionParameters>
</dataStore>
application/json:
{
"dataStore": {
"description": "A data store",
"enabled": "true",
"_default": "true",
"connectionParameters": {
"entry": [
{"@key":"database","$":"file:///path/to/nyc.gpkg"},
]
}
}
}
Connection Parameters:
| key | description | level | type | required | default |
| --- | ----------- | ----- | ---- | -------- | ------- |
| Primary key metadata table | The optional table containing primary key structure and sequence associations. Can be expressed as 'schema.name' or just 'name' | user | String | False | |
| Callback factory | Name of JDBCReaderCallbackFactory to enable on the data store | user | String | False |
|
| Evictor tests per run | number of connections checked by the idle connection evictor for each of its runs (defaults to 3) | user | Integer | False |
3
|
| database | Database | user | File | True | |
| Batch insert size | Number of records inserted in the same batch (default, 1). For optimal performance, set to 100. | user | Integer | False |
1
|
| fetch size | number of records read with each interaction with the DBMS | user | Integer | False | 1000
|
| Connection timeout | number of seconds the connection pool will wait before timing out attempting to get a new connection (default, 20 seconds) | user | Integer | False | 20
|
| namespace | Namespace prefix | user | String | False | |
| max connections | maximum number of open connections | user | Integer | False |
10
|
| Test while idle | Periodically test the connections are still valid also while idle in the pool | user | Boolean | False | True
|
| Max connection idle time | number of seconds a connection needs to stay idle for the evictor to consider closing it | user | Integer | False | 300
|
| Session startup SQL | SQL statement executed when the connection is grabbed from the pool | user | String | False | |
| validate connections | check connection is alive before using it | user | Boolean | False |
True
|
| dbtype | Type | program | String | True | geopkg
|
| passwd | password used to login | user | String | False | |
| Expose primary keys | Expose primary key columns as attributes of the feature type | user | Boolean | False |
False
|
| min connections | minimum number of pooled connections | user | Integer | False | 1
|
| Evictor run periodicity | number of seconds between idle object evictor runs (default, 300 seconds) | user | Integer | False | 300
|
| Session close-up SQL | SQL statement executed when the connection is released to the pool | user | String | False | |
| user | user name to login as | user | String | False |
|
PostGIS
Examples:
application/xml:
<dataStore>
<description>A data store</description>
<enabled>true</enabled>
<__default>true</__default>
<connectionParameters>
<host>localhost</host>
<port>5432</port>
<database>nyc</database>
<user>bob</user>
<passwd>postgres</passwd>
</connectionParameters>
</dataStore>
application/json:
{
"dataStore": {
"description": "A data store",
"enabled": "true",
"_default": "true",
"connectionParameters": {
"entry": [
{"@key":"host","$":"localhost"},
{"@key":"port","$":"5432"},
{"@key":"database","$":"nyc"},
{"@key":"user","$":"bob"},
{"@key":"passwd","$":"postgres"},
]
}
}
}
Connection Parameters:
| key | description | level | type | required | default |
| --- | ----------- | ----- | ---- | -------- | ------- |
| Connection timeout | number of seconds the connection pool will wait before timing out attempting to get a new connection (default, 20 seconds) | user | Integer | False | 20
|
| validate connections | check connection is alive before using it | user | Boolean | False | True
|
| port | Port | user | Integer | True | 5432
|
| Primary key metadata table | The optional table containing primary key structure and sequence associations. Can be expressed as 'schema.name' or just 'name' | user | String | False | |
| Support on the fly geometry simplification | When enabled, operations such as map rendering will pass a hint that will enable the usage of ST_Simplify | user | Boolean | False |
True
|
| create database | Creates the database if it does not exist yet | advanced | Boolean | False | False
|
| create database params | Extra specifications appended to the CREATE DATABASE command | advanced | String | False | `` |
| dbtype | Type | program | String | True | postgis
|
| Batch insert size | Number of records inserted in the same batch (default, 1). For optimal performance, set to 100. | user | Integer | False | 1
|
| namespace | Namespace prefix | user | String | False | |
| Max connection idle time | number of seconds a connection needs to stay idle for the evictor to consider closing it | user | Integer | False |
300
|
| Session startup SQL | SQL statement executed when the connection is grabbed from the pool | user | String | False | |
| Expose primary keys | Expose primary key columns as attributes of the feature type | user | Boolean | False |
False
|
| min connections | minimum number of pooled connections | user | Integer | False | 1
|
| Max open prepared statements | Maximum number of prepared statements kept open and cached for each connection in the pool. Set to 0 to have unbounded caching, to -1 to disable caching | user | Integer | False | 50
|
| Callback factory | Name of JDBCReaderCallbackFactory to enable on the data store | user | String | False | |
| passwd | password used to login | user | String | False |
|
| encode functions | set to true to have a set of filter functions be translated directly in SQL. Due to differences in the type systems the result might not be the same as evaluating them in memory, including the SQL failing with errors while the in memory version works fine. However this allows us to push more of the filter into the database, increasing performance of the postgis table. | advanced | Boolean | False |
False
|
| host | Host | user | String | True | localhost
|
| Evictor tests per run | number of connections checked by the idle connection evictor for each of its runs (defaults to 3) | user | Integer | False | 3
|
| Loose bbox | Perform only primary filter on bbox | user | Boolean | False | True
|
| Evictor run periodicity | number of seconds between idle object evictor runs (default, 300 seconds) | user | Integer | False | 300
|
| Estimated extends | Use the spatial index information to quickly get an estimate of the data bounds | user | Boolean | False | True
|
| database | Database | user | String | False | |
| fetch size | number of records read with each interaction with the DBMS | user | Integer | False |
1000
|
| Test while idle | Periodically test the connections are still valid also while idle in the pool | user | Boolean | False | True
|
| max connections | maximum number of open connections | user | Integer | False | 10
|
| preparedStatements | Use prepared statements | user | Boolean | False | False
|
| Session close-up SQL | SQL statement executed when the connection is released to the pool | user | String | False | |
| schema | Schema | user | String | False |
public
|
| user | user name to login as | user | String | True | |
Shapefile
Examples:
application/xml:
<dataStore>
<description>A data store</description>
<enabled>true</enabled>
<__default>true</__default>
<connectionParameters>
<url>file:/path/to/nyc.shp</url>
</connectionParameters>
</dataStore>
application/json:
{
"dataStore": {
"description": "A data store",
"enabled": "true",
"_default": "true",
"connectionParameters": {
"entry": [
{"@key":"url","$":"file:/path/to/nyc.shp"}
]
}
}
}
Connection Parameters:
| key | description | level | type | required | default |
| --- | ----------- | ----- | ---- | -------- | ------- |
| cache and reuse memory maps | only memory map a file one, then cache and reuse the map | advanced | Boolean | False | True
|
| namespace | URI to the namespace | advanced | URI | False | |
| filetype | Discriminator for directory stores | program | String | False |
shapefile
|
| charset | character used to decode strings from the DBF file | advanced | Charset | False | ISO-8859-1
|
| create spatial index | enable/disable the automatic creation of spatial index | advanced | Boolean | False | True
|
| fstype | Enable using a setting of 'shape'. | advanced | String | False | shape
|
| url | url to a .shp file | user | URL | True | |
| enable spatial index | enable/disable the use of spatial index for local shapefiles | advanced | Boolean | False |
True
|
| memory mapped buffer | enable/disable the use of memory-mapped IO | advanced | Boolean | False | False
|
| timezone | time zone used to read dates from the DBF file | advanced | TimeZone | False | Pacific Standard Time
|
Directory of spatial files (shapefiles)
Examples:
application/xml:
<dataStore>
<description>A data store</description>
<enabled>true</enabled>
<__default>true</__default>
<connectionParameters>
<url>file:/path/to/directory</url>
</connectionParameters>
</dataStore>
application/json:
{
"dataStore": {
"description": "A data store",
"enabled": "true",
"_default": "true",
"connectionParameters": {
"entry": [
{"@key":"url","$":"file:/path/to/directory"}
]
}
}
}
Connection Parameters:
| key | description | level | type | required | default |
| --- | ----------- | ----- | ---- | -------- | ------- |
| cache and reuse memory maps | only memory map a file one, then cache and reuse the map | advanced | Boolean | False | True
|
| namespace | URI to the namespace | advanced | URI | False | |
| filetype | Discriminator for directory stores | program | String | False |
shapefile
|
| charset | character used to decode strings from the DBF file | advanced | Charset | False | ISO-8859-1
|
| create spatial index | enable/disable the automatic creation of spatial index | advanced | Boolean | False | True
|
| fstype | Enable using a setting of 'shape'. | advanced | String | False | shape
|
| url | url to a .shp file | user | URL | True | |
| enable spatial index | enable/disable the use of spatial index for local shapefiles | advanced | Boolean | False |
True
|
| memory mapped buffer | enable/disable the use of memory-mapped IO | advanced | Boolean | False | False
|
| timezone | time zone used to read dates from the DBF file | advanced | TimeZone | False | Pacific Standard Time
|
Web Feature Service
Examples:
application/xml:
<dataStore>
<description>A data store</description>
<enabled>true</enabled>
<__default>true</__default>
<connectionParameters>
<GET_CAPABILITIES_URL>http://localhost:8080/geoserver/wfs?request=GetCapabilities</GET_CAPABILITIES_URL>
</connectionParameters>
</dataStore>
application/json:
{
"dataStore": {
"description": "A data store",
"enabled": "true",
"_default": "true",
"connectionParameters": {
"entry": [
{"@key":"GET_CAPABILITIES_URL","$":"http://localhost:8080/geoserver/wfs?request=GetCapabilities"}
]
}
}
}
Connection Parameters:
| key | description | level | type | required | default |
| --- | ----------- | ----- | ---- | -------- | ------- |
| Protocol | Sets a preference for the HTTP protocol to use when requesting WFS functionality. Set this value to Boolean.TRUE for POST, Boolean.FALSE for GET or NULL for AUTO | user | Boolean | False | |
| WFS GetCapabilities URL | Represents a URL to the getCapabilities document or a server instance. | user | URL | False |
|
| Buffer Size | This allows the user to specify a buffer size in features. This param has a default value of 10 features. | user | Integer | False |
10
|
| Filter compliance | Level of compliance to WFS specification (0-low,1-medium,2-high) | user | Integer | False | |
| EntityResolver | Sets the entity resolver used to expand XML entities | program | EntityResolver | False |
org.geotools.xml.PreventLocalEntityResolver@75e98519
|
| Time-out | This allows the user to specify a timeout in milliseconds. This param has a default value of 3000ms. | user | Integer | False | 3000
|
| GmlComplianceLevel | Optional OGC GML compliance level required. | user | Integer | False | 0
|
| Lenient | Indicates that datastore should do its best to create features from the provided data even if it does not accurately match the schema. Errors will be logged but the parsing will continue if this is true. Default is false | user | Boolean | False | False
|
| Password | This allows the user to specify a username. This param should not be used without the USERNAME param. | user | String | False | |
| Use Default SRS | Use always the declared DefaultSRS for requests and reproject locally if necessary | advanced | Boolean | False |
False
|
| Namespace | Override the original WFS type name namespaces | advanced | String | False | |
| Username | This allows the user to specify a username. This param should not be used without the PASSWORD param. | user | String | False |
|
| Axis Order Filter | Indicates axis order used by the remote WFS server for filters. It applies only to WFS 1.x.0 servers. Default is the same as AXIS_ORDER | advanced | String | False |
|
| GmlCompatibleTypeNames | Use Gml Compatible TypeNames (replace : by _). | user | Boolean | False |
False
|
| Maximum features | Positive integer used as a hard limit for the number of Features to retrieve for each FeatureType. A value of zero or not providing this parameter means no limit. | user | Integer | False | 0
|
| Axis Order | Indicates axis order used by the remote WFS server in result coordinates. It applies only to WFS 1.x.0 servers. Default is Compliant | advanced | String | False | Compliant
|
| WFS Strategy | Override WFS strategy with either cubwerx, ionic, mapserver, geoserver, strict, nonstrict or arcgis strategy. | user | String | False | auto
|
| Try GZIP | Indicates that datastore should use gzip to transfer data if the server supports it. Default is true | user | Boolean | False | True
|
| Encoding | This allows the user to specify the character encoding of the XML-Requests sent to the Server. Defaults to UTF-8 | user | String | False | UTF-8
|
| Outputformat | This allows the user to specify an output format, different from the default one. | advanced | String | False | |
put /workspaces/{workspaceName}/datastores
post /workspaces/{workspaceName}/appschemastores/{storeName}/rebuildMongoSchemas
text/plain
post /workspaces/{workspaceName}/appschemastores/{storeName}/datastores/{internalStoreId}/rebuildMongoSchemas
text/plain
datastore
- datastore Up