indiagrid


Nameindiagrid JSON
Version 0.4.0 PyPI version JSON
download
home_pagehttps://github.com/goki75/indiagrid
SummaryA library for WGS84 to Indian Grid System conversion.
upload_time2025-01-11 10:17:51
maintainerNone
docs_urlNone
authorG Kiran
requires_python>=3.1
licenseGNU Lesser General Public License v2.1
keywords location geography encoding decoding latitude longitude
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:

```bash
pip install indiagrid
```

### Installing from GitHub:

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

## Usage

### Converting WGS84 to Indian Grid System

```python
from indiagrid import wgs84_to_igs

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

**Output**:

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

### Converting Indian Grid System to WGS84

```python
from indiagrid import igs_to_wgs84

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

**Output**:

```python
{'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**.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/goki75/indiagrid",
    "name": "indiagrid",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.1",
    "maintainer_email": null,
    "keywords": "location, geography, encoding, decoding, latitude, longitude",
    "author": "G Kiran",
    "author_email": "G Kiran <goki75@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/89/c6/f9214a4b07308241c60769d48f8a016077a62a6a0d08de8367a8c2392b7f/indiagrid-0.4.0.tar.gz",
    "platform": null,
    "description": "# Indian Grid Converter\r\n\r\nA Python library for converting WGS84 latitude and longitude coordinates to the Indian Grid System and vice versa.\r\n\r\n## Features\r\n\r\n- Convert WGS84 latitude and longitude to the Indian Grid System.\r\n- Convert Indian Grid System coordinates back to WGS84 latitude and longitude.\r\n- Accurate calculations based on the Indian grid system parameters.\r\n\r\n## Installation\r\n\r\nYou can install the package using either of the following methods:\r\n\r\n### Using pip:\r\n\r\n```bash\r\npip install indiagrid\r\n```\r\n\r\n### Installing from GitHub:\r\n\r\n```bash\r\npip install git+https://github.com/goki75/indiagrid.git\r\n```\r\n\r\n## Usage\r\n\r\n### Converting WGS84 to Indian Grid System\r\n\r\n```python\r\nfrom indiagrid import wgs84_to_igs\r\n\r\nresult = wgs84_to_igs(lat=28.7041, lon=77.1025)\r\nprint(result)\r\n```\r\n\r\n**Output**:\r\n\r\n```python\r\n{'Easting': 3632281.67, 'Northing': 531791.54, 'Grid': 'I'}\r\n```\r\n\r\n### Converting Indian Grid System to WGS84\r\n\r\n```python\r\nfrom indiagrid import igs_to_wgs84\r\n\r\nreverse_result = igs_to_wgs84(3632281.67, Nth=531791.54, grid=\"I\")\r\nprint(reverse_result)\r\n```\r\n\r\n**Output**:\r\n\r\n```python\r\n{'latitude': 28.704099993002522, 'longitude': 77.10249995658076}\r\n```\r\n\r\n## Parameters\r\n\r\n### `wgs84_to_igs`\r\n\r\n- **lat** (float): Latitude in decimal degrees.\r\n- **lon** (float): Longitude in decimal degrees.\r\n- **esterr** (float, optional): Easting error adjustment. Default is 0.\r\n- **ntherr** (float, optional): Northing error adjustment. Default is 0.\r\n\r\n### `igs_to_wgs84`\r\n\r\n- **Eth** (float): Easting in the Indian grid system.\r\n- **Nth** (float): Northing in the Indian grid system.\r\n- **grid** (str): Grid region (e.g., 'I', 'IIA', etc.).\r\n- **esterr** (float, optional): Easting error adjustment. Default is 0.\r\n- **ntherr** (float, optional): Northing error adjustment. Default is 0.\r\n\r\n## License\r\n\r\nThis project is licensed under the **GPLv2 License**.\r\n",
    "bugtrack_url": null,
    "license": "GNU Lesser General Public License v2.1",
    "summary": "A library for WGS84 to Indian Grid System conversion.",
    "version": "0.4.0",
    "project_urls": {
        "Homepage": "https://github.com/goki75/indiagrid",
        "repository": "https://github.com/goki75/indiagrid"
    },
    "split_keywords": [
        "location",
        " geography",
        " encoding",
        " decoding",
        " latitude",
        " longitude"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "277b2349fcfb731b9a55d3eb882dcf9218a4d74af37546953466938f25315f60",
                "md5": "96417f09ec45ca58e6e89a135f48cfca",
                "sha256": "c5049471db683c75a12c33e063779fbd8d3756b474ee9c3f68d18ac4a444f165"
            },
            "downloads": -1,
            "filename": "indiagrid-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "96417f09ec45ca58e6e89a135f48cfca",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.1",
            "size": 13740,
            "upload_time": "2025-01-11T10:17:48",
            "upload_time_iso_8601": "2025-01-11T10:17:48.602201Z",
            "url": "https://files.pythonhosted.org/packages/27/7b/2349fcfb731b9a55d3eb882dcf9218a4d74af37546953466938f25315f60/indiagrid-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "89c6f9214a4b07308241c60769d48f8a016077a62a6a0d08de8367a8c2392b7f",
                "md5": "f84cc9602247699460d9a7d54203955e",
                "sha256": "4f84ae9f35eaccfc9fa92028501b16e89a8dc9ae186ad7c048e725bfbe98115d"
            },
            "downloads": -1,
            "filename": "indiagrid-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f84cc9602247699460d9a7d54203955e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.1",
            "size": 13473,
            "upload_time": "2025-01-11T10:17:51",
            "upload_time_iso_8601": "2025-01-11T10:17:51.176754Z",
            "url": "https://files.pythonhosted.org/packages/89/c6/f9214a4b07308241c60769d48f8a016077a62a6a0d08de8367a8c2392b7f/indiagrid-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-11 10:17:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "goki75",
    "github_project": "indiagrid",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "indiagrid"
}
        
Elapsed time: 0.60214s