rwinlib / gdal2

Modern GDAL/PROJ/GEOS stack with lots of extra drivers
12 stars 9 forks source link

JPEG 2000 / OpenJPEG #7

Closed edzer closed 6 years ago

edzer commented 6 years ago

Would it be possible to add the JPEG 2000 driver by adding the OpenJPEG library to gdal2?

This is highly desirable: for instance the Sentinel 2A and 2B satellites provide free data delivered in this format; these satellites were funded and are operated by the European space organizations.

Let me know where I can help.

jeroen commented 6 years ago

I'll try to have a look net week.

jeroen commented 6 years ago

@edzer I'll have to rebuild the entire stack. Are there other features/libs you'd like to support?

edzer commented 6 years ago

I've asked on twitter.

JoshOBrien commented 6 years ago

@edzer I'm not on Twitter, so can't reply there, but I too would add a vote for an HDF4 driver. (I actually came over here independently just now to ask for just that very thing. I searched first to see if it had already been requested, and was happily surprised to see that you and jeroen had just put out the call for such requests!)

jeroen commented 6 years ago

OK so i'll try to build with HDF4 and OpenJPEG for the next stack.

jeroen commented 6 years ago

Are there also drivers that are currently in there you don't need anymore?

edzer commented 6 years ago

Not that I know - it's a much harder question to answer!

mdsumner commented 6 years ago

I'd really like KEA to be available, builds on HDF5 but also requires libkea http://gdal.org/frmt_kea.html

(I don't think it's been added, but I also can't check right now).

@pierreroudier will vouch for KEA ;)

Thanks @jeroen!

mdsumner commented 6 years ago

I'll add to the HDF4 chorus too, our primary target is these passive microwave data of sea ice concentration, an example file:

wget https://seaice.uni-bremen.de/data/amsr2/asi_daygrid_swath/s6250/2017/dec/Antarctic/asi-AMSR2-s6250-20171211-v5.hdf
pierreroudier commented 6 years ago

@mdsumner thanks, I didn't want to be the token KEA fanboy :)

@jeroen Happy to provide sample files etc if need be

jeroen commented 6 years ago

It took me a few nights of fighting with windows but we have a new release. The 2.2.3 stack adds drivers for mysql, openjpeg, jasper, hdf4, and kealib as requested above.

A word of caution about the hdf4 driver. I had to do a bit of hacking in the libhdf source code to make it build on windows with mingw-w64. Eventually I got it to compile but it is basically untested (I don't think anyone has ever compiled hdf4 on mingw-w64 before). I highly recommend users to use hdf5 instead when possible, which has proper windows support.

edzer commented 6 years ago

Great news, @jeroen - thanks a lot; I look forward to getting this tested!

jeroen commented 4 years ago

@mdsumner do you still need/use kealib? I don't see this driver in any other operating system (ubuntu, macos), so I'm considering to drop it for the next release.

mdsumner commented 4 years ago

I don't but @pierreroudier might

pierreroudier commented 4 years ago

@jeroen Using it occasionally, typically one would compile the driver separately and it would be added to the list of available drivers:

https://gdal.org/drivers/raster/kea.html

jeroen commented 4 years ago

@pierreroudier do you use the windows builds, or do you compile yourself on linux?

pierreroudier commented 4 years ago

@jeroen compiling by myself on Linux.