Skip to content

Commit

Permalink
Add an example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
eliascarv committed Dec 4, 2024
1 parent f4f4922 commit 42bd52a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,25 @@ Get the latest stable release with Julia's package manager:
] add CoordGridTransforms
```

## Usage

To use the conversions defined in CoordGridTransforms.jl,
use it together with CoordRefSystems.jl in the same environment:

```julia
julia> using CoordRefSystems, CoordGridTransforms

julia> c = LatLon{SAD96}(-15, -45)
GeodeticLatLon{SAD96} coordinates
├─ lat: -15.0°
└─ lon: -45.0°

julia> convert(LatLon{SIRGAS2000}, c)
GeodeticLatLon{SIRGAS2000} coordinates
├─ lat: -15.000451566492272°
└─ lon: -45.00042666174454°
```

[build-img]: https://img.shields.io/github/actions/workflow/status/JuliaEarth/CoordGridTransforms.jl/CI.yml?branch=main&style=flat-square
[build-url]: https://github.com/JuliaEarth/CoordGridTransforms.jl/actions

Expand Down

0 comments on commit 42bd52a

Please sign in to comment.