[Geoserver-users] Versioning layers?

Hi,

we have a WFS, provided using GeoServer, for earthquake information in New Zealand. More details here:

http://info.geonet.org.nz/display/appdata/Earthquake+Web+Feature+Service

We plan to add more output to the geonet:quake layer. I guess this is potential for this being a breaking change for some clients. If I was changing a REST web service I would usually have a version number in the web service say for example:

http://www.geonet.org.nz/quakes/services/all.json

versus

http://www.geonet.org.nz/quakes/services/2/all.json

Is this sort of approach (adding a version number into the URL) recommended with GeoServer and if so how is it best done?

Thanks,
Geoff

Geoff Clitheroe
GeoNet Development Manager
GNS Science - Te Pu Ao
DDI: +64-4-570 4762 GNS: 64-4-570 1444 Fax: +64-4-570 4676 Mobile: 027 480 3691
1 Fairway Drive, P.O. Box 30-368 Lower Hutt
New Zealand
http://www.gns.cri.nz/who/staff/3114.html

Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.

On Wed, May 1, 2013 at 1:42 AM, Geoff Clitheroe <G.Clitheroe@anonymised.com> wrote:

Hi,

we have a WFS, provided using GeoServer, for earthquake information in New
Zealand. More details here:

http://info.geonet.org.nz/display/appdata/Earthquake+Web+Feature+Service

We plan to add more output to the geonet:quake layer.

When you say more output, you mean more attributes?

I guess this is

potential for this being a breaking change for some clients. If I was
changing a REST web service I would usually have a version number in the web
service say for example:

http://www.geonet.org.nz/quakes/services/all.json

versus

http://www.geonet.org.nz/quakes/services/2/all.json

Is this sort of approach (adding a version number into the URL) recommended
with GeoServer and if so how is it best done?

WFS does not have a notion of versioned schemas, I guess the easiest
thing, if you
want to preserve old clients, is to create a new feature type, and maybe use SQL
Views to setup a feature type with the old to the clients.

Cheers
Andrea

--

GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------