esriSpatialReferenceError Constants

Describes why a parameter to a method is incorrect, or why a method could not be completed.

Constant Value Description
S_​SPATIALREFERENCE_​OK 0 The spatial reference was created successfully.
E_​SPATIALREFERENCE_​NOPRECISION 514 (0x80040202) The xy precision information for this spatial reference system has not been defined.
E_​SPATIALREFERENCE_​INVALID_​PARAMETER 515 (0x80040203) This parameter is not appropriate for this projection.
E_​SPATIALREFERENCE_​CANTDEFINESR 516 (0x80040204) Not enough information has been supplied to construct this spatial reference.
E_​SPATIALREFERENCE_​PRECISIONTOOHIGH 517 (0x80040205) The domain extent with the specified precision doesn't contain the domain extent of the source spatial reference (ConstructHighPrecisionSpatialReference).
E_​SPATIALREFERENCE_​INSUFFICIENTPRECISION 518 (0x80040206) A low precision spatial reference cannot cover the specified extent at the input precision (ConstructLowPrecisionSpatialreference)).
E_​SPATIALREFERENCE_​NOTAPRJFILE 519 (0x80040207) The input to CreateESRISpatialReference(Info)FromPRJ(File) is not a workstation PRJ file.
E_​SPATIALREFERENCE_​NOTAGCS 520 (0x80040208) The specified WKID (factory code) or WKT (definition string) is not a Geographic Coordinate System.
E_​SPATIALREFERENCE_​NOTAPCS 521 (0x80040209) The specified WKID (factory code) or WKT (definition string) is not a Projected Coordinate System.
E_​SPATIALREFERENCE_​NOTAUNIT 522 (0x8004020A) The specified WKID (factory code) or WKT (definition string) is not a linear or angular unit.
E_​SPATIALREFERENCE_​EMPTYUNIT 523 (0x8004020B) A WKID or a WKT must be specified for a Unit.
E_​SPATIALREFERENCE_​CANTDEFINEAUTH 524 (0x8004020C) Can't assign authority metadata to this spatial reference object because it is empty.
E_​SPATIALREFERENCE_​BADVCSID 525 (0x8004020D) The specified WKID for a vertical coordinate system is not valid.
E_​SPATIALREFERENCE_​NOMPRECISION 526 (0x8004020E) The m precision information for this spatial reference system has not been defined.
E_​SPATIALREFERENCE_​NOZPRECISION 527 (0x8004020F) The z precision information for this spatial reference system has not been defined.
E_​SPATIALREFERENCE_​CANTLOADXFORMFILE 528 (0x80040210) The data file for this datum transformation cannot be loaded.
E_​SPATIALREFERENCE_​INVALID_​JSON_​SR 529 (0x80040211) Invalid JSON SR
E_​SPATIALREFERENCE_​WRONG_​UNIT_​TYPE 530 (0x80040212) Wrong unit type (expected linear unit, got angular unit, or vice versa)

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.