Packages

Elixir library for transformation of geographic coordinates between WGS84 and the Swedish coordinate reference systems SWEREF99 and RT90. Supports 20 different CRS projections with high precision transformations using Gauss-Kreuger projection formulas.

Current section

Files

Jump to

mix.exs

defmodule SwedenCrsTransformations.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/stonetwig/sweden_crs_transformations"
def project do
[
app: :sweden_crs_transformations,
version: @version,
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
name: "SwedenCrsTransformations",
source_url: @source_url,
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, "~> 0.31", only: :dev, runtime: false}
]
end
defp description do
"""
Elixir library for transformation of geographic coordinates between WGS84
and the Swedish coordinate reference systems SWEREF99 and RT90. Supports
20 different CRS projections with high precision transformations using
Gauss-Kreuger projection formulas.
"""
end
defp package do
[
name: "sweden_crs_transformations",
files: ~w(lib .formatter.exs mix.exs README.md LICENSE.md),
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Original TypeScript Library" =>
"https://github.com/TomasJohansson/sweden_crs_transformations_4typescript",
"MightyLittleGeodesy" => "https://github.com/bjornsallarp/MightyLittleGeodesy"
},
maintainers: ["Markus Wärendh"]
]
end
defp docs do
[
main: "SwedenCrsTransformations",
extras: ["README.md"],
source_ref: "v#{@version}",
source_url: @source_url
]
end
end