Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

swissgrid_reframe

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swissgrid_reframe

Transform between the Swiss projected coordinate systems (LV03 and LV95).

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

swissgrid_reframe

JavaScript library for transforming coordinates between the Swiss projected coordinate systems (LV03 and LV95).

LV03 is the old reference frame derived from triangulation and was used in Switzerland until 2016. LV03 coordinates are by convention designated by the letters y for the easting and x for the northing, with origin at y = 600 000 m / x = 200 000 m. The origin is not at 0 / 0 to avoid confusion between easting and northing, this is sometimes called "false easting" and "false northing".

LV95 is the new reference frame derived from GNSS surveying and is used in Switzerland since 2016. LV95 coordinates are by convention designated by the letters E for the easting and N for the northing, with origin at E = 2 600 000 m / N = 1 200 000 m. This still avoids confusion between easting and northing, and the additional 2 000 000 m / 1 000 000 m offset also avoids confusion with LV03.

Due to local distortions of the LV03 reference frame, coordinates in LV03 and LV95 can differ by up to 1.6 meters. Swisstopo provides a dataset of triangles (CHENyx06) for local affine transformations to model these distortions which the swissgrid_reframe library uses to transform between LV03 and LV95.

See Swisstopo reference document about Swiss projected coordinate systems for more information.

Usage

import { lv03_to_lv95, lv95_to_lv03 } from "swissgrid_reframe";

lv03_to_lv95([722758.81, 87649.67]); 
// Result: [2722759.06, 1087648.19]

lv95_to_lv03([2722759.06, 1087648.19]);
// Result: [722758.81, 87649.67]

License

See LICENSE.txt.

See also

Similar software

The following software also uses CHENyx06 to transform between LV03 and LV95:

Swisstopo also provides an NTv2 grid for transformations between LV03 and LV95:

Note that this has slightly lower precision than the CHENyx06-based transformations.

References

FAQs

Package last updated on 06 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc