azavea / loam

Javascript wrapper for GDAL in the browser
Apache License 2.0
214 stars 16 forks source link

Error in GDALOpen #117

Open rakshitjain13 opened 1 year ago

rakshitjain13 commented 1 year ago

When giving a png or jpeg file in loam.open() it throughs an error :

Error: Error in GDALOpen: The JPEG/PNG driver does not support update access to existing datasets.

While giving a GeoTIFF file loam works absolutely fine.

MatticusPrime29 commented 1 year ago

Did you get anywhere with this issue? I notice that on the site (https://geotiffinfo.com/) jpgs do not cause an error. This may be the same case for the demo.

ddohler commented 1 year ago

Looks like this is a regression in Loam 1.2.0 (the demo page hasn't been updated yet). If you don't need any of the new features in 1.2.0 then it should be safe to downgrade to 1.1.2. Sorry for the delay in responding!

rakshitjain13 commented 1 year ago

Ohh! Thanks @ddohler

ddohler commented 1 year ago

I'm going to keep this open; it's a real bug that needs to be addressed for future versions.