Hi, is it possible to parametrize values for PostGIS datastore in
datastore.xml file (like for eg. app-schemas)?

I'm using PostGIS as a database, and would like to have datastore.xml like:

<dataStore>
  <id>test_datastore</id>
  <name>dbStore</name>
  <description>${test.datasource.description}</description>
  <type>PostGIS</type>
  <enabled>true</enabled>
  <workspace>
    <id>test_workspace</id>
  </workspace>
  <connectionParameters>
        <entry key="host">${test.database.host}</entry>
        <entry key="port">${test.database.port}</entry>
        <entry key="database">${test.database.name}</entry>
    <entry key="schema">${test.database.schema}</entry>
        <entry key="user">${test.database.user}</entry>
        <entry key="passwd">${test.database.password}</entry>
    <entry key="Estimated extends">false</entry>
    <entry key="encode functions">false</entry>
    <entry key="Expose primary keys">false</entry>
    <entry key="validate connections">false</entry>
    <entry key="Support on the fly geometry simplification">false</entry>
    <entry key="create database">false</entry>
    <entry key="preparedStatements">false</entry>
    <entry key="Loose bbox">false</entry>
    <entry key="Test while idle">false</entry>
  </connectionParameters>
  <__default>false</__default>
</dataStore>


.. but I do not know where/how I should place *.properties file; or how to
set up configuration.

Thanks a lot,
T.




--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to