Hi,

I did not notice that. Could you add a link to that two year old discussion? 
The first mail I saw in this thread starts directly “The problem persists even 
with version 2.12.1” and it does not help much with searching the history.

-Jukka Rahkonen-


Lähettäjä: [email protected] [mailto:[email protected]] Puolesta Andrea 
Aime
Lähetetty: 10. tammikuuta 2018 15:16
Vastaanottaja: Rahkonen Jukka (MML) <[email protected]>
Kopio: sulu <[email protected]>; 
[email protected]
Aihe: Re: [Geoserver-users] Attribute shows up only with WFS-1.0.0

On Wed, Jan 10, 2018 at 2:09 PM, Rahkonen Jukka (MML) 
<[email protected]<mailto:[email protected]>>
 wrote:
Hi,

I added a new field "NAME" into the states shapefile and published it again 
with Geoserver 2.12.1.  First rows from 
http://localhost:8080/geoserver/wfs?service=wfs&version=1.1.0&request=describefeaturetype&typename=topp:states
 do show this new attribute

<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" name="the_geom" nillable="true" 
type="gml:MultiSurfacePropertyType"/>
<xsd:element maxOccurs="1" minOccurs="0" name="NAME" nillable="true" 
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="STATE_NAME" nillable="true" 
type="xsd:string"/>

However, if I rename "NAME" into lowercase "name" it does not appear in the WFS 
1.1.0 or WFS 2.0.0 DescribeFeatureType. If you have not already created a 
ticket into the Geoserver Jira, please do and add this information so that the 
developers have an easy way to reproduce the issue.

Did anyone pay attention to my answer of two years ago?

------------

There is no problem, it is working as inteded, name is not reported because
it's part of the GML namespace, so it's assumed to be there without having
to declare it explicitly (it's part of the base type your feature is extending,
along with description, bounds and some other attributes).
See http://schemas.opengis.net/gml/3.0.1/base/feature.xsd, AbstractFeatureType:

"An abstract feature provides a set of common properties, including id, 
metaDataProperty, name and description inherited from AbstractGMLType, plus 
boundedBy.    A concrete feature type must derive from this type and specify 
additional  properties in an application schema. A feature must possess an 
identifying attribute ('id' - 'fid' has been deprecated).  "

If you want name to show up anyways, go into the WFS service configuration
panel, check the gml by gml version configurations, and disable
the usage of gml attributes in gml 3.1 and 3.2

-------------

I at least saw no follow up on it...

Cheers
Andrea

--

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo 
è consentito esclusivamente al destinatario del messaggio, per le finalità 
indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne 
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di 
procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro 
sistema. Conservare il messaggio stesso, divulgarlo anche in parte, 
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, 
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the 
attention and use of the named addressee(s) and may be confidential or 
proprietary in nature or covered by the provisions of privacy act (Legislative 
Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in 
accord with its purpose, any disclosure, reproduction, copying, distribution, 
or either dissemination, either whole or partial, is strictly forbidden except 
previous formal approval of the named addressee(s). If you are not the intended 
recipient, please contact immediately the sender by telephone, fax or e-mail 
and delete the information in this message that has been received in error. The 
sender does not give any warranty or accept liability as the content, accuracy 
or completeness of sent messages and accepts no responsibility  for changes 
made after they were sent or for other risks which arise as a result of e-mail 
transmission, viruses, etc.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to