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

@gisatcz/deckgl-geolib

Package Overview
Dependencies
Maintainers
5
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gisatcz/deckgl-geolib

  • 1.10.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

COG Tiles

A Javascript library for easier tile functionality with COG files

Features

Class allows using CogTiff files with Deck.gl TileLayer.

Provides extra functionality for CogTiff files

Methods

async initializeCog(url : string)- returns a cog from a given URL and initializes object variables

async getTile(x: number, y: number, z: number) - returns a promise, when resolved returns a tile. x, y, z are coordinates in tile grid

getTileSize(CogTiff) - returns number containing the width of a single tile

getZoomRange(cog:CogTiff) - returns [minZoom, maxZoom]

getBoundsAsLatLon(cog:CogTiff) - returns image bounds as [left, bottom, right, top]

getOriginAsLatLon(cog:CogTiff)- returns origin of COG as [x, y]

getImageTileIndex(img:CogTiffImage) - returns index of an image from COG in tile system as[x, y, z]

getResolutionFromZoomLevel- returns number in meters per pixel

getZoomLevelFromResolution(tileSize: number, resolution: number) returns number zoom level calculated from resolution (the size of one pixel in meters) and tileSize (width of a tile)

getLatLon - returns [latitude, longitude] from offset in meters

FAQs

Package last updated on 10 Apr 2024

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