[Gfoss] filtrare WMS in QGIS

Ciao a tutti,
sto lavorando con QGIS desktop ed ho necessità di effettuare un filtro ad un
layer WMS generato con geoserver utilizzando CQL_FILTER.

Credo che l'indirizzo a cui mi connetto da QGIS sia corretto come sintassi:
http://localhost:8080/geoserver/nomeworkspace/wms?version=1.1.0&layers=nomeworkspace:nomelayer&CQL_FILTER=nomecampo=valorenumerico

Come risultato visualizzo correttamente il layer ma non è applicato alcun
filtro.
Come posso fare?
Grazie

--
View this message in context: http://gfoss-geographic-free-and-open-source-software-italian-mailing.3056002.n2.nabble.com/filtrare-WMS-in-QGIS-tp7596782.html
Sent from the Gfoss -- Geographic Free and Open Source Software - Italian mailing list mailing list archive at Nabble.com.

Ciao,
CQL_FILTER è una estensione di GeoServer al procollo WMS, è utile, ma fuori
standard.
Il problema di far partecipare client che non sono a conoscenza
dell'estensione è abbastanza
comune, è stata sviluppata una estensione "community" (non ufficialmente
supportata) per
risolvere la questione:

http://docs.geoserver.org/stable/en/user/community/params-extractor/index.html

Non essendo supportata non è parte delle release, ma la puoi trovare fra le
nightly builds,
se ad esempio usi una 2.10.x il plugin è qui:
http://ares.boundlessgeo.com/geoserver/2.10.x/community-latest/

Ciao
Andrea

2017-03-22 10:19 GMT+01:00 Emanuele Tataranni <emanuele.tataranni@evalmet.it

:

Ciao a tutti,
sto lavorando con QGIS desktop ed ho necessità di effettuare un filtro ad
un
layer WMS generato con geoserver utilizzando CQL_FILTER.

Credo che l'indirizzo a cui mi connetto da QGIS sia corretto come sintassi:
http://localhost:8080/geoserver/nomeworkspace/wms?version=1.1.0&layers=
nomeworkspace:nomelayer&CQL_FILTER=nomecampo=valorenumerico

Come risultato visualizzo correttamente il layer ma non è applicato alcun
filtro.
Come posso fare?
Grazie

--
View this message in context: http://gfoss-geographic-free-
and-open-source-software-italian-mailing.3056002.n2.
nabble.com/filtrare-WMS-in-QGIS-tp7596782.html
Sent from the Gfoss -- Geographic Free and Open Source Software - Italian
mailing list mailing list archive at Nabble.com.
_______________________________________________
Gfoss@lists.gfoss.it
http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss
Questa e' una lista di discussione pubblica aperta a tutti.
I messaggi di questa lista non hanno relazione diretta con le posizioni
dell'Associazione GFOSS.it.
808 iscritti al 07/03/2017

--

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.

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

Grazie mille,
non esiste quindi una modalità diretta con parametri diversi da CQL_Filter
per effettuare filtri WMS in QGIS?

--
View this message in context: http://gfoss-geographic-free-and-open-source-software-italian-mailing.3056002.n2.nabble.com/filtrare-WMS-in-QGIS-tp7596782p7596784.html
Sent from the Gfoss -- Geographic Free and Open Source Software - Italian mailing list mailing list archive at Nabble.com.

Ciao,
no, il protocollo WMS base non supporta filtraggio di alcun tipo

Per la verità esiste una estensione opzionale, che pochi implementano, che
consente di spedire un intero foglio di stile SLD al
server (GeoServer la implementa).
Nell'SLD si possono specificare filtri, ma è una soluzione quantomeno
problematica, perchè devi anche ripetere tutto lo styling del layer.

Ciao
Andrea

2017-03-22 11:24 GMT+01:00 Emanuele Tataranni <emanuele.tataranni@evalmet.it

:

Grazie mille,
non esiste quindi una modalità diretta con parametri diversi da CQL_Filter
per effettuare filtri WMS in QGIS?

--
View this message in context: http://gfoss-geographic-free-
and-open-source-software-italian-mailing.3056002.n2.
nabble.com/filtrare-WMS-in-QGIS-tp7596782p7596784.html
Sent from the Gfoss -- Geographic Free and Open Source Software - Italian
mailing list mailing list archive at Nabble.com.
_______________________________________________
Gfoss@lists.gfoss.it
http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss
Questa e' una lista di discussione pubblica aperta a tutti.
I messaggi di questa lista non hanno relazione diretta con le posizioni
dell'Associazione GFOSS.it.
808 iscritti al 07/03/2017

--

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.

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

Io faccio cosi':

inserisco il filtro nella definzione della stringa di connessione del
server wms e poi mi ci collego.
Occorre pero' impostare la checkbox che gli dice di ignorare il GetMap
dal GetCapabilities,
altrimenti usa il getmap da tale risposta e ti esclude il filtro.

Poi, ovviamente, come ti hanno risposto altri devi conoscere a priori
la formula del filtro perche' e' fuori standard,
a meno che non sia qualcsa distandard come per il WMS-Time o il WMS-Dimensional.

A.

Il 22 marzo 2017 10:19, Emanuele Tataranni
<emanuele.tataranni@evalmet.it> ha scritto:

Ciao a tutti,
sto lavorando con QGIS desktop ed ho necessità di effettuare un filtro ad un
layer WMS generato con geoserver utilizzando CQL_FILTER.

Credo che l'indirizzo a cui mi connetto da QGIS sia corretto come sintassi:
http://localhost:8080/geoserver/nomeworkspace/wms?version=1.1.0&layers=nomeworkspace:nomelayer&CQL_FILTER=nomecampo=valorenumerico

Come risultato visualizzo correttamente il layer ma non è applicato alcun
filtro.
Come posso fare?
Grazie

--
View this message in context: http://gfoss-geographic-free-and-open-source-software-italian-mailing.3056002.n2.nabble.com/filtrare-WMS-in-QGIS-tp7596782.html
Sent from the Gfoss -- Geographic Free and Open Source Software - Italian mailing list mailing list archive at Nabble.com.
_______________________________________________
Gfoss@lists.gfoss.it
http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss
Questa e' una lista di discussione pubblica aperta a tutti.
I messaggi di questa lista non hanno relazione diretta con le posizioni dell'Associazione GFOSS.it.
808 iscritti al 07/03/2017

--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------

2017-03-22 15:01 GMT+01:00 Andrea Peri <aperi2007@gmail.com>:

Io faccio cosi':

inserisco il filtro nella definzione della stringa di connessione del
server wms e poi mi ci collego.
Occorre pero' impostare la checkbox che gli dice di ignorare il GetMap
dal GetCapabilities,
altrimenti usa il getmap da tale risposta e ti esclude il filtro.

Ah ha, ottima idea!

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

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