Skip to main content

A library for WGS84 to Indian Grid System conversion.

Project description

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.

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

indiagrid-0.4.1.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

indiagrid-0.4.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file indiagrid-0.4.1.tar.gz.

File metadata

  • Download URL: indiagrid-0.4.1.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.12

File hashes

Hashes for indiagrid-0.4.1.tar.gz
Algorithm Hash digest
SHA256 1096ea43913eb88c8b8a6725b753c30a9818ef2b9dfdc4218e00a21013cde1b6
MD5 c7980d16903068f0599253c598151bc7
BLAKE2b-256 aed33fc3f2869ef400579c2a2844ac730697c148153a44faeb2614cb09fc0d0b

See more details on using hashes here.

File details

Details for the file indiagrid-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: indiagrid-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.12

File hashes

Hashes for indiagrid-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8bb62cf9d710adf39d42953289b34156ca3af17ee9c597b2638c1c5321ca15ed
MD5 8adaa477fdb189d77c1706974b9e9f90
BLAKE2b-256 a38fe145206bd4b67de15e6fa30fabe30728edc11598b1160eff12d8f596f4b5

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