![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@thi.ng/pixel-io-geotiff
Advanced tools
[!NOTE] This is one of 200 standalone projects, maintained as part of the @thi.ng/umbrella monorepo and anti-framework.
🚀 Please help me to work full-time on these projects by sponsoring me on GitHub. Thank you! ❤️
GeoTIFF reader support for @thi.ng/pixel.
This package is only intended to simplify obtaining DEM (elevation) data and not aimed at general GeoTIFF functionality. For the latter we recommend using the wrapped geotiff.js package directly.
STABLE - used in production
Search or submit any issues for this package
yarn add @thi.ng/pixel-io-geotiff
ESM import:
import * as geo from "@thi.ng/pixel-io-geotiff";
Browser ESM import:
<script type="module" src="https://esm.run/@thi.ng/pixel-io-geotiff"></script>
For Node.js REPL:
const geo = await import("@thi.ng/pixel-io-geotiff");
Package sizes (brotli'd, pre-treeshake): ESM: 399 bytes
Note: @thi.ng/api is in most cases a type-only import (not used at runtime)
import { GRAY16 } from "@thi.ng/pixel";
import { readGeoTiff } from "@thi.ng/pixel-io-geotiff";
import { asPGM16 } from "@thi.ng/pixel-io-netpbm";
import { readFileSync } "node:fs";
// load GeoTIFF image and convert to thi.ng/pixel floatBuffer
// the result image uses a custom pixel format (FLOAT_GRAY_RANGE, with [min..max]
// set to the analyzed value range found in the source image raster...)
const result = await readGeoTiff(readFileSync("USGS_1_n37w119_20211004.tif"));
// { img: FloatBuffer { size: [ 3612, 3612 ], ... }, tiff: { ... } }
// convert to 16bit PGM
writeFileSync("n37w119.pgm", asPGM16(result.img.as(GRAY16)));
// the result also contains the original TIFF image
// (see 3rd party geotiff package for more details)
result.tiff.getGDALMetadata(0);
// {
// LAYER_TYPE: '*',
// RepresentationType: '*',
// STATISTICS_MAXIMUM: '4412.8549804688',
// STATISTICS_MEAN: '2114.5010480446',
// STATISTICS_MINIMUM: '140.41374206543',
// STATISTICS_STDDEV: '918.91201914189',
// STATISTICS_VALID_PERCENT: '100'
// }
If this project contributes to an academic publication, please cite it as:
@misc{thing-pixel-io-geotiff,
title = "@thi.ng/pixel-io-geotiff",
author = "Karsten Schmidt",
note = "https://thi.ng/pixel-io-geotiff",
year = 2023
}
© 2023 - 2024 Karsten Schmidt // Apache License 2.0
FAQs
GeoTIFF reader support for @thi.ng/pixel
The npm package @thi.ng/pixel-io-geotiff receives a total of 2 weekly downloads. As such, @thi.ng/pixel-io-geotiff popularity was classified as not popular.
We found that @thi.ng/pixel-io-geotiff demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.