1- # NGI Projector
1+ # Coordinate Projector
22
33[ ![ security: bandit] ( https://img.shields.io/badge/security-bandit-yellow.svg )] ( https://github.com/PyCQA/bandit )
44
5- This is the NGI Python package for projecting koordinates.
5+ This is the Norwegian Geotechnical Institute (NGI) Python package for projecting coordinates.
6+ It is a small shim on top of the library [ pyproj] ( https://github.com/pyproj4/pyproj ) that again is an interface to
7+ [ PROJ] ( https://proj.org/ ) .
68
79References:
810
9-
10-
1111Latest releases see [ CHANGES.md] ( CHANGES.md )
1212
1313# Installation (end user)
1414
1515``` bash
1616
17- pip install ngi -projector
17+ pip install coordinate -projector
1818
1919```
2020
@@ -23,7 +23,7 @@ pip install ngi-projector
2323### Project a point
2424
2525``` python
26- from ngi_projector import Projector
26+ from coordinate_projector import Projector
2727
2828projector = Projector()
2929
@@ -63,33 +63,20 @@ print(f"{projected_east=}, {projected_north=}")
6363
6464Run in the project root folder:
6565
66- poetry install pytest
66+ poetry shell pytest
6767
6868Build the package wheel:
6969
7070 poetry build
7171
72-
73-
7472# Publish
7573
76- To publish the package to NGI's private Azure Artifacts repository set the following configuration:
77-
78- poetry config repositories.ngi https://pkgs.dev.azure.com/ngi001/277b2f77-691a-4d92-bd89-8e7cac121676/_packaging/fieldmanager/pypi/upload
79-
80- To publish the package to Azure Artifacts, make sure you have set up your NGI credentials.
81-
82- You need to generate Personal Access Token (PAT). Follow
83- [ this guide] ( https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate )
84- for how to get a PAT via the Azure DevOps GUI. ` Packaging (Read, write, & manage) ` access is sufficient.
85-
86- If you want to publish your newly built package you need to set your NGI credentials:
87-
88- poetry config pypi-token.ngi <PAT>
89-
90- poetry publish -r ngi
91-
9274# TODOs
9375
9476- Handle lines
9577- Handle polygons
78+
79+ # Contribute
80+
81+ Please start by adding an issue before submitting any pull requests.
82+
0 commit comments