Closed (cannot reproduce)
Project:
Location
Version:
6.x-3.x-dev
Component:
Location_views
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Nov 2009 at 20:14 UTC
Updated:
8 May 2012 at 12:39 UTC
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.
Comments
Comment #1
peterparker commentedWell 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.
Comment #2
dawehnerPlease ask in location module. Views does not do anything here.
Comment #3
yesct commentedPlease check to see if this is still a problem in the new release. If it is, reply with a new summary and set the status back to active.
Comment #4
ankur commentedClosing due to lack of follow up.
Comment #5
peterparker commentedVery late reply, but I can confirm that the behavior is corrected in the current dev release. Though not the 3.1 release.
Thanks.