@agencebio/cartobio-types
Advanced tools
Comparing version 1.5.0 to 1.6.0
42
enums.js
@@ -44,6 +44,46 @@ /* | ||
/** | ||
* @enum {String} | ||
*/ | ||
const Area = { | ||
METROPOLE: 'metropole', | ||
ANTILLES: 'antilles', | ||
GUYANE: 'guyane', | ||
REUNION: 'reunion', | ||
MAYOTTE: 'mayotte' | ||
} | ||
/** | ||
* @enum {String} | ||
*/ | ||
const LegalProjections = { | ||
// https://epsg.io/2154 | ||
[Area.METROPOLE]: '+proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs', | ||
// https://epsg.io/5490 | ||
[Area.ANTILLES]: '+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs', | ||
// https://epsg.io/2975 | ||
[Area.REUNION]: '+proj=utm +zone=40 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs', | ||
// https://epsg.io/2972 | ||
[Area.GUYANE]: '+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs', | ||
// https://epsg.io/4471 | ||
[Area.MAYOTTE]: '+proj=utm +zone=38 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs' | ||
} | ||
/** | ||
* @enum {number[]} import('geojson').BBox | ||
*/ | ||
const RegionBounds = { | ||
[Area.METROPOLE]: [-5.1412, 41.334, 9.5597, 51.0888], | ||
[Area.ANTILLES]: [-61.8098, 14.3947, -60.8106, 16.511], | ||
[Area.GUYANE]: [-54.6023, 2.1111, -51.619, 5.7487], | ||
[Area.REUNION]: [55.2166, -21.3891, 55.8366, -20.8721], | ||
[Area.MAYOTTE]: [45.0185, -13.0001, 45.298, -12.6366] | ||
} | ||
module.exports = { | ||
CertificationState, | ||
EtatProduction, | ||
EventType | ||
EventType, | ||
LegalProjections, | ||
RegionBounds | ||
} |
{ | ||
"name": "@agencebio/cartobio-types", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"main": "types.d.ts", | ||
@@ -5,0 +5,0 @@ "files": [ |
13337
440