[Geoserver-users] Public/Example Geoserver Sites

Just a gentle nudge: if/when you have any maps to show, please post
them to the Gallery:

http://docs.codehaus.org/display/GEOSDOC/Gallery

Alex

Does Geoserver provide a feature to notify a client when a feature changes? For example, if I have a feature that represents a NEXRAD radar image and I update the feature every so often, is there some way within Geoserver for the client to tell or be notified that the feature has changed? If not, are there other solutions to this problem that others have developed or used?

Thanks in advance,
David Robison

--

David R Robison
Open Roads Consulting, Inc.
708 S. Battlefield Blvd., Chesapeake, VA 23322
phone: (757) 546-3401
e-mail: drrobison@anonymised.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/titles/1597816523.htm

No, there's not currently a way to do that in the code base.

Are you updating the feature through WFS-T? I assume you are, but just want to be sure - that's the only way GeoServer itself would have knowledge that something happened. If you didn't do that you'd have to put a trigger in your database and some custom code to do the notification.

If you're going through WFS-T, then this is a feature I want to have relatively soon. We need to refactor the transaction code to allow people to plug in modules to do various notifications when there's an update, but I hope to get to it relatively soon. See more at: http://docs.codehaus.org/display/GEOS/GeoCollaborator

Ian Turton, cced, I believe got something going with GeoRSS to do notification on updates. I think he may have just implemented it as a servlet filter or some such. Ian, did you finish that off? Have any code you might share?

That's probably the first approach I'd take, have your client understand GeoRSS and have GeoServer produce those on WFS transactions. And the easiest way to implement is with a servlet filter.

best regards,

Chris

David R Robison wrote:

Does Geoserver provide a feature to notify a client when a feature changes? For example, if I have a feature that represents a NEXRAD radar image and I update the feature every so often, is there some way within Geoserver for the client to tell or be notified that the feature has changed? If not, are there other solutions to this problem that others have developed or used?

Thanks in advance,
David Robison

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Actually, the data set is from a custom GeoTools plug-in data store. I have a plugin that monitors CORBA objects and exposes their data via the WFS/WFS. What I want to do is some how notify the client that the data in the custom data store has changed so they can load the updated data from the WMS/WFS. It sounds like I will need to create my own notification scheme unless anyone has any other ideas. Thanks, David


From: Chris Holmes [mailto:cholmes@anonymised.com]
To: David R Robison [mailto:drrobison@anonymised.com]
Cc: geoServer [mailto:geoserver-users@lists.sourceforge.net], Ian Turton [mailto:ijturton@anonymised.com]
Sent: Wed, 25 Oct 2006 17:38:14 -0400
Subject: Re: [Geoserver-users] Notifications on feature changes

No, there’s not currently a way to do that in the code base.

Are you updating the feature through WFS-T? I assume you are, but just
want to be sure - that’s the only way GeoServer itself would have
knowledge that something happened. If you didn’t do that you’d have to
put a trigger in your database and some custom code to do the notification.

If you’re going through WFS-T, then this is a feature I want to have
relatively soon. We need to refactor the transaction code to allow
people to plug in modules to do various notifications when there’s an
update, but I hope to get to it relatively soon. See more at:
http://docs.codehaus.org/display/GEOS/GeoCollaborator

Ian Turton, cced, I believe got something going with GeoRSS to do
notification on updates. I think he may have just implemented it as a
servlet filter or some such. Ian, did you finish that off? Have any
code you might share?

That’s probably the first approach I’d take, have your client understand
GeoRSS and have GeoServer produce those on WFS transactions. And the
easiest way to implement is with a servlet filter.

best regards,

Chris

David R Robison wrote:

Does Geoserver provide a feature to notify a client when a feature
changes? For example, if I have a feature that represents a NEXRAD radar
image and I update the feature every so often, is there some way within
Geoserver for the client to tell or be notified that the feature has
changed? If not, are there other solutions to this problem that others
have developed or used?

Thanks in advance,
David Robison


Chris Holmes
The Open Planning Project
http://topp.openplans.org

David Robison ha scritto:

Actually, the data set is from a custom GeoTools plug-in data store. I have a plugin that monitors CORBA objects and exposes their data via the WFS/WFS. What I want to do is some how notify the client that the data in the custom data store has changed so they can load the updated data from the WMS/WFS. It sounds like I will need to create my own notification scheme unless anyone has any other ideas. Thanks, David

