[QGIS-it-user] R: R: QGis Server GetFeatureInfo e BBOX

G. Allegri giohappy a gmail.com
Ven 22 Set 2017 03:24:18 PDT


Si, con.OL puoi usare ol.format.WFS().writeGetFeature() e gli
ol.format.filter.
Esempio: http://openlayers.org/en/latest/examples/vector-wfs-getfeature.html

giovanni

Il 22 set 2017 11:59, "Francesco Marigliano" <fmarigliano a bidata.it> ha
scritto:

> Grazie Giovanni. È possibile generare l’XML in maniera automatica mediante
> OpenLayers?
>
> Stavo lavorando con ol.format.WFS ma sembra generare XML non corretti. C’è
> qualche riferimento che può tornarmi utile?
>
>
>
>
>
>
>
> *Da: *G. Allegri <giohappy a gmail.com>
> *Inviato: *venerdì 22 settembre 2017 09:33
> *A: *Francesco Marigliano <fmarigliano a bidata.it>
> *Cc: *nformica <ninofor60 a gmail.com>; Utenti QGIS it
> <qgis-it-user a lists.osgeo.org>
> *Oggetto: *Re: [QGIS-it-user] R: QGis Server GetFeatureInfo e BBOX
>
>
>
> Se pubblichi il layer come WFS (dalle proprietà del progetto) puoi fare
> una GetFeature con un Filter tipo il seguente:
>
>
>
> <wfs:GetFeature
>
> xmlns:wfs="http://www.opengis.net/wfs"
>
> service="WFS"
>
> version="1.1.0"
>
> outputFormat="json"
>
> xsi:schemaLocation="http://www.opengis.net/wfs
>
> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
>   <wfs:Query typeName="iddellayer" srsName="EPSG:3857" xmlns:LiVi="http://172.17.14.211:8080/LiVi">
>
>     <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
>
>       <ogc:BBOX>
>
>         <ogc:PropertyName>GEOMETRY</ogc:PropertyName>
>
>         <gml:Envelope xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:3067">
>
>           <gml:lowerCorner>1500000 5000000</gml:lowerCorner>
>
>           <gml:upperCorner>1501000 5001000</gml:upperCorner>
>
>         </gml:Envelope>
>
>       </ogc:BBOX>
>
>     </ogc:Filter>
>
>   </wfs:Query>
>
> </wfs:GetFeature>
>
>
>
>
>
>
>
>
>
>
>
> giovanni
>
>
>
>
>
> Il 22 set 2017 09:20, "Francesco Marigliano" <fmarigliano a bidata.it> ha
> scritto:
>
> Grazie Nino, sei stato chiarissimo. Sai se è disponibile una tipologia di
> richiesta (o un turnaround) che possa fare al caso mio?
>
>
>
>
>
>
>
> *Da: *nino formica <ninofor60 a gmail.com>
> *Inviato: *giovedì 21 settembre 2017 20:28
> *A: *Francesco Marigliano <fmarigliano a bidata.it>; Lista_utenti_Qgis
> <qgis-it-user a lists.osgeo.org>
> *Oggetto: *Re: [QGIS-it-user] QGis Server GetFeatureInfo e BBOX
>
>
>
> La richiesta GetFeatureInfo ritorna solo informazioni sulla gestire che si
> trova in un punto della mappa (il punto cliccato).
>
> L'uso del parametro "bbox" qui è diverso rispetto a quello che ha nella
> richiesta WFS GetFeature; nella GetFeatureInfo si intende che le
> coordinate in pixel del punto, sono date in modo relativo rispetto alla
> bbox.
>
>
>
> Spero di essere stato sufficientemente chiaro!
>
>
>
> Saluti
>
> Nino
>
>
>
> Il 21 set 2017 5:07 PM, "Francesco Marigliano" <fmarigliano a bidata.it> ha
> scritto:
>
> Salve a tutti,
>
>
>
> Ho una curiosità per quanto riguarda la funzionalità GetFeatureInfo di
> QGis Server.
>
>
>
> Effettuando una richiesta del tipo:
>
>
>
> https://host/wms/cartografia?SERVICE=WMS&
>
> VERSION=1.3.0&
>
> REQUEST=GetFeatureInfo&
>
> FORMAT=image%2Fpng&
>
> TRANSPARENT=true&
>
> QUERY_LAYERS= [[ Elenco dei layers ]]
>
> &INFO_FORMAT=text%2Fxml&
>
> I=50&J=50&
>
> CRS=EPSG%3A3857&
>
> STYLES=&
>
> WIDTH=101&
>
> HEIGHT=101&
>
> BBOX=1596701.4326877764%2C5022764.6670024395%2C1596822.0598730391%
> 2C5022885.294187702
>
>
>
> Il server risponde correttamente riportandomi le Features intorno al punto
> selezionato su mappa.
>
>
>
> Se al posto del punto seleziono un rettangolo e passo al server il BBOX
> generato dalla sue estensione, non ottengo tutte le Features presenti in
> esso, ma quelle che avrei ottenuto in una richiesta simile alla precedente.
> Faccio qualche errore nella richiesta oppure questa funzionalità non esiste.
>
>
>
> Grazie.
>
>
>
> Saluti,
> Francesco
>
>
>
>
>
>
>
>
>
> [image:
> https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>
> Mail priva di virus. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>
>
> _______________________________________________
> QGIS-it-user mailing list
> QGIS-it-user a lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
>
>
>
>
>
> _______________________________________________
> QGIS-it-user mailing list
> QGIS-it-user a lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
>
>
>
>
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.osgeo.org/pipermail/qgis-it-user/attachments/20170922/63fa7e82/attachment-0001.html>


Maggiori informazioni sulla lista QGIS-it-user