The following steps need to be followed in order to publish new spatial data in your GeoServer installation.
By default, GeoServer only supports styles through the use of SLD (Styled Layers Descriptor) standard files. Lots of examples and documentation can be found at http://docs.geoserver.org/2.8.3/user/styling/sld-cookbook/index.html |
There are several possibilities to publish layers in Geoserver which are mainly related to the type of the data source you will be feeding GeoServer with. In the following section three procedures will be described:
For performance reasons, it is recommended that all vectorial data being served by Geoserver is stored in a spatial database and that all optimizations have been done previously (e.g. building spatial indexes, geometry generalization, …) |
You will first need to configure a datasource in your application server
<datasource jta="true" jndi-name="java:jboss/datasources/my_db" pool-name="my_db" enabled="true" use-ccm="true"> <connection-url>jdbc:postgresql://localhost:5432/mydb</connection-url> <driver>postgresql</driver> <security> <user-name>myuser</user-name> <password>mypassword</password> </security> </datasource> |