config/proj4-config.js

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const proj4_1 = __importDefault(require("proj4"));
/**
 * @namespace config
 * @description Configuration for custom projection definitions using the proj4 library.
 */
/**
 * Defines a custom projection with EPSG:2273.
 * Lambert Conformal Conic projection with parameters specific to a region.
 *
 * @memberof config
 * @constant {string}
 * @example
 * proj4.defs("EPSG:2273");
 */
proj4_1.default.defs("EPSG:2273", "+proj=lcc +lat_0=31.8333333333333 +lon_0=-81 +lat_1=34.8333333333333 +lat_2=32.5 +x_0=609600 +y_0=0 +datum=NAD83 +units=ft +no_defs +type=crs");
/**
 * Defines a custom projection with EPSG:2264.
 * Lambert Conformal Conic projection with parameters specific to a different region.
 *
 * @memberof config
 * @constant {string}
 * @example
 * proj4.defs("EPSG:2264");
 */
proj4_1.default.defs("EPSG:2264", "+proj=lcc +lat_0=33.75 +lon_0=-79 +lat_1=36.1666666666667 +lat_2=34.3333333333333 +x_0=609601.219202438 +y_0=0 +datum=NAD83 +units=us-ft +no_defs +type=crs");
/**
 * Exports the configured proj4 library for use in other parts of the application.
 * Allows transformation of coordinates using the defined custom projections.
 *
 * @memberof config
 * @module
 * @exports proj4
 * @example
 * import proj4 from './proj4Config';
 * const coords = proj4('EPSG:2273', 'EPSG:4326', [1000, 2000]);
 * console.log(coords);
 */
exports.default = proj4_1.default;