Re: [Geoserver-devel] App-schema mapping creation/update via REST

2015-06-17 Thread Stefano Costa
Hi Andrea, I updated the PR according to your suggestions: https://github.com/geoserver/geoserver/pull/1106 Il giorno mar, 16/06/2015 alle 18.35 +0200, Andrea Aime ha scritto: > 2) These checks should be un-necessary, the store just gave you the > names, they should be usable without extracting

Re: [Geoserver-devel] App-schema mapping creation/update via REST

2015-06-16 Thread Stefano Costa
Hi Andrea, thanks for the review, I intended to issue a PR earlier but couldn't make it in time. Here it is: https://github.com/geoserver/geoserver/pull/1106 Unfortunately, I noticed your e-mail only after creating the PR, so the code does not take into account your comments. Tomorrow I'll update

Re: [Geoserver-devel] App-schema mapping creation/update via REST

2015-06-16 Thread Andrea Aime
On Fri, Jun 12, 2015 at 11:55 AM, Stefano Costa < stefano.co...@geo-solutions.it> wrote: > As a matter of fact, I do have a draft implementation of the former: > https://github.com/geoserver/geoserver/compare/master...ridethepenguin:app-schema-rest > > Hi Stefano, maybe next time you want to disc

Re: [Geoserver-devel] App-schema mapping creation/update via REST

2015-06-12 Thread Stefano Costa
Hi Andrea, Il giorno ven, 12/06/2015 alle 05.20 +0200, Andrea Aime ha scritto: > On Thu, Jun 11, 2015 at 1:04 PM, Stefano Costa > wrote: > > > I guess the latter is better, or at least, it sounds more in line with > how the > difference between store and data access is often managed, but if you

Re: [Geoserver-devel] App-schema mapping creation/update via REST

2015-06-11 Thread Andrea Aime
On Thu, Jun 11, 2015 at 1:04 PM, Stefano Costa < stefano.co...@geo-solutions.it> wrote: > > I tried to modify DataStoreFileResource as you suggested and the first > hurdle I bumped in is that, as the name suggests, the implementation is > based off DataStoreFactorySpi/DataStore, while app-schema u

Re: [Geoserver-devel] App-schema mapping creation/update via REST

2015-06-11 Thread Andrea Aime
On Wed, Jun 10, 2015 at 10:16 PM, Jody Garnett wrote: > This is kind of tricky as general problem - how do we manage configuration > files such as required for templates, icons, app-schema mapping > configuration, pregeneralized datastore config etc... > > I think we have now isolated all file ac

Re: [Geoserver-devel] App-schema mapping creation/update via REST

2015-06-11 Thread Stefano Costa
Hi Andrea, thanks for your answer, see my comments inline. Il giorno mer, 10/06/2015 alle 20.31 +0200, Andrea Aime ha scritto: > In the REST api those are two different use cases. In vector stores, > you PUT a shp/property/h2/spatialite to create a new store, > and the file location you provides

Re: [Geoserver-devel] App-schema mapping creation/update via REST

2015-06-10 Thread Jody Garnett
This is kind of tricky as general problem - how do we manage configuration files such as required for templates, icons, app-schema mapping configuration, pregeneralized datastore config etc... I think we have now isolated all file access to ResourceStore API

Re: [Geoserver-devel] App-schema mapping creation/update via REST

2015-06-10 Thread Andrea Aime
On Wed, Jun 10, 2015 at 5:53 PM, stefano.costa < stefano.co...@geo-solutions.it> wrote: > Dear all, > I'm working on automating the creation/update of app-schema datastores in > GeoServer leveraging the REST API. > The current API already allows the creation of an app-schema datastore > and, of c

[Geoserver-devel] App-schema mapping creation/update via REST

2015-06-10 Thread stefano.costa
Dear all, I'm working on automating the creation/update of app-schema datastores in GeoServer leveraging the REST API. The current API already allows the creation of an app-schema datastore and, of course, it is already possible to create secondary namespaces/workspaces via REST: what is missing