Skip to main content

Indian Grid Converter

A Python library for converting WGS84 latitude and longitude coordinates to the Indian Grid System and vice versa.

Features

  • Convert WGS84 latitude and longitude to the Indian Grid System.
  • Convert Indian Grid System coordinates back to WGS84 latitude and longitude.
  • Accurate calculations based on the Indian grid system parameters.

Installation

You can install the package using either of the following methods:

Using pip:

pip install indiagrid

Installing from GitHub:

pip install git+https://github.com/goki75/indiagrid.git

Usage

Converting WGS84 to Indian Grid System

from indiagrid import wgs84_to_igs

result = wgs84_to_igs(lat=28.7041, lon=77.1025)
print(result)

Output:

{'Easting': 3632281.67, 'Northing': 531791.54, 'Grid': 'I'}

Converting Indian Grid System to WGS84

from indiagrid import igs_to_wgs84

reverse_result = igs_to_wgs84(3632281.67, Nth=531791.54, grid="I")
print(reverse_result)

Output:

{'latitude': 28.704099993002522, 'longitude': 77.10249995658076}

Parameters

wgs84_to_igs

  • lat (float): Latitude in decimal degrees.
  • lon (float): Longitude in decimal degrees.
  • esterr (float, optional): Easting error adjustment. Default is 0.
  • ntherr (float, optional): Northing error adjustment. Default is 0.

igs_to_wgs84

  • Eth (float): Easting in the Indian grid system.
  • Nth (float): Northing in the Indian grid system.
  • grid (str): Grid region (e.g., 'I', 'IIA', etc.).
  • esterr (float, optional): Easting error adjustment. Default is 0.
  • ntherr (float, optional): Northing error adjustment. Default is 0.

License

This project is licensed under the GPLv2 License.

Metadata

Release files for indiagrid 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for indiagrid 0.4.1
File Size Uploaded Provenance Actions
indiagrid-0.4.1.tar.gz 13.5 kB Without provenance Details for indiagrid-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for indiagrid 0.4.1
File Interpreter ABI Platform Actions
indiagrid-0.4.1-py3-none-any.whl Python 3 none any Details for indiagrid-0.4.1-py3-none-any.whl

Total release size: 27.3 kB

Release files / indiagrid-0.4.1.tar.gz

Download URL indiagrid-0.4.1.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1096ea43913eb88c8b8a6725b753c30a9818ef2b9dfdc4218e00a21013cde1b6
BLAKE2b-256 checksum
How to use checksums
aed33fc3f2869ef400579c2a2844ac730697c148153a44faeb2614cb09fc0d0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.12

Release files / indiagrid-0.4.1-py3-none-any.whl

Download URL indiagrid-0.4.1-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bb62cf9d710adf39d42953289b34156ca3af17ee9c597b2638c1c5321ca15ed
BLAKE2b-256 checksum
How to use checksums
a38fe145206bd4b67de15e6fa30fabe30728edc11598b1160eff12d8f596f4b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.12

Security for indiagrid 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page