EPSGlide


NameEPSGlide JSON
Version 0.2.1 PyPI version JSON
download
home_pagehttps://moustikitos.github.io/python-epsg/
SummaryEfficient great circle computation and projection library with access to EPSG dataset public API
upload_time2024-02-18 12:03:26
maintainerBruno THOORENS
docs_urlNone
authorBruno THOORENS
requires_python
licenseCopyright 2024, THOORENS Bruno, BSD licence
keywords epsg projection great circle geohash georef gars maidenhead dataset
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python `epsglide` package

This package aims to perform simple requests to [`EPSG GeoRepository API`](https://apps.epsg.org/api/swagger/ui/index) and provides associated geodesic computation and map projection.

## EPSG dataset requests and projection

```python
>>> import math, epsglide
>>> crs = epsglide.ProjectedCoordRefSystem(26730)
>>> crs
<ProjectedCoordRefSystem 26730: NAD27 / Alabama West>
>>> point = epsglide.Geodesic(math.degrees(crs.lambda0), math.degrees(crs.phi0))
>>> crs(point)
<US survey foot:3.281[X=152400.305 Y=0.000] alt=0.000>
>>> crs(crs(point))
<lon=-087d18m0.00000s lat=+030d00m0.00000s alt=0.0>
```

## Great circle computation

```python
>>> wgs84 = epsglide.dataset.Ellipsoid(7030)
>>> dublin = epsglide.Geodesic(-6.272877, 53.344606, 105.)
>>> london = epsglide.Geodesic(-0.127005, 51.518602, 0.)
>>> dist = wgs84.distance(dublin, london) 
>>> dist
<464.572km initial bearing=113.5° final bearing118.3°>
>>> wgs84.destination(dublin, dist) 
<lon=-000d07m37.21798s lat=+051d31m6.96719s end bearing=118.3°>
>>> london
<lon=-000d07m37.21800s lat=+051d31m6.96720s alt=0.0>
```

## Support this project

[![Liberapay receiving](https://img.shields.io/liberapay/goal/Toons?logo=liberapay)](https://liberapay.com/Toons/donate)
[![Paypal me](https://img.shields.io/badge/PayPal-toons-00457C?logo=paypal&logoColor=white)](https://paypal.me/toons)
[![Bitcoin](https://img.shields.io/badge/Donate-bc1q6aqr0hfq6shwlaux8a7ydvncw53lk2zynp277x-ff9900?logo=bitcoin)](/docs/img/bc1q6aqr0hfq6shwlaux8a7ydvncw53lk2zynp277x.png)

            

Raw data

            {
    "_id": null,
    "home_page": "https://moustikitos.github.io/python-epsg/",
    "name": "EPSGlide",
    "maintainer": "Bruno THOORENS",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "moustikitos@gmail.com",
    "keywords": "epsg,projection,great,circle,geohash,georef,GARS,maidenhead,dataset",
    "author": "Bruno THOORENS",
    "author_email": "moustikitos@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e2/01/3b22d0a3dd48f478a4b07314c899fbeac8c48a7bf483fec706826dbe5659/EPSGlide-0.2.1.tar.gz",
    "platform": null,
    "description": "# Python `epsglide` package\r\n\r\nThis package aims to perform simple requests to [`EPSG GeoRepository API`](https://apps.epsg.org/api/swagger/ui/index) and provides associated geodesic computation and map projection.\r\n\r\n## EPSG dataset requests and projection\r\n\r\n```python\r\n>>> import math, epsglide\r\n>>> crs = epsglide.ProjectedCoordRefSystem(26730)\r\n>>> crs\r\n<ProjectedCoordRefSystem 26730: NAD27 / Alabama West>\r\n>>> point = epsglide.Geodesic(math.degrees(crs.lambda0), math.degrees(crs.phi0))\r\n>>> crs(point)\r\n<US survey foot:3.281[X=152400.305 Y=0.000] alt=0.000>\r\n>>> crs(crs(point))\r\n<lon=-087d18m0.00000s lat=+030d00m0.00000s alt=0.0>\r\n```\r\n\r\n## Great circle computation\r\n\r\n```python\r\n>>> wgs84 = epsglide.dataset.Ellipsoid(7030)\r\n>>> dublin = epsglide.Geodesic(-6.272877, 53.344606, 105.)\r\n>>> london = epsglide.Geodesic(-0.127005, 51.518602, 0.)\r\n>>> dist = wgs84.distance(dublin, london) \r\n>>> dist\r\n<464.572km initial bearing=113.5\u00c2\u00b0 final bearing118.3\u00c2\u00b0>\r\n>>> wgs84.destination(dublin, dist) \r\n<lon=-000d07m37.21798s lat=+051d31m6.96719s end bearing=118.3\u00c2\u00b0>\r\n>>> london\r\n<lon=-000d07m37.21800s lat=+051d31m6.96720s alt=0.0>\r\n```\r\n\r\n## Support this project\r\n\r\n[![Liberapay receiving](https://img.shields.io/liberapay/goal/Toons?logo=liberapay)](https://liberapay.com/Toons/donate)\r\n[![Paypal me](https://img.shields.io/badge/PayPal-toons-00457C?logo=paypal&logoColor=white)](https://paypal.me/toons)\r\n[![Bitcoin](https://img.shields.io/badge/Donate-bc1q6aqr0hfq6shwlaux8a7ydvncw53lk2zynp277x-ff9900?logo=bitcoin)](/docs/img/bc1q6aqr0hfq6shwlaux8a7ydvncw53lk2zynp277x.png)\r\n",
    "bugtrack_url": null,
    "license": "Copyright 2024, THOORENS Bruno, BSD licence",
    "summary": "Efficient great circle computation and projection library with access to EPSG dataset public API",
    "version": "0.2.1",
    "project_urls": {
        "Bug Reports": "https://github.com/Moustikitos/python-epsg/issues",
        "Funding": "https://github.com/Moustikitos/python-epsg?tab=readme-ov-file#support-this-project",
        "Homepage": "https://moustikitos.github.io/python-epsg/",
        "Source": "https://github.com/Moustikitos/python-epsg/"
    },
    "split_keywords": [
        "epsg",
        "projection",
        "great",
        "circle",
        "geohash",
        "georef",
        "gars",
        "maidenhead",
        "dataset"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e2013b22d0a3dd48f478a4b07314c899fbeac8c48a7bf483fec706826dbe5659",
                "md5": "9db18937dc572149266e08d86cd07cee",
                "sha256": "675264ca814fcc16a7a49e07802e55e60e4197ed894dbf9e68337a27ae631c85"
            },
            "downloads": -1,
            "filename": "EPSGlide-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "9db18937dc572149266e08d86cd07cee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 19776,
            "upload_time": "2024-02-18T12:03:26",
            "upload_time_iso_8601": "2024-02-18T12:03:26.045567Z",
            "url": "https://files.pythonhosted.org/packages/e2/01/3b22d0a3dd48f478a4b07314c899fbeac8c48a7bf483fec706826dbe5659/EPSGlide-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-18 12:03:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Moustikitos",
    "github_project": "python-epsg",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "epsglide"
}
        
Elapsed time: 0.21039s