cgeo / cgeo

c:geo - The powerful Android geocaching app.
www.cgeo.org
Apache License 2.0
1.41k stars 569 forks source link

distance filter doesn't work correctly #16194

Open tinkus-gc opened 1 month ago

tinkus-gc commented 1 month ago

Describe your problem!

When I'm using the distance filter in c:geo not all caches in a certain distance range are filtered correctly, see description and attached screenshots (with faked location for privacy).

How to reproduce?

  1. create a new list
  2. put a cache with a distance of e.g. 411 km to your current location on this list (for me: GC5E7ZA)
  3. create a new filter with distance <=499 km

Actual result after these steps?

The filtered list is empty.

Expected result after these steps?

The filtered list should show the cache (because 411 <= 499).

Reproducible

Yes

c:geo Version

2024.09.18

System information

## System information

c:geo version: 2024.09.18

Device:
-------
- Device type: Pixel 8a (akita, google)
- Available processors: 9
- Android version: 14
- Android build: AP2A.240905.003.A1
- Screen resolution: 1080x2153px (411x820dp)
- Pixel density: 2.625
- System font scale: 1.0 / used scale: 1.0
- Sailfish OS detected: false
- Google Play services: enabled - 24.38.34 (190400-681941525)
- Memory:  Available:1.7 GB, Total:7.4 GB, Threshold: 216.0 MB, low:false

Sensor and location:
-------
- Low power mode: inactive
- Compass capabilities: yes
- Rotation vector sensor: present
- Orientation sensor: present
- Magnetometer & Accelerometer sensor: present
- Direction sensor used: rotation vector

Program settings:
-------
- Settings: v9, Count:334
- Set language: en
- System date format: M/d/yy
- Time zone: GMT+02:00
- Debug mode active: no
- Log Settings: debug=false, minLevel=WARN, minAddCallerInfo=NONE, addCallerInfoMaxDepth=8, throwOnError=false, transactionSizes=false
- Last manual backup: Oct 4, 12:39 PM
- Last auto backup: Oct 9, 12:12 PM
- Routing mode: Straight (shortest.brf / trekking.brf / car-eco.brf / car-fast.brf / fastbike.brf)
- Live map mode: false
- Use unified map: false
- OSM multi-threading: true / threads: 4
- Map: Combined (Offline)
 - Id: cgeo.geocaching.maps.mapsforge.MapsforgeMapProvider$OfflineMultiMapSource
 - Atts: Alps (OAM).map: / #VectorMaps:(c)Christian Kernbeis, GeneralMaps:(c)Michael Bechtold, Themes:(c)Tobias Kuehn, www.openandromaps.org 2012-2024 #Hoehendaten: sonny.4lima.de, viewfinderpanoamas.org, NASA #Kartendaten: openstreetmap.org /  / Baden-Wuerttemberg (OAM).map: / #VectorMaps:(c)Christian Kernbeis, GeneralMaps:(c)Michael Bechtold, Themes:(c)Tobias Kuehn, www.openandromaps.org 2012-2024 #Hoehendaten: sonny.4lima.de, viewfinderpanoamas.org, NASA #Kartendaten: openstreetmap.org /  / Bayern (OAM).map: / #VectorMaps:(c)Christian Kernbeis, GeneralMaps:(c)Michael Bechtold, Themes:(c)Tobias Kuehn, www.openandromaps.org 2012-2024 #Hoehendaten: sonny.4lima.de, viewfinderpanoamas.org, NASA #Kartendaten: openstreetmap.org /  / France-North (OAM).map: / #VectorMaps:(c)Christian Kernbeis, GeneralMaps:(c)Michael Bechtold, Themes:(c)Tobias Kuehn, www.openandromaps.org 2012-2024 #Hoehendaten: sonny.4lima.de, viewfinderpanoamas.org, NASA #Kartendaten: openstreetmap.org /  / France-South (OAM).map: / #VectorMaps:(c)Christian Kernbeis, GeneralMaps:(c)Michael Bechtold, Themes:(c)Tobias Kuehn, www.openandromaps.org 2012-2024 #Hoehendaten: sonny.4lima.de, viewfinderpanoamas.org, NASA #Kartendaten: openstreetmap.org /  / Germany (OAM).map: / #VectorMaps:(c)Christian Kernbeis, GeneralMaps:(c)Michael Bechtold, Themes:(c)Tobias Kuehn, www.openandromaps.org 2012-2024 #Hoehendaten: sonny.4lima.de, viewfinderpanoamas.org, NASA #Kartendaten: openstreetmap.org /  / Germany_V3.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2019 /  / Italy-North (OAM).map: / #VectorMaps:(c)Christian Kernbeis, GeneralMaps:(c)Michael Bechtold, Themes:(c)Tobias Kuehn, www.openandromaps.org 2012-2024 #Hoehendaten: sonny.4lima.de, viewfinderpanoamas.org, NASA #Kartendaten: openstreetmap.org /  / Italy-South (OAM).map: / #VectorMaps:(c)Christian Kernbeis, GeneralMaps:(c)Michael Bechtold, Themes:(c)Tobias Kuehn, www.openandromaps.org 2012-2024 #Hoehendaten: sonny.4lima.de, viewfinderpanoamas.org, NASA #Kartendaten: openstreetmap.org
 - Theme: Elevate.zip:Elevate.xml

Filters:
-------
- Hide waypoints: original
- LIVE: Status: Found=No, Exclude Archived ({"advanced":true,"inconclusive":false,"tree":{"type":"AND","children":[{"type":"status","config":{"values":["found_no","exclude_archived"]}}]}})
- OFFLINE: Cache Type: Adv Lab ({"advanced":true,"inconclusive":false,"tree":{"type":"AND","children":[{"type":"type","config":{"values":["ADVLAB"]}}]}})
- Additional stored filters: 11

Services:
-------
- Geocaching sites enabled:
  - geocaching.com: Logged in (Login OK) / PREMIUM
  - Geocaching.com Adventure Lab
  - opencaching.de: Logged in (Login OK)
- Geocaching.com date format: dd/MMM/yyyy
- Geocaching.com website language: de-DE
- Last login error on geocaching.com: communication error //  (2024-09-25 21-35)
- Last successful login on geocaching.com: 2024-10-09 15-55
- Routing: internal / BRouter installed: false

Permissions
-------
- ACCESS_COARSE_LOCATION: granted
- ACCESS_FINE_LOCATION: granted
- READ_CONTACTS: DENIED
- WRITE_EXTERNAL_STORAGE: DENIED
- POST_NOTIFICATIONS: granted

Paths
-------
- System internal c:geo dir: /data/user/0/cgeo.geocaching (72.0 GB free) v3 internal isDir(12 entries)
- Legacy User storage c:geo dir: /data/user/0/cgeo.geocaching (72.0 GB free) v3 internal isDir(12 entries)
- Geocache data: /storage/emulated/0/Android/data/cgeo.geocaching/files/GeocacheData (72.0 GB free) v3 external non-removable isDir(15213 entries)
- Internal theme sync (is turned ON): /data/user/0/cgeo.geocaching/MapThemeData (72.0 GB free) v3 internal isDir(5 entries)
- Map render theme path: Elevate.zip:Elevate.xml
- Public Folders: #13
 - BASE: content://com.android.externalstorage.documents/tree/primary:cgeo/document/primary:cgeo (av:true, files:>=12, size:>=1.7 MB, free:>=72.0 GB)
 - OFFLINE_MAPS: content://com.android.externalstorage.documents/tree/primary:mapfiles/document/primary:mapfiles (av:true, files:>=17, size:>=19.4 GB, free:>=72.0 GB)
 - OFFLINE_MAP_THEMES: content://com.android.externalstorage.documents/tree/primary:mapstyles/document/primary:mapstyles (av:true, files:>=4, size:>=999.3 KB, free:>=72.0 GB)
 - OFFLINE_MAP_SHADING: content://com.android.externalstorage.documents/tree/primary:mapfiles/document/primary:mapfiles/_hgt (av:true, files:>=0, size:>=0 B, free:>=72.0 GB)
 - LOGFILES: content://com.android.externalstorage.documents/tree/primary:cgeo/document/primary:cgeo/logfiles (av:true, files:>=12, size:>=1.7 MB, free:>=72.0 GB)
 - GPX: content://com.android.externalstorage.documents/tree/primary:Download/Geocaching/document/primary:Download/Geocaching (av:true, files:>=93, size:>=71.5 MB, free:>=72.0 GB)
 - BACKUP: content://com.android.externalstorage.documents/tree/primary:cgeo/document/primary:cgeo/backup (av:true, files:>=20, size:>=875.3 MB, free:>=72.0 GB)
 - FIELD_NOTES: content://com.android.externalstorage.documents/tree/primary:cgeo/document/primary:cgeo/field-notes (av:true, files:>=7, size:>=8.6 KB, free:>=72.0 GB)
 - SPOILER_IMAGES: content://com.android.externalstorage.documents/tree/primary:cgeo/document/primary:cgeo/GeocachePhotos (av:true, files:>=0, size:>=0 B, free:>=72.0 GB)
 - ROUTING_BASE: content://com.android.externalstorage.documents/tree/primary:cgeo/document/primary:cgeo/routing (av:true, files:>=21, size:>=1.4 GB, free:>=72.0 GB)
 - ROUTING_TILES: content://com.android.externalstorage.documents/tree/primary:cgeo/document/primary:cgeo/routing/segments4 (av:true, files:>=13, size:>=1.4 GB, free:>=72.0 GB)
 - WHERIGO: content://com.android.externalstorage.documents/tree/primary:cgeo/document/primary:cgeo/wherigo (av:true, files:>=0, size:>=0 B, free:>=72.0 GB)
 - TEST_FOLDER: file:///data/user/0/cgeo.geocaching/files/unittest (av:true, files:>=0, size:>=0 B, free:>=72.0 GB)
- PersistedDocumentUris: #2
 - PROXIMITY_NOTIFICATION_FAR: null
 - PROXIMITY_NOTIFICATION_CLOSE: null
- Persisted Uri Permissions: #4
 - content://com.android.externalstorage.documents/tree/primary:mapstyles (May 13, 7:13 PM):RW
 - content://com.android.externalstorage.documents/tree/primary:Download/Geocaching (May 13, 7:11 PM):RW
 - content://com.android.externalstorage.documents/tree/primary:cgeo (May 13, 6:48 PM):RW
 - content://com.android.externalstorage.documents/tree/primary:mapfiles (May 13, 7:13 PM):RW

Database
-------
- File: /data/user/0/cgeo.geocaching/databases/data (v103, Size:446.7 MB) on system internal storage
- Data: {cg_attributes=123095, cg_caches=18506, cg_caches_lists=21222, cg_categories=446, cg_extension=203, cg_filters=11, cg_lists=98, cg_logCount=97567, cg_logImages=131412, cg_logs=601390, cg_logs_offline=1, cg_logs_offline_images=0, cg_logs_offline_trackables=4, cg_route=0, cg_search_destination_history=0, cg_spoilers=20935, cg_trackables=2329, cg_trail_history=1000, cg_variables=14469, cg_waypoints=28180}
- Extension Data: {DBEXTENSION_DOWNGRADEABLE_DBVERSION=1, DBEXTENSION_EMOJILRU=5, DBEXTENSION_FOUNDNUM=2, DBEXTENSION_LAST_TRACKABLE_ACTION=87, DBEXTENSION_ONE_TIME_DIALOGS=5, DBEXTENSION_POCKETQUERY_HISTORY=95, DBEXTENSION_TRACKFILES=8}

--- End of system information ---

Additional Information

2024-10-09 17 23 04 2024-10-09 17 21 45 2024-10-09 17 56 55

tinkus-gc commented 1 month ago

BTW: Sorting downwards by distance also doesn't work. For example, I have a list where the order of the first caches on the list are (when sorted downwards by distance): 616 km 449 km 459 km 416 km 128 km 615 km ...