Filtering by Location - Longitude fails
gomerpyle - November 12, 2009 - 20:14
| Project: | Location |
| Version: | 6.x-3.x-dev |
| Component: | Location_views |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I am trying to apply a filter for nodes tagged with Location information. Specifically, I am trying to filter out every thing that is not between two negative longitudes.
It would appear, when looking at the query, that the longitude is rounded to the nearest whole number which is also an issue since when dealing with longitude this does not exactly offer much precision.
A bit of testing shows that including another filter such as Node-Type causes the results to be zero (when combined with a longitude filter of any kind).
Am I doing something wrong or is this a bug. I can provide for more testing if needed.

#1
Well in my usual tradition of post-test-post some more, here is what more I have discovered.
My previous test was trying to find the nodes whose longitude was between -1.2174 and -1.5948. As both of these were being rounded to -1, the filter returned zero results.
When I change the values to -1.2174 and -2.3384, results appear just not the correct ones. Everything between -1.2174 and -1 is incorrectly included, and nothing between -2 and -2.3384 is included. This is because these numbers are being rounded to -1 and -2.
The only issue therefor is that the value is being rounded.
I don't know where to begin patching this, but still it seems like a fairly easy fix. Please correct me if I am wrong.
#2
Please ask in location module. Views does not do anything here.