TerriaJS / terriajs

A library for building rich, web-based geospatial data platforms.
https://terria.io
Apache License 2.0
1.18k stars 364 forks source link

WFS - limit by bbox #4648

Open zoran995 opened 4 years ago

zoran995 commented 4 years ago

In the next branch, there is an indication of limit of 1000 features when WFS layer contains more than 1000 features. Maybe this could be extended to enable the user to request a smaller region of data using bbox. Was also thinking about using initial bbox when loading data, but it can cause problems when there is under 1000 features, not all data will be loaded. As far as I know, WFS doesn't expose a number of features in the GetCapabilities response.

@nf-s what do you think about this

nf-s commented 4 years ago

Yep love that idea, shouldn't be too hard to add. It is just a matter of figuring out the UI element to handle this kind of thing. image I guess it could be in the drop down as something like "Limit by extent" or we could add a button after the feature limit warning. Which sounds better to you @zoran995 ?

zoran995 commented 4 years ago

I would go with a button under limit warning, as it will be pretty often used with WFS. Many users won't know how to find if it is in the dropdown (they won't know that option exist).

zoran995 commented 4 years ago

Also as a possible idea for this is a refresh (reload data) button for dataset with more than 1000 features. It would work the way that user zoom to an area of interest and click reload data.