I use geonode and geoserver, and geogig for versioning my data.

but I have a problem with "import existed postgis layer in to geogig store". geoserver has a importer module but it has not api for import postgis table.

after research, some people said that first you should export your layer in geoJSON and then import geoJSON file in to geogig store with geoserver importer api.

somebody said that you can use publish layer api in geoserver and publish your postgis layer in to geogig store.

I try these two way but in first way I think that in not reasonable! and in second way I had this problem that the layer's data not imported.

first I copy my postgis layer:

CREATE TABLE new_layer_title ( like old_layer_name including all)

and then insert old_layer_data in to new_layer. after that I call this api with POSTfor publishing my postgis layer in to geoserver:


in body (new layer title is test_geogig4253):

<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="" type="application/xml"/>
<store class="dataStore">

my base question is:

what is reasonable way for importing postgis layer in to another store (like geogig store) with api?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.