GeoServer does not come built-in with support for SpatiaLite; it must be installed through an extension. Furthermore it requires that additional native libraries be available on the system. Proceed to Installing the SpatiaLite extension for installation details.
Installing the SpatiaLite extension¶
Download the SpatiaLite extension from the nightly GeoServer community module builds.
Make sure to match the version of the extension to the version of the GeoServer instance!
Extract the contents of the archive into the WEB-INF/lib directory of the GeoServer installation.
Adding a SpatiaLite database¶
Once the extension is properly installed SpatiaLite will show up as an option when creating a new data store.
Configuring a SpatiaLite data store¶
|database||The name of the database to connect to. See notes below.|
|schema||The database schema to access tables from. Optional.|
|user||The name of the user to connect to the database as. Optional.|
|password||The password to use when connecting to the database. Optional, leave blank for no password.|
|Connection pool configuration parameters. See the Database Connection Pooling section for details.|
The database parameter may be specified as an absolute path or a relative one. When specified as a relative path the database will created in the spatialite directory, located directly under the root of the GeoServer data directory.