Giter Club home page Giter Club logo

cogeotiff's Introduction

cogeotiff's People

Contributors

blacha avatar dependabot-preview[bot] avatar dependabot[bot] avatar github-actions[bot] avatar kodiakhq[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cogeotiff's Issues

Library example doesn't work

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?

Incorrectly detecting COG as unoptimized?

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>
		

Cannot read property 'open' of undefined

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

Help wanted? & a few questions

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...

  1. So it looks like you are creating a capability similar to geotiff.js. Do you have a roadmap or any points of difference?
  2. Are you run into any issues with the node vs browser compatibility
  3. Are you in need of any help? Creating doco or perhaps more fully fleshed out plugins for front-end libs etc?
  4. Have you done any benchmarks against geotiff.js around performance?

Cheers
Rowan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.