Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change set Filters #12

Open
SPlanzer opened this issue Aug 30, 2018 · 5 comments
Open

Change set Filters #12

SPlanzer opened this issue Aug 30, 2018 · 5 comments
Labels
enhancement New feature or request

Comments

@SPlanzer
Copy link

SPlanzer commented Aug 30, 2018

The ability to filter layers via changeset

@SPlanzer SPlanzer added the enhancement New feature or request label Aug 30, 2018
@SPlanzer SPlanzer changed the title [Enhancement] Change set Filters Change set Filters Aug 30, 2018
@SPlanzer SPlanzer removed the on hold label Nov 29, 2018
@SPlanzer SPlanzer self-assigned this Dec 18, 2018
@stale
Copy link

stale bot commented Jan 18, 2019

This issue has been automatically marked as stale as there has not been any activity for sometime. The issue will be closed in 5 days if no further activity.

@stale stale bot added the Stale label Jan 18, 2019
@SPlanzer
Copy link
Author

Stalebot Config update to exclude "enhancement"

@stale stale bot removed the Stale label Jan 21, 2019
@SPlanzer SPlanzer pinned this issue Mar 25, 2019
@SPlanzer
Copy link
Author

SPlanzer commented Apr 2, 2019

QGIS does not allow the passing on non standard geoserver "viewparams" related to (https://issues.qgis.org/issues/6354) this appears to be off high priority to resolve (https://issues.qgis.org/projects/qgis/roadmap)

Will explore the use of filter as part of QgsDataSourceUri (quick test below)
or sql querying

dsu = QgsDataSourceUri()
dsu.setParam( 'url', 'https://data.linz.govt.nz/services;key=<KEY>/wfs')
dsu.setParam( 'version', '2.0.0')
dsu.setParam( 'typename', 'data.linz.govt.nz:layer-53353')
dsu.setParam( 'filter', 'viewParams=from:2019-03-17T02:25:11.373831Z;to:2019-03-24T02:02:58.156195Z')

print(dsu.encodedUri())
print(dsu.param('filter'))

layer = QgsVectorLayer( dsu.uri(), "test wfs layer", "WFS" )
print(layer.isValid())

QgsProject.instance().addMapLayer(layer)

@dwsilk
Copy link
Member

dwsilk commented Mar 18, 2020

Fixed in QGIS 3.10, backported to QGIS 3.4.13+ (issue, fix for 3.10, backport for 3.4)

@SPlanzer
Copy link
Author

SPlanzer commented Mar 18, 2020

Fixed in QGIS 3.10 and QGIS 3.4.13 (issue, fix for 3.10, backport for 3.4)

🎉

It would be great to implement this.
It is fairly low effort and I'd say is of high value to the plugin's users

@SPlanzer SPlanzer removed their assignment Oct 20, 2020
@billgeo billgeo unpinned this issue Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants