Sumeeth Tewar Posted December 12, 2019 Share Posted December 12, 2019 Hello, I am trying to filter rows based on if data in the row is located in a particular latitude(real) and longitude (real) location. The following is what is being used: table=Document.Data.Tables['markers']; rowSelection=table.Select('"Full Name" "'+variableValue+'" AND ' + ' latitude= '+ variableValue1+ ' AND longitude =' + variableValue2); print('selected rows: ' + str(rowSelection.AsIndexSet())); cursorQxMinValue = DataValueCursor.CreateFormatted(table.Columns["QxMin"]); for childRow in tableRef.GetRows(rowSelection.AsIndexSet(),cursorQxMinValue): print 'found rows: ' From the table the latitude and longitude exists in atleast 3rows, but the code doesnt fetch any. Please note when i remove the latitude and longitude filters from above query, it works fine! o/p is selected rows: 0000 Can you please let me know whats wrong here Link to comment Share on other sites More sharing options...
Khushboo Rabadia Posted February 29, 2020 Share Posted February 29, 2020 Values passed in variables for latitude and longitude should exactly match that in dataset i.e. if dataset has 8 digits after decimal and you provide only two digits after decimal, then it will show only 0 records Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now