Well, I guess you could put togheter the standard gt2 feature listener
mechanism (http://www.geotools.fr/javadoc/2.2/org/geotools/data/FeatureSource.html)
and an rss feed to provide notifications (which would make the notification system reusable for other data stores too).
The rss feed would be interesting if you think about clients that cannot
be called back because of the network infrastructure (router, firewalls), on the other side that would make you poll from the client
instead of getting instant notification of changes.

Cheers
Andrea Aime

On 10/25/06, Chris Holmes <cholmes@anonymised.com> wrote:

No, there's not currently a way to do that in the code base.

Are you updating the feature through WFS-T? I assume you are, but just
want to be sure - that's the only way GeoServer itself would have
knowledge that something happened. If you didn't do that you'd have to
put a trigger in your database and some custom code to do the notification.

If you're going through WFS-T, then this is a feature I want to have
relatively soon. We need to refactor the transaction code to allow
people to plug in modules to do various notifications when there's an
update, but I hope to get to it relatively soon. See more at:
http://docs.codehaus.org/display/GEOS/GeoCollaborator

Ian Turton, cced, I believe got something going with GeoRSS to do
notification on updates. I think he may have just implemented it as a
servlet filter or some such. Ian, did you finish that off? Have any
code you might share?

I didn't finish it yet, but it is still on my to do list. I'll try to
find the code and see how much work it would be to finish it.

Ian

--

Ian Turton
http://www.geotools.org
http://pennspace.blogspot.com/

I just checked out the sources from

svn://svn.codehaus.org/geoserver/trunk/

and tried to compile it with "mvn compile" but I get the following error:

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] GeoServer
[INFO] Core Platform Module
[INFO] Data Module
[INFO] Main Module
[INFO] Web Coverage Service Module
[INFO] Validation Module
[INFO] Web Feature Service Module
[INFO] Web Map Service Module
[INFO] GeoServer Maven Plugins
[INFO] Configuration Deployment PlugIn
[INFO] Web Application Module
[INFO] Artifact Merger PlugIn
[INFO] Test Module
[INFO] ----------------------------------------------------------------------------
[INFO] Building GeoServer
[INFO] task-segment: [compile]
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Core Platform Module
[INFO] task-segment: [compile]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://lists.refractions.net/m2//org/geotools/gt2-main/2.3.1-SNAPSHOT/gt2-main-2.3.1-SNAPSHOT.pom
[WARNING] Unable to get resource from repository refractions (http://lists.refractions.net/m2/)
Downloading: http://www.ibiblio.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.pom
[WARNING] Unable to get resource from repository ibiblio (http://www.ibiblio.org/maven2)
Downloading: http://maven.geotools.fr/repository//javax.media/poms/jai_core-1.1.3.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

Project ID: javax.media:jai_core

Reason: Error getting POM for 'javax.media:jai_core' from the repository: Error transferring file
  javax.media:jai_core:pom:1.1.3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  ibiblio (http://www.ibiblio.org/maven2),
  refractions (http://lists.refractions.net/m2/),
  espace (http://maven.espace.ird.nc),
  mortbay (http://www.mortbay.org/maven2/release),
  geotools (http://maven.geotools.fr/repository/)

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Thu Dec 14 08:59:29 EST 2006
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------

Any ideas? Thanks, David

--

David R Robison
Open Roads Consulting, Inc.
708 S. Battlefield Blvd., Chesapeake, VA 23322
phone: (757) 546-3401
e-mail: drrobison@anonymised.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/titles/1597816523.htm

David R Robison ha scritto:

I just checked out the sources from

svn://svn.codehaus.org/geoserver/trunk/

and tried to compile it with "mvn compile" but I get the following error:

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] GeoServer
[INFO] Core Platform Module
[INFO] Data Module
[INFO] Main Module
[INFO] Web Coverage Service Module
[INFO] Validation Module
[INFO] Web Feature Service Module
[INFO] Web Map Service Module
[INFO] GeoServer Maven Plugins
[INFO] Configuration Deployment PlugIn
[INFO] Web Application Module
[INFO] Artifact Merger PlugIn
[INFO] Test Module
[INFO] ----------------------------------------------------------------------------
[INFO] Building GeoServer
[INFO] task-segment: [compile]
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Core Platform Module
[INFO] task-segment: [compile]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://lists.refractions.net/m2//org/geotools/gt2-main/2.3.1-SNAPSHOT/gt2-main-2.3.1-SNAPSHOT.pom
[WARNING] Unable to get resource from repository refractions (http://lists.refractions.net/m2/)
Downloading: http://www.ibiblio.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.pom
[WARNING] Unable to get resource from repository ibiblio (http://www.ibiblio.org/maven2)
Downloading: http://maven.geotools.fr/repository//javax.media/poms/jai_core-1.1.3.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

Project ID: javax.media:jai_core

Reason: Error getting POM for 'javax.media:jai_core' from the repository: Error transferring file
  javax.media:jai_core:pom:1.1.3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  ibiblio (http://www.ibiblio.org/maven2),
  refractions (http://lists.refractions.net/m2/),
  espace (http://maven.espace.ird.nc),
  mortbay (http://www.mortbay.org/maven2/release),
  geotools (http://maven.geotools.fr/repository/)

You're having internet connection issues with the repository that has
the file, in this case, lists.refractions.net.
I can connect just fine and the file is there:
http://lists.refractions.net/m2/javax/media/jai_core/1.1.3/

Keep on trying, you have to download it just once.

Cheers
Andrea