Socket
Socket
Sign inDemoInstall

@skycatch/geo-util

Package Overview
Dependencies
Maintainers
18
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skycatch/geo-util - npm Package Compare versions

Comparing version 1.1.0-beta.2 to 1.1.0-beta.3

30

doc/coverage.md
# Code Quality Report
Sat Jun 29 2019 12:47:01 GMT-0700 (PDT)
Sat Jun 29 2019 13:59:06 GMT-0700 (PDT)

@@ -9,3 +9,3 @@ ## Tests

**GeoUtil#getCenter**
✔ 1) returns the center (3 ms)
✔ 1) returns the center (2 ms)

@@ -18,3 +18,3 @@ **GeographicTilingScheme**

**positionToTileXY**
✔ 3) should calculate the tile origin for lat=37.8238667 lon=-122.3681195 level=14} (1 ms)
✔ 3) should calculate the tile origin for lat=37.8238667 lon=-122.3681195 level=14} (0 ms)

@@ -25,11 +25,11 @@ **tileXYToRectangle**

**tilesForPositionsAtLevel**
✔ 5) should calculate the tiles needed to cover a set of positions (0 ms)
✔ 6) should calculate the tiles needed to cover a set of positions (1 ms)
✔ 5) should calculate the tiles needed to cover a set of positions (1 ms)
✔ 6) should calculate the tiles needed to cover a set of positions (0 ms)
**rectangleForPositionsAtLevel**
✔ 7) should calculate the bounding rectangle in radians for a set of positions with NO buffer (1 ms)
✔ 7) should calculate the bounding rectangle in radians for a set of positions with a buffer (1 ms)
**nativeRectangleForPositionsAtLevel**
✔ 8) TI - should calculate the bounding rectangle in degrees for a set of positions with NO buffer (0 ms)
✔ 9) TI - should calculate the bounding rectangle in degrees for a set of positions with buffer applied (1 ms)
✔ 8) TI - should calculate the bounding rectangle in degrees for a set of positions with NO buffer (1 ms)
✔ 9) TI - should calculate the bounding rectangle in degrees for a set of positions with buffer applied (0 ms)
✔ 10) Koriyama - should calculate the bounding rectangle in degrees for a set of positions with NO buffer (0 ms)

@@ -40,6 +40,6 @@

**StereaUtil#getProj4**
✔ 11) returns the proj4 string from lat/lon (1 ms)
✔ 11) returns the proj4 string from lat/lon (0 ms)
**StereaUtil#getCoord**
✔ 12) returns the projected coordinate (1 ms)
✔ 12) returns the projected coordinate (2 ms)

@@ -52,8 +52,8 @@ **StereaUtil#getLatLon**

**UtmUtil#getZone**
✔ 14) returns the UTM zone from lat/lon (0 ms)
✔ 14) returns the UTM zone from lat/lon (1 ms)
✔ 15) throws an error on invalid lat/lon (1 ms)
**UtmUtil#getProj4**
✔ 16) returns the proj4 string (0 ms)
✔ 17) throws an error on invalid utm zone (0 ms)
✔ 16) returns the proj4 string (1 ms)
✔ 17) throws an error on invalid utm zone (1 ms)

@@ -71,3 +71,3 @@ **UtmUtil#getCoord**

**UtmUtil#getEPSGCode**
✔ 22) returns ESPG code for any given lat/lon (0 ms)
✔ 22) returns ESPG code for any given lat/lon (1 ms)

@@ -79,3 +79,3 @@

Test duration: 32 ms
Test duration: 34 ms

@@ -82,0 +82,0 @@

@@ -222,6 +222,6 @@ 'use strict'

offset = this.metersToDegrees(offset)
res.west = res.west + offset
res.east = res.east - offset
res.south = res.south + offset
res.north = res.north - offset
res.west = res.west - offset
res.east = res.east + offset
res.south = res.south - offset
res.north = res.north + offset
}

@@ -228,0 +228,0 @@

{
"name": "@skycatch/geo-util",
"version": "1.1.0-beta.2",
"version": "1.1.0-beta.3",
"description": "coordinates & projections utility",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -80,3 +80,3 @@ 'use strict'

describe('rectangleForPositionsAtLevel', () => {
it('should calculate the bounding rectangle in radians for a set of positions with NO buffer', () => {
it('should calculate the bounding rectangle in radians for a set of positions with a buffer applied', () => {
const level = 14

@@ -101,8 +101,8 @@

expect(rect).to.equal({
west: -2.1358765085154223,
east: -2.1354929953521453,
south: 0.6599952250046442,
north: 0.6601869905694357,
width: 0.000383513163277005,
height: 0.00019176556479150175
west: -2.1358764905491165,
east: -2.135493013318451,
south: 0.65999524297095,
north: 0.66018697260313,
width: 0.00038347723066545214,
height: 0.00019172963217994887
})

@@ -144,3 +144,3 @@ })

it('TI - should calculate the bounding rectangle in degrees for a set of positions with buffer applied', () => {
it('TI - should calculate the bounding rectangle in degrees for a set of positions with a buffer applied', () => {
const level = 14

@@ -166,8 +166,8 @@

expect(rect).to.equal({
west: -122.37670949907174,
south: 37.814940891553256,
east: -122.35473581342825,
north: 37.82592824907175,
width: 0.02197368564348402,
height: 0.010987357518495586
west: -122.37670846967823,
south: 37.81494192094675,
east: -122.35473684282175,
north: 37.825927219678256,
width: 0.021971626856495157,
height: 0.010985298731506724
})

@@ -174,0 +174,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