npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

swissgrid_reframe

v1.0.0

Published

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

Downloads

10

Readme

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:

  • GeoSuite: Windows software
  • REFRAME DLL / JAR: .NET / Java libraries
  • REFRAME web service: Based on REFRAME DLL, see example calls below
    • https://geodesy.geo.admin.ch/reframe/lv03tolv95?easting=722758.81&northing=87649.67
    • https://geodesy.geo.admin.ch/reframe/lv95tolv03?easting=2722759.06&northing=1087648.19

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