Skip to main content

A powerful and efficient package designed for the SatSure Sage GIS team, enabling precise and seamless POC matching and D1-D2 matching across all states.

Project description

TerraHarmonize 🌍 🚀 Seamless & Accurate POC and D1-D2 Matching for All States

This package was built for SatSure SAGE 🛰️ to effortlessly match client data with internal datasets for proof-of-concept (POC) validation. Whether you're working with geospatial surveys, land records, or administrative data, TerraHarmonize ensures precision, efficiency, and scalability across all states.

✨ Key Features: ✅ Fast & accurate POC matching 🏹 ✅ Handles diverse data formats 📊 ✅ Designed for scalability & performance ⚡

Installation

pip install TerraHarmonize

Examples

For changing regional character to English.

from TerraHarmonize import TextFormatters,SurveyMatching

>>> string = '12/अ/1'
>>> print(TextFormatters.regional_to_english_village(string,'Hi'))
    '12/A/1'

For getting the index of the best match.

from TerraHarmonize import TextFormatters,SurveyMatching

>>> string = '13/A1'
>>> comparing_list = ['13/A1','14/A/1','12/A/1','13/అ','13-అ/1']
    #correct matching is [0,3,4] index i.e. '13/A1','13/అ','13-అ/1' 
>>> print(SurveyMatching(string,comparing_list).poc_matching_simple(split_pattern= r"\/|\-"))
    [0]
>>> print(SurveyMatching(string,comparing_list).poc_matching(include='both',state='AP'))
    [0, 3, 4]

Adding / inbetween a number and an alphabet.

from TerraHarmonize import TextFormatters,SurveyMatching

>>> data = '13/1AA/BB1/E'
>>> updated_data = TextFormatters.normalize_alpha_num_slash(data,'En')
>>> print(updated_data)
    '13/1/AA/BB/1/E'
>>> data = {
            "district": ["District A", "District B", "District C"],
            "tehsil": ["Tehsil X", "Tehsil Y", "Tehsil Z"],
            "village": ["Village 1", "Village 2", "Village 3"],
            "survey_number_client": ["13/1/अ", "23/2A", "789/1"],
            "survey_number_satsure": [["13/1", "13/1/A", "13/2/1"], ["456A", "23/2", "23/2/अ"], ["324/1", "121/2"]],
            "survey_id": [["ID_1", "ID_2", "ID_3"], ["ID_4", "ID_5", "ID_6"], ["ID_7", "ID_8"]]
            }

>>> df = pd.DataFrame(data)
>>> matching = SurveyMatching.poc_matching_dataframe(df,'survey_number_client',
                                          'survey_number_satsure','survey_id',
                                          include='both',
                                          state='MH').fillna('missing')

📖 More Examples & Usage https://github.com/CM-SS155/TerraHarmonize-Docs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

terraharmonize-0.1.6.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

terraharmonize-0.1.6-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file terraharmonize-0.1.6.tar.gz.

File metadata

  • Download URL: terraharmonize-0.1.6.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.10.14 Linux/6.8.0-100-generic

File hashes

Hashes for terraharmonize-0.1.6.tar.gz
Algorithm Hash digest
SHA256 7e92d5d30efd2994bcd8db0cab2172781dcca9d53231a72dde1e13417b2b64ff
MD5 8fe7bd4cfe9f76b6c6edc6cf6fae36c0
BLAKE2b-256 d56241b2fbf49d53aed116a0553b9b4fafb6fff109f8091916eaa1164678ffad

See more details on using hashes here.

File details

Details for the file terraharmonize-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: terraharmonize-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.10.14 Linux/6.8.0-100-generic

File hashes

Hashes for terraharmonize-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 369ac8c75b44d85659634456df2d9959552b32cb832c2a1b8df6049fcb21861a
MD5 e994bc9a6c2577822f9ebdacffae8891
BLAKE2b-256 fbf6430f819d13ac75a8787ea114df2413e58d4e0bace514791922e985b4d0a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page