310 lines
7.0 KiB
JavaScript
310 lines
7.0 KiB
JavaScript
import {
|
|
__export
|
|
} from "./chunk-LK32TJAX.js";
|
|
|
|
// node_modules/geotiff/dist-module/globals.js
|
|
var globals_exports = {};
|
|
__export(globals_exports, {
|
|
ExtraSamplesValues: () => ExtraSamplesValues,
|
|
LercAddCompression: () => LercAddCompression,
|
|
LercParameters: () => LercParameters,
|
|
arrayFields: () => arrayFields,
|
|
fieldTagNames: () => fieldTagNames,
|
|
fieldTagTypes: () => fieldTagTypes,
|
|
fieldTags: () => fieldTags,
|
|
fieldTypeNames: () => fieldTypeNames,
|
|
fieldTypes: () => fieldTypes,
|
|
geoKeyNames: () => geoKeyNames,
|
|
geoKeys: () => geoKeys,
|
|
photometricInterpretations: () => photometricInterpretations
|
|
});
|
|
var fieldTagNames = {
|
|
// TIFF Baseline
|
|
315: "Artist",
|
|
258: "BitsPerSample",
|
|
265: "CellLength",
|
|
264: "CellWidth",
|
|
320: "ColorMap",
|
|
259: "Compression",
|
|
33432: "Copyright",
|
|
306: "DateTime",
|
|
338: "ExtraSamples",
|
|
266: "FillOrder",
|
|
289: "FreeByteCounts",
|
|
288: "FreeOffsets",
|
|
291: "GrayResponseCurve",
|
|
290: "GrayResponseUnit",
|
|
316: "HostComputer",
|
|
270: "ImageDescription",
|
|
257: "ImageLength",
|
|
256: "ImageWidth",
|
|
271: "Make",
|
|
281: "MaxSampleValue",
|
|
280: "MinSampleValue",
|
|
272: "Model",
|
|
254: "NewSubfileType",
|
|
274: "Orientation",
|
|
262: "PhotometricInterpretation",
|
|
284: "PlanarConfiguration",
|
|
296: "ResolutionUnit",
|
|
278: "RowsPerStrip",
|
|
277: "SamplesPerPixel",
|
|
305: "Software",
|
|
279: "StripByteCounts",
|
|
273: "StripOffsets",
|
|
255: "SubfileType",
|
|
263: "Threshholding",
|
|
282: "XResolution",
|
|
283: "YResolution",
|
|
// TIFF Extended
|
|
326: "BadFaxLines",
|
|
327: "CleanFaxData",
|
|
343: "ClipPath",
|
|
328: "ConsecutiveBadFaxLines",
|
|
433: "Decode",
|
|
434: "DefaultImageColor",
|
|
269: "DocumentName",
|
|
336: "DotRange",
|
|
321: "HalftoneHints",
|
|
346: "Indexed",
|
|
347: "JPEGTables",
|
|
285: "PageName",
|
|
297: "PageNumber",
|
|
317: "Predictor",
|
|
319: "PrimaryChromaticities",
|
|
532: "ReferenceBlackWhite",
|
|
339: "SampleFormat",
|
|
340: "SMinSampleValue",
|
|
341: "SMaxSampleValue",
|
|
559: "StripRowCounts",
|
|
330: "SubIFDs",
|
|
292: "T4Options",
|
|
293: "T6Options",
|
|
325: "TileByteCounts",
|
|
323: "TileLength",
|
|
324: "TileOffsets",
|
|
322: "TileWidth",
|
|
301: "TransferFunction",
|
|
318: "WhitePoint",
|
|
344: "XClipPathUnits",
|
|
286: "XPosition",
|
|
529: "YCbCrCoefficients",
|
|
531: "YCbCrPositioning",
|
|
530: "YCbCrSubSampling",
|
|
345: "YClipPathUnits",
|
|
287: "YPosition",
|
|
// EXIF
|
|
37378: "ApertureValue",
|
|
40961: "ColorSpace",
|
|
36868: "DateTimeDigitized",
|
|
36867: "DateTimeOriginal",
|
|
34665: "Exif IFD",
|
|
36864: "ExifVersion",
|
|
33434: "ExposureTime",
|
|
41728: "FileSource",
|
|
37385: "Flash",
|
|
40960: "FlashpixVersion",
|
|
33437: "FNumber",
|
|
42016: "ImageUniqueID",
|
|
37384: "LightSource",
|
|
37500: "MakerNote",
|
|
37377: "ShutterSpeedValue",
|
|
37510: "UserComment",
|
|
// IPTC
|
|
33723: "IPTC",
|
|
// ICC
|
|
34675: "ICC Profile",
|
|
// XMP
|
|
700: "XMP",
|
|
// GDAL
|
|
42112: "GDAL_METADATA",
|
|
42113: "GDAL_NODATA",
|
|
// Photoshop
|
|
34377: "Photoshop",
|
|
// GeoTiff
|
|
33550: "ModelPixelScale",
|
|
33922: "ModelTiepoint",
|
|
34264: "ModelTransformation",
|
|
34735: "GeoKeyDirectory",
|
|
34736: "GeoDoubleParams",
|
|
34737: "GeoAsciiParams",
|
|
// LERC
|
|
50674: "LercParameters"
|
|
};
|
|
var fieldTags = {};
|
|
for (const key in fieldTagNames) {
|
|
if (fieldTagNames.hasOwnProperty(key)) {
|
|
fieldTags[fieldTagNames[key]] = parseInt(key, 10);
|
|
}
|
|
}
|
|
var fieldTagTypes = {
|
|
256: "SHORT",
|
|
257: "SHORT",
|
|
258: "SHORT",
|
|
259: "SHORT",
|
|
262: "SHORT",
|
|
273: "LONG",
|
|
274: "SHORT",
|
|
277: "SHORT",
|
|
278: "LONG",
|
|
279: "LONG",
|
|
282: "RATIONAL",
|
|
283: "RATIONAL",
|
|
284: "SHORT",
|
|
286: "SHORT",
|
|
287: "RATIONAL",
|
|
296: "SHORT",
|
|
297: "SHORT",
|
|
305: "ASCII",
|
|
306: "ASCII",
|
|
338: "SHORT",
|
|
339: "SHORT",
|
|
513: "LONG",
|
|
514: "LONG",
|
|
1024: "SHORT",
|
|
1025: "SHORT",
|
|
2048: "SHORT",
|
|
2049: "ASCII",
|
|
3072: "SHORT",
|
|
3073: "ASCII",
|
|
33550: "DOUBLE",
|
|
33922: "DOUBLE",
|
|
34264: "DOUBLE",
|
|
34665: "LONG",
|
|
34735: "SHORT",
|
|
34736: "DOUBLE",
|
|
34737: "ASCII",
|
|
42113: "ASCII"
|
|
};
|
|
var arrayFields = [
|
|
fieldTags.BitsPerSample,
|
|
fieldTags.ExtraSamples,
|
|
fieldTags.SampleFormat,
|
|
fieldTags.StripByteCounts,
|
|
fieldTags.StripOffsets,
|
|
fieldTags.StripRowCounts,
|
|
fieldTags.TileByteCounts,
|
|
fieldTags.TileOffsets,
|
|
fieldTags.SubIFDs
|
|
];
|
|
var fieldTypeNames = {
|
|
1: "BYTE",
|
|
2: "ASCII",
|
|
3: "SHORT",
|
|
4: "LONG",
|
|
5: "RATIONAL",
|
|
6: "SBYTE",
|
|
7: "UNDEFINED",
|
|
8: "SSHORT",
|
|
9: "SLONG",
|
|
10: "SRATIONAL",
|
|
11: "FLOAT",
|
|
12: "DOUBLE",
|
|
// IFD offset, suggested by https://owl.phy.queensu.ca/~phil/exiftool/standards.html
|
|
13: "IFD",
|
|
// introduced by BigTIFF
|
|
16: "LONG8",
|
|
17: "SLONG8",
|
|
18: "IFD8"
|
|
};
|
|
var fieldTypes = {};
|
|
for (const key in fieldTypeNames) {
|
|
if (fieldTypeNames.hasOwnProperty(key)) {
|
|
fieldTypes[fieldTypeNames[key]] = parseInt(key, 10);
|
|
}
|
|
}
|
|
var photometricInterpretations = {
|
|
WhiteIsZero: 0,
|
|
BlackIsZero: 1,
|
|
RGB: 2,
|
|
Palette: 3,
|
|
TransparencyMask: 4,
|
|
CMYK: 5,
|
|
YCbCr: 6,
|
|
CIELab: 8,
|
|
ICCLab: 9
|
|
};
|
|
var ExtraSamplesValues = {
|
|
Unspecified: 0,
|
|
Assocalpha: 1,
|
|
Unassalpha: 2
|
|
};
|
|
var LercParameters = {
|
|
Version: 0,
|
|
AddCompression: 1
|
|
};
|
|
var LercAddCompression = {
|
|
None: 0,
|
|
Deflate: 1,
|
|
Zstandard: 2
|
|
};
|
|
var geoKeyNames = {
|
|
1024: "GTModelTypeGeoKey",
|
|
1025: "GTRasterTypeGeoKey",
|
|
1026: "GTCitationGeoKey",
|
|
2048: "GeographicTypeGeoKey",
|
|
2049: "GeogCitationGeoKey",
|
|
2050: "GeogGeodeticDatumGeoKey",
|
|
2051: "GeogPrimeMeridianGeoKey",
|
|
2052: "GeogLinearUnitsGeoKey",
|
|
2053: "GeogLinearUnitSizeGeoKey",
|
|
2054: "GeogAngularUnitsGeoKey",
|
|
2055: "GeogAngularUnitSizeGeoKey",
|
|
2056: "GeogEllipsoidGeoKey",
|
|
2057: "GeogSemiMajorAxisGeoKey",
|
|
2058: "GeogSemiMinorAxisGeoKey",
|
|
2059: "GeogInvFlatteningGeoKey",
|
|
2060: "GeogAzimuthUnitsGeoKey",
|
|
2061: "GeogPrimeMeridianLongGeoKey",
|
|
2062: "GeogTOWGS84GeoKey",
|
|
3072: "ProjectedCSTypeGeoKey",
|
|
3073: "PCSCitationGeoKey",
|
|
3074: "ProjectionGeoKey",
|
|
3075: "ProjCoordTransGeoKey",
|
|
3076: "ProjLinearUnitsGeoKey",
|
|
3077: "ProjLinearUnitSizeGeoKey",
|
|
3078: "ProjStdParallel1GeoKey",
|
|
3079: "ProjStdParallel2GeoKey",
|
|
3080: "ProjNatOriginLongGeoKey",
|
|
3081: "ProjNatOriginLatGeoKey",
|
|
3082: "ProjFalseEastingGeoKey",
|
|
3083: "ProjFalseNorthingGeoKey",
|
|
3084: "ProjFalseOriginLongGeoKey",
|
|
3085: "ProjFalseOriginLatGeoKey",
|
|
3086: "ProjFalseOriginEastingGeoKey",
|
|
3087: "ProjFalseOriginNorthingGeoKey",
|
|
3088: "ProjCenterLongGeoKey",
|
|
3089: "ProjCenterLatGeoKey",
|
|
3090: "ProjCenterEastingGeoKey",
|
|
3091: "ProjCenterNorthingGeoKey",
|
|
3092: "ProjScaleAtNatOriginGeoKey",
|
|
3093: "ProjScaleAtCenterGeoKey",
|
|
3094: "ProjAzimuthAngleGeoKey",
|
|
3095: "ProjStraightVertPoleLongGeoKey",
|
|
3096: "ProjRectifiedGridAngleGeoKey",
|
|
4096: "VerticalCSTypeGeoKey",
|
|
4097: "VerticalCitationGeoKey",
|
|
4098: "VerticalDatumGeoKey",
|
|
4099: "VerticalUnitsGeoKey"
|
|
};
|
|
var geoKeys = {};
|
|
for (const key in geoKeyNames) {
|
|
if (geoKeyNames.hasOwnProperty(key)) {
|
|
geoKeys[geoKeyNames[key]] = parseInt(key, 10);
|
|
}
|
|
}
|
|
|
|
export {
|
|
fieldTagNames,
|
|
arrayFields,
|
|
fieldTypeNames,
|
|
fieldTypes,
|
|
photometricInterpretations,
|
|
ExtraSamplesValues,
|
|
LercParameters,
|
|
LercAddCompression,
|
|
geoKeyNames,
|
|
globals_exports
|
|
};
|
|
//# sourceMappingURL=chunk-RNNQJSBS.js.map
|