0

We are using Vertica for geospatial data analysis. We need to integrate Vertica database with GeoServer so that we can fetch and use Vertica's data in GeoServer.

How do I create an UI for the datastore (created using https://docs.geotools.org/latest/userguide/tutorial/datastore/index.html) where I can ask for username, password or other required fields for connection? (Just like the fields that are displayed when we add a new PostGIS connection)

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Feb 3, 2022 at 11:46

1 Answer 1

2

GeoServer creates the GUI automatically for you, provided the datastore:

  • Is in the classpath
  • It's properly registered in SPI (see META-INF/services/DataStoreFactorySpi)
  • Declares the parameters it needs in the DataStoreFactory API.
answered Feb 3, 2022 at 11:57
3
  • Thanks for the reply, Andrea. I tried with the above approach but still, my datastore doesn't show up in the Vector Data Sources. Do we need any changes in the GeoServer code for this? I added the datastore jar and the driver jar but still no luck. Am I missing anything? Commented Feb 4, 2022 at 14:45
  • No changes to the GeoServer code are needed, if the store is properly implemented, and available in the GeoServer classpath (along with whatever dependency it needs). Commented Feb 4, 2022 at 14:49
  • 1
    Thanks Andrea Aime, I was finally able to do this. Commented Feb 7, 2022 at 17:42

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.