From guglielmo.raimondi at gmail.com Thu Apr 28 01:16:46 2022 From: guglielmo.raimondi at gmail.com (Guglielmo Raimondi) Date: Thu, 28 Apr 2022 10:16:46 +0200 Subject: [qgis-qwc2] Filtering features, client side Message-ID: Hi everyone, I would like to filter the features of a layer based on a filter decided by the user, on the client side, which produces a list of primary key identifiers corresponding to the features to be displayed. In my code, I build the list with a database query written in *php *and I would like to pass the filter to qwc2 with a procedure written in *javascript*. At the moment I was only able to calculate the bounding box of the selection of filtered objects and to command the zoom to the same extent on qwc2, using the *window.qwc2.zoomToExtent ()* function. Is there a procedure to also control the features filter? Assuming that: - *$filter* variable contains the filter decided by the user; - the frame containing qwc2 is "*gfx*"; - *s_bene_tutelato* is the layer to be filtered, offered by a Qgis Server and based on the homonymous table of a PostgreSQL + PostGIS database , this is my code: $str_sql = "SELECT '[' || replace(replace(substring(ST_Expand(ST_Extent(ST_Transform(geom, 32632)), 10000)::text from 5 for 100), ' ', ','), ')', ']') FROM public.s_bene_tutelato" ; if (strlen($filter) > 0) { $str_sql = $str_sql . " where " . $filter; } $filter_extent = ExecuteScalar($str_sql); ?> From amitucethumanities at gmail.com Fri Apr 29 23:57:30 2022 From: amitucethumanities at gmail.com (Amit Purushottam) Date: Sat, 30 Apr 2022 12:27:30 +0530 Subject: [qgis-qwc2] qgis-qwc2 Digest, Vol 36, Issue 1 In-Reply-To: References: Message-ID: Dear Sir/Madam This email brings vitality. Research Updates have been noted. Collaborating for Climate Change Initiatives. Currently,Our Team is looking for Lithium Li96 extraction in Jharkhand and Bihar,India,for Electric Vehicles Manufacturing and Making Electric Vehicles economical for everyone. Thanking Dr Amit Purushottam CEO CARCS.IN 6204323465 On Tue, 5 Oct 2021 at 00:32, wrote: > Send qgis-qwc2 mailing list submissions to > qgis-qwc2 at lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > or, via email, send a message with subject or body 'help' to > qgis-qwc2-request at lists.osgeo.org > > You can reach the person managing the list at > qgis-qwc2-owner at lists.osgeo.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of qgis-qwc2 digest..." > > > Today's Topics: > > 1. Fwd: Greetings (Amit Purushottam) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 4 Oct 2021 14:08:31 +0530 > From: Amit Purushottam > To: qgis-qwc2 at lists.osgeo.org > Subject: [qgis-qwc2] Fwd: Greetings > Message-ID: > 7OXfSw at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Dear Sir > > This email brings vitality. > > Thank you for subscribing. > > As an active member,all support for development and research work in > QGIS,Coding,and field analytics. > Also,to collaborate and coordinate for QGIS Field Data Analytics. > > Ever grateful to you. > > Thanking > > Regards > > Dr Amit Purushottam > HOD,Dept. of Humanities and Social Sciences, > University College of Engineering and Technology, > Vinoba Bhave University, > Hazaribagh-825301, > Jharkhand > 6204323465 > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.osgeo.org/pipermail/qgis-qwc2/attachments/20211004/194a47c0/attachment-0001.html > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > qgis-qwc2 mailing list > qgis-qwc2 at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > > > ------------------------------ > > End of qgis-qwc2 Digest, Vol 36, Issue 1 > **************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: