Skip to content

python-v1.6.9 - MGRS and DD filters improved

Latest

Choose a tag to compare

@mubaldino mubaldino released this 13 Aug 20:21
· 8 commits to main since this release

Changes:

  • XCoord: MGRS and DD filters to eliminate false-positives that hit on date/time info.

Usage: pip3 install --user opensextant-1.6.9.tar.gz

API:

from opensextant.extractors.xcoord import XCoord

extractor = XCoord()

text = "Something fun happened around 38SMB46113656 .... maybe it was within 40 m of that location... "
coordinates = extractor.extract( text )

for match in coordinates:
    if not match.filtered_out:
        print("Found", match.textnorm, match.pattern_id, "Lat/Lon:", str(match.coordinate))


>> Found 38SMB46113656 MGRS-01 Lat/Lon: 32.56623,43.98384