Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geogig-dev] geogig-geoserver data store extension

Hi Sebastian,

comments inline.

On Fri, Sep 4, 2015 at 4:17 AM, <Schmidt.Sebastian2@xxxxxx> wrote:
Gabriel,

> Cool. Note you can also configure separate datastores out of the same repository but with each datastore pointing to a different branch.
> In case it helps with your use case.

Great, I hoped that this would work. It will certainly help a lot.

Currently I'm wondering how to get changes into that Geogig repo served through GeoServer. Can I interact with it from other geogig runtimes (ie Push or pull) while GeoServer is running? Or is the only chance to make WFS Calls through GeoServer?

You can clone a geogig repo served by geoserver and push to/pull from it on the clone.

While I update the geogig-geoserver plugin documentaion, which is outdated, here are tome tips:

* Here's a small tutorial on how to manage geogig datastores through the regular GeoServer RESTish API (from where you can create a geoserver repository managed by geoserver as well as a datastore that uses it) <http://geogig.org/docs/interaction/geoserver_web-api.html>

* geogig repos congifured in geoserver are exposed at /geoserver/geogig (e.g. http://localhost:8080/geoserver/geogig)
Inline image 1

* you can grab the repo id from there and clone it somewhere else. Lets take the geopkgtest one:
Inline image 2


* as a side note, you can also access a web console for a geoserver managed repo at /geoserver/geogig/<repo_id>/repo/console:
Inline image 3

As you can see the first command try on that screenshot resulted in an error. You need to enable this capability on the repo as a security measure (given there's no security at all for the time being)

You can use a terminal, go to the repo directory, and run the command as mentioned in the error message. Or if you are building from source (this is not in the latest published version), you can specify the location of the repository from any directory, as in the following example:

$ geogig config --repo /opt/geogig_repos/geopkgtest web.console.enabled true


Hope that helps.
Gabriel


Kind Regards,
Sebastian
_______________________________________________
geogig-dev mailing list
geogig-dev@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
http://www.locationtech.org/mailman/listinfo/geogig-dev



--

Gabriel Roldán
Software Developer | Boundless
groldan@xxxxxxxxxxxxxxxx
@boundlessgeo



Back to the top