Hi,
Is it possible to use a basemapGroup defined in the WMS section in the services.xml as a typename in a wfs request.
Not directly I noticed.
Or is it otherwise possible to determine the layers configured in a basemapgroup to create the correct typenames parameter in my wfs request.
Cheers Kris
Kris Geusebroek
Consultant
Xebia Blog ! http://blog.xebia.com/
Xebia Podcast! http://podcast.xebia.com/
Kris Geusebroek ha scritto:
Hi,
Is it possible to use a basemapGroup defined in the WMS section in the services.xml as a typename in a wfs request.
Not directly I noticed.
Or is it otherwise possible to determine the layers configured in a basemapgroup to create the correct typenames parameter in my wfs request.
Nope, there is no way to do so.
WFS wise it may also not make much sense, the WFS GetFeature request
in POST format (the only required by the standard, the GET one being
optional) would stop making sense as you have to specify a typeName
(which in your case might be the group) and then specify which
attributes you want, and a filter. But given the multeplicity
of types in a group, it would not be possible to determine which
attribute is associated to which typeName (especially in case
of duplicated attributes), plus the "filter" would not make
sense since each part of it might refer to a different
layer (but the filter is one, ouch).
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Hi Andrea,
Well in my case it makes a bit sence.
I will explain a bit.
We have several different databases with the same features in it.
We have created a namespace for each separate db so we can create a
basemapgroup to get all features from multiple databases.
This way the filtering and property names are matching all typenames
because the features are same but in different db.
But I understand WFS doesn't handle (or even know about) the
basemapgroups.
Is it possible to get information about a basemap group from say the
getCapabilities response?
Or in an other way?
Cheers Kris
-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: Wednesday, March 25, 2009 6:38 PM
To: Kris Geusebroek
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Using BaseMapGroups in WFS
Kris Geusebroek ha scritto:
Hi,
Is it possible to use a basemapGroup defined in the WMS section in the
services.xml as a typename in a wfs request.
Not directly I noticed.
Or is it otherwise possible to determine the layers configured in a
basemapgroup to create the correct typenames parameter in my wfs
request.
Nope, there is no way to do so.
WFS wise it may also not make much sense, the WFS GetFeature request
in POST format (the only required by the standard, the GET one being
optional) would stop making sense as you have to specify a typeName
(which in your case might be the group) and then specify which
attributes you want, and a filter. But given the multeplicity
of types in a group, it would not be possible to determine which
attribute is associated to which typeName (especially in case
of duplicated attributes), plus the "filter" would not make
sense since each part of it might refer to a different
layer (but the filter is one, ouch).
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Kris Geusebroek ha scritto:
Hi Andrea,
Well in my case it makes a bit sence.
I will explain a bit.
We have several different databases with the same features in it.
We have created a namespace for each separate db so we can create a
basemapgroup to get all features from multiple databases.
This way the filtering and property names are matching all typenames
because the features are same but in different db.
Ah, so you're aggregating multiple tables that have the
same structure in one? This is the job of a datastore, not
the job of the WFS protocol.
Or even better, why don't you just use the external linking
capabilities various databases provide and create a view that
unions all your tables in? Then you can register the view
in GeoServer as a feature type, and it will publish it as
the "global summary" of your distributed data.
But I understand WFS doesn't handle (or even know about) the
basemapgroups.
Is it possible to get information about a basemap group from say the
getCapabilities response?
Or in an other way?
Hmmm.... maybe the REST configuration module can provide you with a
drill down of the layer groups. See here:
http://gridlock.openplans.org/geoserver/1.7.x/doc/user/extensions/rest/rest-config-api.html
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.