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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file terraharmonize-0.1.5.tar.gz.
File metadata
- Download URL: terraharmonize-0.1.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4159ae737b38c2c04e7f9a2ec1f31b83c0d35b9f9da5eb42f0e368c716b6602
|
|
| MD5 |
5969bf821ab85e4fb60dbe1cfd017f94
|
|
| BLAKE2b-256 |
c7a1ed4fe20a55a2a66d9a3ef46aabcf23379ae9cc51e453991ea4a3d2bab830
|
File details
Details for the file terraharmonize-0.1.5-py3-none-any.whl.
File metadata
- Download URL: terraharmonize-0.1.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73ebbff711cd4a5b3fa6632e777ee1c8b4c0a58d2ec508c82089adf81729469e
|
|
| MD5 |
49638cea8517839d6e794fbbc984ac3d
|
|
| BLAKE2b-256 |
8b9ae27eb9a943b9abc56d386ba2e9e0b3a058585f93738dd8c0497dba0e15ac
|