Hi Mirko,
Yeah the way geoserver uses these attributes is kind of tricky. Depending on
how you have your feature type configured you may get attributes in this
list, or you may not. The norm is to keep the list empty which means to
generate attributes from the schema of the underlying data source. We could
potentially force the rest api to always output the attributes though.
All in all you are probably better off using WFS DescribeFeatureType to
inspect the feature type attributes.
-Justin
On Fri, Apr 8, 2011 at 7:56 AM, Mirko Bothe <[email protected]>wrote:
> Hello,
>
> I am looking for a way to get the attributes of a feature type with the
> REST configuration API. After looking at the documentation I thought
> that I could use a call like
> "/workspaces/<ws>/datastores/<ds>/featuretypes/<ft>[.<format>]" to get
> this Information, as it is returned in the example documents (e.g.
> http://docs.geoserver.org/stable/en/user/_downloads/featuretype_xml.txt),
> but
> GeoServer does not return this (in any of the three formats).
>
> Do I need to activate something else before it returns the attributes?
> Or was this removed for some reason? I am not sure if this is relevant,
> but I am using GeoServer 2.0.2 in Jetty on Windows Server 2008 and the
> Feature Type is stored in SQL Server 2008, but I also tried it with a
> shapefile and also did not get the attributes.
>
> Thanks,
> Mirko
>
>
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users