The geotools DataStoreFinder
expects a Map
of properties, including mainly the connectivity information, depending on the store.
For the PostGIS plugin this includes the dbtype
(which must be "postgis"
) and the database host, port, schema, database, username and password.
http://docs.geotools.org/stable/userguide/library/jdbc/postgis.html
In my application, there are other tables which are being accessed using Spring Data (JPA Repositories / Hibernate and Hibernate Spatial).
Is there a way to make the PostGIS connection information to use the standard JEE DataSource
that is injected by Spring? This way I won't have to duplicate the configuration to the same database and do custom property handling.