Skip to content

madebydavid/gis-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GIS Utils

Some GIS utility functions I have used in multiple projects.

Installation

npm install gis-utils --save

Included functions

  • deg2rad(degrees)
  • rad2deg(angle)
  • haversineKm(fromLocation, toLocation)
  • calculateRadiusFromMapBounds(bounds)
  • getNESWBoundsFromRadiusAndCenter(radius, center)
  • getNWSEBoundsFromRadiusAndCenter(radius, center)
  • computeDestinationPoint(lat, lon, distance, bearing, radius)
  • isLatAndLngInRectBoundary(point, boundary)

About

Some GIS utility functions I have used in multiple projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published