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.3.tar.gz (21.6 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.3-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: terraharmonize-0.1.3.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Windows/10

File hashes

Hashes for terraharmonize-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ac29d4cad748bff56e681e12e5f8635d4e0832922b16e9d9ee6873cd98742b68
MD5 cb99c222a7912ceb00d75e9e674d760f
BLAKE2b-256 cb6ef2abdf71d6991ea8a7b10e7152971dc4dbe10c02348d048fa85127f6514a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: terraharmonize-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Windows/10

File hashes

Hashes for terraharmonize-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 23214d981c230526cfe70077c3807d18f57ae05340253a5322ccf1aecb14bd44
MD5 9c8c7806b56146fc14d151c0678c3aaa
BLAKE2b-256 511be0049571976640ee052992365d3385f9336f049aeb6267f33dd93aaca7d3

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