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

GeoJSON MaxFeatures problem #4966

Closed
jacmendt opened this issue Jul 28, 2014 · 2 comments
Closed

GeoJSON MaxFeatures problem #4966

jacmendt opened this issue Jul 28, 2014 · 2 comments

Comments

@jacmendt
Copy link

The "MAXFEATURES" parameter together with a WFS request, which wants as a response a geojson, is not running correctly in my setup. In most cases my response is empty without a debug message (also with DEBUG 5). When I leave the "MAXFEATURES" parameter away, the response is like expected.

This request runs good:
http://194.95.145.43/cgi-bin/mtbows?map=/srv/vk/data_archiv/mapfiles/referenced_wms/historisch_messtischblaetter/test_ticket.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=getfeature&TYPENAME=mapsearch&srsname=EPSG:900913&bbox=944591.5076380552,6265226.551133055,2118664.26193493,6999022.022568602&outputformat=geojson&format=application/json;%20subtype=geojson

This request failed:
http://194.95.145.43/cgi-bin/mtbows?map=/srv/vk/data_archiv/mapfiles/referenced_wms/historisch_messtischblaetter/test_ticket.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=getfeature&TYPENAME=mapsearch&srsname=EPSG:900913&bbox=944591.5076380552,6265226.551133055,2118664.26193493,6999022.022568602&outputformat=geojson&format=application/json;%20subtype=geojson&MAXFEATURES=10000

Test data (shapefile), the mapfile and two test request you find it the tar archive. The password for download the data is "mapserver".

https://homegate.slub-dresden.de/owncloud/public.php?service=files&t=1bc90333da51a8e956a58f5dff6bb2f0

Hope that helps.

Kind regards,

Jacob

@jratike80
Copy link

The download link does not work any more. If nobody else has reacted I can try to reproduce your issue.

@juliensam
Copy link
Contributor

I just tested with the master branch and could get a GeoJSON from MapServer with both maxfeatures and no maxfeatures clause. I suspect a problem in your data. I'm closing the issue, please reopen if you can reproduce and provide more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants