Hi,
If you have WFS service activated you can read the schema of the layer with WFS DescribeFeatureType.
http://demo.opengeo.org/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typename=topp:states
But if you would like to close the WFS for downloading your data you should set up also a security system that allows DescribeFeatureTypes but not GetFeatures from your users.
-Jukka Rahkonen-
Hartmut Noack wrote:
Hello,
in order to allow users of my Gmaps-frontend to filter Layers by submitting CQL-
statements I would like to get a list of attributes like this:
&cql_filter=(POPULATION > 1200000)
in this case the given Layer contains the attribute POPULATION that is assigned
to districts of a country. The filter allows, to select shapes of such districts to be
rendered if the POPULATION assigned to the district is greater than a number,
the user may type in an input-field.
That is straight forward, anyway I need to find out the attribute names (in this
case POPULATION) to set up input boxes that fit the given layer. The attributes
will become quite diverse since we will map water/sanitation installations that
can be dozens of different things from a lake to a handpump. The handpump has
a throughput the lake has a depth etc.
So I would need to query the layer for its attributes. As of now I copy the names
from the wms-atom preview in geoserver but of course, that is no option in the
long run...
Is there any CQL-Magic or something similar to do that?
something like:
"request=ListAttributes&layers=workspacename:layername"
?
best regards
HZN
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance affects
their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, &
PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Am 12.12.2013 05:43, schrieb Rahkonen Jukka:
Hi,
If you have WFS service activated you can read the schema of the
layer with WFS DescribeFeatureType.
http://demo.opengeo.org/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typename=topp:states
Now
I tried that directly in the browser and it works OK.
I tried that with PHP/ curl without success...
thanks for the hint!
best regards
HZN
But if you would like to close the WFS for downloading your data
you should set up also a security system that allows
DescribeFeatureTypes but not GetFeatures from your users.
-Jukka Rahkonen-
Hartmut Noack wrote:
Hello,
in order to allow users of my Gmaps-frontend to filter Layers by
submitting CQL- statements I would like to get a list of
attributes like this:
&cql_filter=(POPULATION > 1200000)
in this case the given Layer contains the attribute POPULATION
that is assigned to districts of a country. The filter allows, to
select shapes of such districts to be rendered if the POPULATION
assigned to the district is greater than a number, the user may
type in an input-field.
That is straight forward, anyway I need to find out the attribute
names (in this case POPULATION) to set up input boxes that fit
the given layer. The attributes will become quite diverse since
we will map water/sanitation installations that can be dozens of
different things from a lake to a handpump. The handpump has a
throughput the lake has a depth etc.
So I would need to query the layer for its attributes. As of now
I copy the names from the wms-atom preview in geoserver but of
course, that is no option in the long run...
Is there any CQL-Magic or something similar to do that?
something like:
"request=ListAttributes&layers=workspacename:layername"
?
best regards
HZN
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application
performance affects their revenue. With AppDynamics, you get 100%
visibility into your Java,.NET, & PHP application. Start your
15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application
performance affects their revenue. With AppDynamics, you get 100%
visibility into your Java,.NET, & PHP application. Start your
15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users