chunk-524XACB7.js 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. import {
  2. $,
  3. H
  4. } from "./chunk-O4FY3ITT.js";
  5. import {
  6. o as o2
  7. } from "./chunk-PDKDCAAD.js";
  8. import {
  9. o
  10. } from "./chunk-ECW2QABR.js";
  11. import {
  12. r
  13. } from "./chunk-MRJEICT6.js";
  14. import {
  15. d,
  16. e,
  17. l3 as l,
  18. n2 as n,
  19. t
  20. } from "./chunk-Y3WMVFTW.js";
  21. import {
  22. A2 as A
  23. } from "./chunk-GZT4BVFP.js";
  24. // node_modules/@arcgis/core/geometry/HeightModelInfo.js
  25. var d2;
  26. var p = o2()({ orthometric: "gravity-related-height", gravity_related_height: "gravity-related-height", ellipsoidal: "ellipsoidal" });
  27. var u = p.jsonValues.slice();
  28. A(u, "orthometric");
  29. var g = o2()({ meter: "meters", foot: "feet", "us-foot": "us-feet", "clarke-foot": "clarke-feet", "clarke-yard": "clarke-yards", "clarke-link": "clarke-links", "sears-yard": "sears-yards", "sears-foot": "sears-feet", "sears-chain": "sears-chains", "benoit-1895-b-chain": "benoit-1895-b-chains", "indian-yard": "indian-yards", "indian-1937-yard": "indian-1937-yards", "gold-coast-foot": "gold-coast-feet", "sears-1922-truncated-chain": "sears-1922-truncated-chains", "50-kilometers": "50-kilometers", "150-kilometers": "150-kilometers" });
  30. var m = d2 = class extends l {
  31. constructor(e2) {
  32. super(e2), this.heightModel = "gravity-related-height", this.heightUnit = "meters", this.vertCRS = null;
  33. }
  34. writeHeightModel(e2, t2, r2) {
  35. return p.write(e2, t2, r2);
  36. }
  37. readHeightModel(e2, t2, r2) {
  38. const o3 = p.read(e2);
  39. return o3 || (r2 && r2.messages && r2.messages.push(f(e2, { context: r2 })), null);
  40. }
  41. readHeightUnit(e2, t2, r2) {
  42. const o3 = g.read(e2);
  43. return o3 || (r2 && r2.messages && r2.messages.push(y(e2, { context: r2 })), null);
  44. }
  45. readHeightUnitService(e2, t2, r2) {
  46. const o3 = H(e2) || g.read(e2);
  47. return o3 || (r2 && r2.messages && r2.messages.push(y(e2, { context: r2 })), null);
  48. }
  49. readVertCRS(e2, t2) {
  50. return t2.vertCRS || t2.ellipsoid || t2.geoid;
  51. }
  52. clone() {
  53. return new d2({ heightModel: this.heightModel, heightUnit: this.heightUnit, vertCRS: this.vertCRS });
  54. }
  55. equals(e2) {
  56. return !!e2 && (this === e2 || this.heightModel === e2.heightModel && this.heightUnit === e2.heightUnit && this.vertCRS === e2.vertCRS);
  57. }
  58. static deriveUnitFromSR(e2, t2) {
  59. const r2 = $(t2);
  60. return new d2({ heightModel: e2.heightModel, heightUnit: r2, vertCRS: e2.vertCRS });
  61. }
  62. write(e2, t2) {
  63. return t2 = { origin: "web-scene", ...t2 }, super.write(e2, t2);
  64. }
  65. static fromJSON(e2) {
  66. if (!e2)
  67. return null;
  68. const t2 = new d2();
  69. return t2.read(e2, { origin: "web-scene" }), t2;
  70. }
  71. };
  72. function y(e2, t2) {
  73. return new t("height-unit:unsupported", `Height unit of value '${e2}' is not supported`, t2);
  74. }
  75. function f(e2, t2) {
  76. return new t("height-model:unsupported", `Height model of value '${e2}' is not supported`, t2);
  77. }
  78. e([d({ type: p.apiValues, constructOnly: true, json: { origins: { "web-scene": { type: u, default: "ellipsoidal" } } } })], m.prototype, "heightModel", void 0), e([r("web-scene", "heightModel")], m.prototype, "writeHeightModel", null), e([o(["web-scene", "service"], "heightModel")], m.prototype, "readHeightModel", null), e([d({ type: g.apiValues, constructOnly: true, json: { origins: { "web-scene": { type: g.jsonValues, write: g.write } } } })], m.prototype, "heightUnit", void 0), e([o("web-scene", "heightUnit")], m.prototype, "readHeightUnit", null), e([o("service", "heightUnit")], m.prototype, "readHeightUnitService", null), e([d({ type: String, constructOnly: true, json: { origins: { "web-scene": { write: true } } } })], m.prototype, "vertCRS", void 0), e([o("service", "vertCRS", ["vertCRS", "ellipsoid", "geoid"])], m.prototype, "readVertCRS", null), m = d2 = e([n("esri.geometry.HeightModelInfo")], m);
  79. var v = m;
  80. export {
  81. v
  82. };
  83. //# sourceMappingURL=chunk-524XACB7.js.map