Geoportal Extension for Itowns API Reference

Module: Register

[private] Register

Register definition for IGNF, and EPSG CRS.

Example

Gp.Register.IGNF.AMST63
  // return : "+title=Amsterdam 1963 +proj=geocent +towgs84=109.753,-528.133,-362.244,0,0,0,0 +a=6378388.0000 +rf=297.0000000000000 +units=m +no_defs"
Gp.Register.get("IGNF:AMST63")
  // same as Gp.Register.IGNF.AMST63

Methods

innerexist(name){Boolean}

Common/Utils/Register.js, line 54

does projection code exist ?

Name Type Description
name String

ie. EPSG:2154 (Lambert)

Example
Register.exist("EPSG:2154"); // true

innerget(name){Object}

Common/Utils/Register.js, line 20

get the definition for a code

Name Type Description
name String

ie. EPSG:2154 (Lambert)

Example
Register.get("EPSG:2154");
// "+title=RGF93 / Lambert-93 +proj=lcc +lat_1=49 ..."

innerload(Proj4)

Common/Utils/Register.js, line 87

load all defs to proj4

Name Type Description
Proj4 Object

proj4 instance

innerloadByDefault(Proj4)

Common/Utils/Register.js, line 126

load defs by default to proj4

include into proj4 :

  • WGS84
  • ['EPSG:4326']
  • ['EPSG:3785'], ['EPSG:3857'], GOOGLE, ['EPSG:900913'], ['EPSG:102113']
  • ["EPSG:2154"], ["EPSG:27571"], ["EPSG:27572"], ["EPSG:27573"], ["EPSG:2757"],
  • ["CRS:84"],
  • ["IGNF:LAMB93"],
  • ["IGNF:LAMBE"], ["IGNF:LAMB1"], ["IGNF:LAMB2"], ["IGNF:LAMB3"], ["IGNF:LAMB4"],
  • ["IGNF:RGF93G"],
  • ["IGNF:WGS84G"]
Name Type Description
Proj4 Object

proj4 instance

innerloadByName(Proj4, name){Boolean}

Common/Utils/Register.js, line 182

load only a def to proj4

Name Type Description
Proj4 Object

proj4 instance

name String

ie. EPSG:2154 (Lambert)