How to use the proj4.toPoint function in proj4

To help you get started, we’ve selected a few proj4 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / proj4 / proj4-tests.ts View on Github external
['EPSG:4326', epsg['4326']],
  ['EPSG:4269', epsg['4269']]
])
proj4.defs('urn:x-ogc:def:crs:EPSG:4326', proj4.defs('EPSG:4326'))

///////////////////////////////////
// Utils
///////////////////////////////////
// WGS84
proj4.WGS84

// Proj
proj4.Proj('WGS84')

// toPoint
proj4.toPoint([1, 2])
proj4.toPoint([1, 2, 3])
proj4.toPoint([1, 2, 3, 4])

// Point
// WARNING: Deprecated in v3
proj4.Point([1, 2, 3, 4])
github sentinel-hub / SentinelPlayground / src / utils / coords.js View on Github external
export function wgs84ToMercator(point) {
  var sourceCRS = proj4.Proj('EPSG:4326');
  var destCRS = proj4.Proj('EPSG:3857');
  var pt = new proj4.toPoint([point[1], point[0]]);
  proj4.transform(sourceCRS, destCRS, pt);
  return pt;
}
export function calcBboxFromXY(point, zoomLevel) {

proj4

Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.

MIT
Latest version published 29 days ago

Package Health Score

89 / 100
Full package analysis

Similar packages