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

Limiting number of rows in WFS request to build table results in truncated download #18

Open
umbe1987 opened this issue Aug 1, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@umbe1987
Copy link
Owner

umbe1987 commented Aug 1, 2019

The limit to requests a maximum of 200 records from WFS to build the Attribute Table causes the download of the same only 200 records.

export function GetFeatureURL(url, typename) {
// generate a GetFeature request
// WARNING: MAXFEATURES set to 200 not to stress the server!!!
url += "SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&MAXFEATURES=200&";
url = url + "TYPENAME=" + typename + "&";
return url;
}

Either I create a sort of pagination to split the requests in 200 records per page, or I should remove the final part of the WFS URL request passed in the downolad button like url.replace('&MAXFEATURES=200&','');.

// finally creates the download button (to be placed in the footer)
var button = downloadBtn(url);
return [table, button];

@umbe1987 umbe1987 added the bug Something isn't working label Aug 1, 2019
@umbe1987
Copy link
Owner Author

umbe1987 commented Aug 1, 2019

Use the STARTINDEX "extra parameters" of QGIS Server (should be supported by Geoserver and Mapserver as well).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant