Closed (fixed)
Project:
Views GeoJSON
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2013 at 13:10 UTC
Updated:
13 Apr 2015 at 22:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
clemens.tolboomXREF #1806048: BBOX filter not working
Comment #2
clemens.tolboomThe result from this patch is
which looks good to me.
Comment #3
dasjocould we have this optional?
unfortunately the way that the bbox argument is implemented, we can't make use of the standard views argument options which normally allows you to specify the argument behavior in that regards.
Comment #4
clemens.tolboomWhat about this. Added option to select empty result.
Comment #5
polAny status update on this please ?
Comment #6
basvredelingI've tried out the patch in number 4 (adapted to work with: #2396781: Clean up the views_geojson module) It seems to do what it says. I don't know if I really like the implementation. But it looks good to commit and it's an improvement.
Comment #7
basvredelingOkay, I've tried another approach. Please let me know what you think.
If you look at views_plugin_argument_default_bboxquery::get_argument() currently there still is a @todo in there to do some sanitization.
I've implemented some basic sanitization and set the views query to both built and executed so the query is not run and the empty result set is returned. The view is still rendered though and this returns a nice empty feature collection as in #2.
Let me know what you think and I'll create a patch.
We probably need to cleanup views_geojson_bbox_argument::query() too.
Comment #8
basvredelingI made the patch anyway. Easier to evaluate I guess.
I didn't include the views_geojson_bbox_argument::query() cleanup.
Comment #9
polHello Bas,
The patch seems a good improvement for me I will commit it as soon as you tell me what you mean by query::cleanup() ?
Thx
Comment #10
basvredelingThis is the complete patch.
By cleanup views_geojson_bbox_argument::query() I mean the following:
Comment #12
basvredelingthanks