gicait / geoserver-rest

Python library for management of geospatial data in GeoServer.
https://geoserver-rest.readthedocs.io
MIT License
197 stars 79 forks source link

create_featurestore with param create_database to true does not work #69

Closed aijogja closed 2 years ago

aijogja commented 2 years ago

I want to create a PostGIS data source and also create a database, using create_featurestore with param create_database = "true" but does not work. ref https://github.com/gicait/geoserver-rest/blob/master/geo/Geoserver.py#L556

geo.create_featurestore(store_name='ADMIN', workspace='ADMIN', db='geoserver_ADMIN', host='db', pg_user='docker', pg_password='docker', create_database='true')

the PostGIS data source was created, but not for the database

I use geoserver-rest==2.1.4

iamtekson commented 2 years ago

@JLoos92 Do you have any idea? #60

JLoos92 commented 2 years ago

@aijogja is the problem already solved? i'll have a look later this week...

aijogja commented 2 years ago

Not yet.

eleticial commented 2 years ago

There is an error in https://github.com/gicait/geoserver-rest/blob/88c26f114ecd6622a48b0d8a172fe985998cee4d/geo/Geoserver.py#L674

There are three duplicated lines.

aijogja commented 2 years ago

image

But, on my installed Geoserver Rest, that line does not duplicate. I use geoserver-rest==2.1.4

aijogja commented 2 years ago

image

iamtekson commented 2 years ago

I have just released the goeserver-rest v2.2.2, can you try it with the latest version? If it didn't solve the issue, feel free to reopen this issue.