- ๐ Hi, Iโm @blacha
- ๐ซ [email protected]
blacha / cogeotiff Goto Github PK
View Code? Open in Web Editor NEWHigh performance cloud optimized geotiff (COG) reader
License: MIT License
High performance cloud optimized geotiff (COG) reader
License: MIT License
Hi,
I'm looking for way to read COGs directly from a browser - I wanted to test this library, but the example doesn't seem to work:
import { CogSourceUrl } from '@chunkd/source-url';
Does that import exist?
How does cogeotiff determine if a COG is optimized? cogeotiff says my COG's are unoptimized, freshly generated with GDAL3.4.3, and passing every other validator I can find, i.e.: https://github.com/rouault/cog_validator/blob/master/validate_cloud_optimized_geotiff.py
sample data at: https://static2.skysight.io/goes17.tiff
python3 validate_cloud_optimized_geotiff.py --full-check=yes goes17.tiff
goes17.tiff is a valid cloud optimized GeoTIFF
The size of all IFD headers is 303118 bytes
COG File Info - /home/plantain/goes17.tiff
Tiff type BigTiff (v43)
Chunk size 16 KB
Bytes read 16 KB (1 Chunk)
Images
Compression image/jpeg
Origin -20037508.3428, 12523442.7142, 0
Resolution 611.4962, -611.4963, 0
BoundingBox -20037508.3428, -10018754.1714, -10018754.1714, 12523442.7142
EPSG EPSG:3857 (https://epsg.io/3857)
Info
Id Size Tile Size Tile Count Compression
0 16384x36864 64x144 9216 image/jpeg
1 16384x36864 64x144 9216 application/deflate
2 8192x18432 32x72 2304 image/jpeg
3 4096x9216 16x36 576 image/jpeg
4 2048x4608 8x18 144 image/jpeg
5 1024x2304 4x9 36 image/jpeg
6 512x1152 2x5 10 image/jpeg
7 256x576 1x3 3 image/jpeg
8 128x288 1x2 2 image/jpeg
9 64x144 1x1 1 image/jpeg
10 8192x18432 32x72 2304 application/deflate
11 4096x9216 16x36 576 application/deflate
12 2048x4608 8x18 144 application/deflate
13 1024x2304 4x9 36 application/deflate
14 512x1152 2x5 10 application/deflate
15 256x576 1x3 3 application/deflate
16 128x288 1x2 2 application/deflate
17 64x144 1x1 1 application/deflate
GDAL
COG optimized false
Metadata
<Item name="NAME" domain="TILING_SCHEME">GoogleMapsCompatible</Item>
<Item name="ZOOM_LEVEL" domain="TILING_SCHEME">8</Item>
<Item name="ALIGNED_LEVELS" domain="TILING_SCHEME">5</Item>
Get the following error when opening a simple geotiff.
$ cogeotiff info -f tests/data/32x32_LZW.TIF
[2020-05-04T03:10:50.568Z] FATAL Failed to run error={ message=Cannot read property 'open' of undefined, stack=TypeError: Cannot read property 'open' of undefined
at CogSourceFile.fetchBytes (/usr/local/lib/node_modules/@cogeotiff/cli/node_modules/@cogeotiff/source-file/src/cog.source.file.ts:49:26)
at Fetchable.CogChunk.fetchable.util_fetchable_1.Fetchable [as fetchFunc] (/usr/local/lib/node_modules/@cogeotiff/cli/node_modules/@cogeotiff/core/src/source/cog.chunk.ts:33:46)
at _valuePromise.Promise (/usr/local/lib/node_modules/@cogeotiff/cli/node_modules/@cogeotiff/core/src/util/util.fetchable.ts:49:46)
at new Promise (<anonymous>)
at Fetchable.fetch (/usr/local/lib/node_modules/@cogeotiff/cli/node_modules/@cogeotiff/core/src/util/util.fetchable.ts:47:34)
at CogChunk.fetch (/usr/local/lib/node_modules/@cogeotiff/cli/node_modules/@cogeotiff/core/src/source/cog.chunk.ts:52:31)
at CogSourceFile.loadBytes (/usr/local/lib/node_modules/@cogeotiff/cli/node_modules/@cogeotiff/core/src/source/cog.source.ts:262:33)
at CogTiff.init (/usr/local/lib/node_modules/@cogeotiff/cli/node_modules/@cogeotiff/core/src/cog.tiff.ts:31:27)
at Object.getCogSource (/usr/local/lib/node_modules/@cogeotiff/cli/src/action.util.ts:36:19)
at ActionCogInfo.onExecute (/usr/local/lib/node_modules/@cogeotiff/cli/src/action.info.ts:30:42) }
OS: Ubuntu 18.04
Node version: v8.10.0
Hi @blacha
It looks like you're doing some really interesting work in this repo. I had a few questions around where it's headed and whether you need any help getting there...
Cheers
Rowan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.