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

local-coordinate-transform

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

local-coordinate-transform - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "local-coordinate-transform",
"version": "0.1.0",
"version": "0.1.1",
"description": "transform local coordinates to wgs84 or vice versa",

@@ -5,0 +5,0 @@ "main": "dist/local-coordinate-transform.js",

@@ -44,5 +44,6 @@ # Local Coordinate Transform

const transform = lct(localSamples, wgs84Samples);
const local = transform.toLocal([ 121.38365648516356, 31.15163789378666 ]);
const wgs84 = transform.fromLocal([ -7961.222764147446, -9289.597782096651 ]);
//第一个参数是用来接收结果的数组,第二个参数是84坐标值
const local = transform.toLocal([],[ 121.38365648516356, 31.15163789378666 ]);
//第一个参数是用来接收结果的数组,第二个参数是本地坐标值
const wgs84 = transform.fromLocal([],[ -7961.222764147446, -9289.597782096651 ]);
```

@@ -49,0 +50,0 @@

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