However:
http://docs.opengeospatial.org/is/09-025r2/09-025r2.html#88
Quoting:
For KVP-encoded ad hoc query expressions the typeNames parameter shall be
encoded using the TYPENAMES keyword (see Table 8). The TYPENAMES parameter
is mandatory in all cases except when the RESOURCEID parameter is
specified. In this case the TYPENAMES parameter may be omitted because each
feature instance can be identified by its resource identifier alone (see
7.2). If both the TYPENAMES and RESOURCEID parameters are specified then
all the feature instances identified by the RESOURCEID parameter shall be
of the type specified by the TYPENAMES parameter; otherwise the server
shall raise an InvalidParameterValue exception (see OGC 06-121r3:2009,
Table 25) where the "locator" attribute (see OGC 06-121r3:2009, 8.4) value
shall be set to "RESOURCEID".
The typeNames parameter (see OGC 09-026r2, 6.3.3.1.1) shall be used within
an ad hoc query expression to encode the names of one or more correlated
feature types to be queried. Individual feature type names shall be encoded
as QName (see W3C XML Schema Part 2).
What Nuno is proposing is to accept typenames for single values too (which
is what the spec demands as far as I understand).
However, Nuno, it seems to me GeoServer already supports that:
http://demo.geo-solutions.it/geoserver/tiger/ows?service=WFS&version=2.0.0&request=GetFeature&typeNames=tiger:tiger_roads&count=1
So... confused? Are you talking only about DescribeFeatureType? typenames
seems to be indeed ignored there, but the spec only talks
about typenames in the context of ad hoc queries.
Cheers
Andrea
On Tue, Jun 6, 2017 at 11:35 AM, Ian Turton <[email protected]> wrote:
> see https://osgeo-org.atlassian.net/browse/GEOS-7842 for some other
> discussion on this
>
> Ian
>
> On 6 June 2017 at 10:15, Andrea Aime <[email protected]> wrote:
>
>> Hi Nuno,
>> I quickly glanced over the specification and I can only find KVP examples
>> using TYPENAMES,
>> typename is used in the XML.
>>
>> That said, if GeoServer has bee using TYPENAME until now I'd keep it for
>> backwards compatibility,
>> so yes, I agree we should be supporting both like the reference
>> implementation
>>
>> Cheers
>> Andrea
>>
>>
>> On Mon, Jun 5, 2017 at 11:16 PM, Nuno Oliveira <
>> [email protected]> wrote:
>>
>>> Hi,
>>>
>>> WFS 2.0 is ambiguous regarding (at least to me) regarding the type name
>>> parameter value, in the specification to values used are:
>>>
>>> - TYPENAME
>>> - TYPENAMES
>>>
>>> The important specification part is this one:
>>> http://docs.opengeospatial.org/is/09-025r2/09-025r2.html#147
>>>
>>> GeoServer is using TYPENAME, OGC CITE tests for WFS 2.0 are using
>>> TYPENAMES and WFS 2.0 reference implementation is accepting both:
>>> https://github.com/opengeospatial/cite/wiki/Reference-Implementations
>>>
>>> I'm very inclined to also accept both values, i.e. to make GeoServer
>>> also accept TYPENAMES.
>>>
>>> Any objection ?
>>>
>>> Regards,
>>>
>>> --
>>> ==
>>> GeoServer Professional Services from the experts!
>>> Visit http://goo.gl/it488V for more information.
>>> ==
>>> Nuno Miguel Carvalho Oliveira
>>> @nmcoliveira
>>> Software Engineer
>>>
>>> GeoSolutions S.A.S.
>>> Via di Montramito 3/A
>>> 55054 Massarosa (LU)
>>> Italy
>>>
>>> phone: +39 0584 962313 <+39%200584%20962313>
>>> fax: +39 0584 1660272 <+39%200584%20166%200272>
>>> mob: +39 333 8128928 <+39%20333%20812%208928>
>>> http://www.geo-solutions.ithttp://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-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>>
>>>
>>
>>
>> --
>> ==
>> 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 <+39%200584%20962313>
>> fax: +39 0584 1660272 <+39%200584%20166%200272>
>> mob: +39 339 8844549 <+39%20339%20884%204549>
>>
>> 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-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>
>>
>
>
> --
> Ian Turton
>
--
==
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel