You need to look at (for example) PostgisFilterToSQL - which is where the
generic GeoTools filter is converted to the database specific SQL query.
The *FilterToSQL classes are written as visitors which walk down the filter
tree and carry out an operation at each node of the tree. Other DB specific
parts of the query (encoding geometry etc)  are handled in the Dialect
class.

IFAIK there is no tutorial for this as it isn't something that gets done
very often, your best bet is to discuss any problems you run in to on the
GeoTools lists.

Ian

On 17 January 2017 at 11:48, Firefly <[email protected]> wrote:

> Hi,
>
> So I've managed to make DataStore that connects to InfuxDB and fetches the
> data. Now, I would like to implement filtering with CQL, so that I don't
> fetch all data from DB, but only the ones that I specify.
> Specifically, based on the parameters I enter (for example 4/10
> parameters),
> I would execute specific InfluxQL query on database and fetch data with
> only
> those 4 parameters.
>
> I think that postgis plugin works that way, you specify the parameters in
> CQL and from it the SQL query is created and only specified data is
> fetched.
> I want to accomplish basically the same thing.
>
> I was wondering is there any tutorial/documentation for this, where I can
> find how to implement this kind of filtering? What is the best approach
> regarding this?
>
> Best regards,
> Maja
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.
> nabble.com/Custom-InfluxDB-datastore-implementing-filtering-tp5303706.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 
Ian Turton
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to