We need the ability to query the PostGIS database on-the-fly. For example, if the user draws an area or define an area, then I will query the database and display the data only in the selected area. The PostgreSQLFeatureLayer only accepts a table name, can not pass in a query string
We have very large data tables that continuously grow so I can not retrieve the whole table every time an area is selected.
Please advise me what is the best way to do this?