[Geoserver-users] Java OGC Web Services Client SDK

As I stated in a previous email events on 1.7.x do not work like they do on trunk, because of the way the config system works, and basically updates the entire catalog when a single change is applied.

The only option is to use CatalogListener.reloaded() method to latch onto the change event as a whole, but it won't be possible to watch things change in a granular way.

The config system, which went through a major re-architecture for 2.0, on trunk now fixed this.

-Justin

Patel, Ronak Avinash (US SSA) wrote:

Justin,

I hooked this up but I noticed that the CatalogImpl class does not
generate any events when I add coveragestores, featuretypes, etc. from
the Configuration console.

Is there a reason for that? Or is that a bug?

I'm using Geoserver 1.7.5.

Ronak

-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com] Sent: Tuesday, June 16, 2009 3:39 PM
To: Patel, Ronak Avinash (US SSA)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Java OGC Web Services Client SDK

Well.. .there is the CatalogListener interface, which can be used to listen to catalog events. However, on 1.7.x it will the tricky. The way things work is that when something in the catalog gets changed, everything gets updated. So tracking what changed is hard. I guess your listener could maintain an internal list, to see what changed on an event, but it would be a pain.

On trunk however, the events are granular, so you only get an event for what changed.

In both cases, once your listener knows what changed, it would be relatively easy to simply write the result to out a rss feed.

-Justin

Patel, Ronak Avinash (US SSA) wrote:

Thanks Justin...as is usual with me I found the answer right after I
posted to the mailing list...

I'm going to try to write that GeoRSS feed for changes to the wms/wfs
catalogs so interested clients can learn of changes to the catalog
(add/remove layers and layer groups).

I'm trying to determine an estimate on that now so I can determine
whether I should go down this path. Otherwise, I'll have to generate a
custom GeoRSS external to geoserver using a cron job...grrrr

-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com] Sent: Tuesday, June 16, 2009 2:37 PM
To: Patel, Ronak Avinash (US SSA)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Java OGC Web Services Client SDK

GeoTools has both a WFS and WMS client:

http://docs.codehaus.org/display/GEOTDOC/WMS
http://docs.codehaus.org/display/GEOTDOC/WFS+Plugin

-Justin

Patel, Ronak Avinash (US SSA) wrote:

Hi all,

I had a quick question where I was wondering if anyone knew of a Java

OGC Web Services Client SDK. I figure this has been done to death and

must exist out there.

Can anyone point me to an SDK I can use in my program to extract

layers,

features, etc. from Geoserver?

Thanks!!

Ronak Patel

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

------

Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects

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

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.