[Geoserver-users] Question about making a WFS request to return features with a subset of the available fields

Hi everyone,

I have what I think should be a simple problem, but I am having trouble locating examples of this in the documentation.

I would like to make a WFS request which returns a set of features and a subset of those features attributes. I know that this can be accomplished using the propertyName parameter of a WFS request if the field names are known and specified. I would like to specify the fields names by instead passing a wild card "*something".

Is this a possibility?

Many thanks for any advice.

Kytt

--
Kytt MacManus
Geographic Information Specialist
CIESIN
Earth Institute
Columbia University

Adjunct Lecturer
School of International and Public Affairs
Columbia University

P.O. Box 1000
61 Route 9W
Palisades, NY 10964

845-365-8939 (V)
845-365-8922 (F)
www.ciesin.columbia.edu

On Tue, Jan 6, 2015 at 4:18 AM, Kytt MacManus <kmacmanu@anonymised.com>
wrote:

Hi everyone,

I have what I think should be a simple problem, but I am having trouble
locating examples of this in the documentation.

I would like to make a WFS request which returns a set of features and
a subset of those features attributes. I know that this can be
accomplished using the propertyName parameter of a WFS request if the
field names are known and specified. I would like to specify the fields
names by instead passing a wild card "*something".

Is this a possibility?

It's not part of the WFS specification, nor supported by GeoServer as an
extension,
but I guess you could build a WPS process that does the job for you,
wrapping the standard WFS request as its input

Cheers
Andrea

--

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

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.

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

Thanks for the response Andrea.

Perhaps the best option is to describe the service and parse the response to produce the list of desired attributes.

Kind regards,
Kytt

On 1/8/2015 6:06 AM, Andrea Aime wrote:

On Tue, Jan 6, 2015 at 4:18 AM, Kytt MacManus <kmacmanu@anonymised.com <mailto:kmacmanu@anonymised.com>> wrote:

    Hi everyone,

    I have what I think should be a simple problem, but I am having
    trouble
    locating examples of this in the documentation.

    I would like to make a WFS request which returns a set of
    features and
    a subset of those features attributes. I know that this can be
    accomplished using the propertyName parameter of a WFS request if the
    field names are known and specified. I would like to specify the
    fields
    names by instead passing a wild card "*something".

    Is this a possibility?

It's not part of the WFS specification, nor supported by GeoServer as an extension,
but I guess you could build a WPS process that does the job for you, wrapping the standard WFS request as its input

Cheers
Andrea

--

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

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.

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

--
Kytt MacManus
Geographic Information Specialist
CIESIN
Earth Institute
Columbia University

Adjunct Lecturer
School of International and Public Affairs
Columbia University

P.O. Box 1000
61 Route 9W
Palisades, NY 10964

845-365-8939 (V)
845-365-8922 (F)
www.ciesin.columbia.edu

On Thu, Jan 8, 2015 at 5:32 PM, Kytt MacManus <kmacmanu@anonymised.com>
wrote:

Thanks for the response Andrea.

Perhaps the best option is to describe the service and parse the response

to produce the list of desired attributes.

That's indeed how WFS is supposed to be used

Cheers
Andrea

--

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

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.

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