Hi Mirko,
(Please keep all correspondance on the public list)
It is kind of complex but essentially when you do see attributes in that
list it is an artifact of that feature type coming form an older (pre 2.0)
data directory. If you really want the details see this bug report:
http://jira.codehaus.org/browse/GEOS-3294
So yeah, you will definitely want to go WFS DescribeFeatureType. But you can
also open an issue in the bug tracker for the rest api to include these
attributes.
-Justin
On Fri, Apr 8, 2011 at 8:15 AM, Mirko Bothe <mirko.bo...@uni-rostock.de>wrote:
> Hi Justin,
>
> do you perhaps know, what configuration Options I have to use to get the
> list? Or is it just seemingly random? Well, I should probably just use WFS
> for it, but this seemed to be an easier way to do it.
>
> Thanks,
> Mirko
>
>
> On 08.04.2011 16:08, Justin Deoliveira wrote:
>
>> 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<mirko.bo...@uni-rostock.de
>> <mailto:mirko.bo...@uni-rostock.de>> 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
>> Geoserver-users@lists.sourceforge.net<mailto:
>> 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.
>>
>>
>>
>
--
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users