[Geoserver-users] Change WFS GetCapabilities

Andrea,

Thank you for your time and response!

Yes, please provide the links you mentioned below if you have the time. I would like to forward your response to me team.

My investigation revealed the same. I felt the only way to remove the support of unwanted spatial operators would be a code change. Your response confirmed my suspicions.

Thank you again for your time!

Jeff W.

From: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] On Behalf Of Andrea Aime
Sent: Friday, September 18, 2015 10:12 PM
To: jwells1@anonymised.com
Cc: GeoServer Mailing List List geoserver-users@lists.sourceforge.net; Change@anonymised.com
Subject: Re: [Geoserver-users] (no subject)

On Thu, Sep 17, 2015 at 12:02 AM, jwells1@anonymised.com <jwells1@anonymised.com> wrote:

Hello,

I am currently working with GeoServer 2.1.1.7 war file which is hosted on
Apache Tomcat 7.0.64 and running on RHE x86_64.

I researched my question in the user’s mailing list however I did not find
the answer. I apologize if it exists and I overlooked it.

My question is whether it is possible to modify the WFS GetCapabilites in
such a way that the operators that are not supported in our environment
would not be displayed.

For example, the spatial operators “Disjoint” and “Equals” will not be
supported. Our users will not need to use these operators so is there a
way
to remove them from the GetCapabilities Spatial Operators list?

The non written rule is that stores need to support all operators, and

emulate in memory the ones they don’t have, all official stores do that,

it’s not difficult (I can provide links if you want an example).

Would this
require a code change and re-compiling of the code or is there a way to
eliminate these operators without a code change?

Code change would be the only way as far as I know, if you really

don’t want the in-memory emulation

Cheers

Andrea

==

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 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.


On Sun, Sep 20, 2015 at 12:21 AM, Jeffrey Wells <jwells1@anonymised.com>
wrote:

Andrea,

Thank you for your time and response!

Yes, please provide the links you mentioned below if you have the time. I
would like to forward your response to me team.

Here is a quick example here for splitting a filter in a pre (encodable)
and post (non encodable) part:
https://github.com/geotools/geotools/blob/master/modules/library/jdbc/src/main/java/org/geotools/jdbc/JDBCFeatureSource.java#L387

and here for building the capabilities:
https://github.com/geotools/geotools/blob/master/modules/plugin/jdbc/jdbc-postgis/src/main/java/org/geotools/data/postgis/FilterToSqlHelper.java#L125

Both classes I'm mentioning are deprecated, because someone decided to
write replacement and deprecate the old classes
without actually integrating them in the usage points. Long story short,
they heavy duty stores are still using the deprecated
classes because they are solid, the new ones... who knows...

That was a long time ago, hopefully by now we learned that any such change
must also be applied to the important
core bits before being accepted.

Cheers
Andrea

--

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 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.

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