Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guide on how to add Geo(Parquet) and Zarr (BLOSC) support to OTBTF #95

Open
daspk04 opened this issue Nov 26, 2023 · 9 comments
Open

Guide on how to add Geo(Parquet) and Zarr (BLOSC) support to OTBTF #95

daspk04 opened this issue Nov 26, 2023 · 9 comments
Assignees
Labels
docker Questions related to the use of otbtf docker images enhancement New feature or request

Comments

@daspk04
Copy link
Contributor

daspk04 commented Nov 26, 2023

Hi @remicres !

I was testing with the latest docker. As it is GDAL 3.7.1, and OTB 9.0, which seems interesting! I tested a bit with 'ZARR' and it seems that it OTB can read it.

  1. Compression method doesn't support BLOSC compressor
gdalinfo --format 'ZARR'

image

  1. Similarly Arrow format is not supported.
ogrinfo --format 'ARROW'

image

Do you think it can added (we copy libraries from this docker image to otbtf image) or somehow recompile GDAL with

@remicres
Copy link
Owner

Hi @Pratyush1991 ,

We could add these apt packages in the docker build.
Then, when building GDAL from the OTB SuperBuild (the cmake script that builds all dependencies), we can provide GDAL build options. So if that is required, I guess that we could do the necessary to include the support of ZARR and ARROW.

I add this in otbtf roadmap!
Will keep you updated

@remicres remicres added enhancement New feature or request docker Questions related to the use of otbtf docker images labels Nov 27, 2023
@remicres remicres self-assigned this Nov 27, 2023
@remicres
Copy link
Owner

I have created a MR here it is a work in progress

@daspk04
Copy link
Contributor Author

daspk04 commented Dec 8, 2023

I have created a MR here it is a work in progress

Thank you @remicres !

@remicres
Copy link
Owner

For now I am failing to make GDAL see arrow and blosc, maybe something on the otb/superbuild side... or related to the GDAL version used in the otb branch (3.7.1), do you know if these supports have been added recently in GDAL?

@daspk04
Copy link
Contributor Author

daspk04 commented Dec 23, 2023

For now I am failing to make GDAL see arrow and blosc, maybe something on the otb/superbuild side... or related to the GDAL version used in the otb branch (3.7.1), do you know if these supports have been added recently in GDAL?

Thank you @remicres for the question. As I checked on the GDAL documentation ARROW support was added from 3.5 onwards and ZARR from 3.4 onwards.

Arrow:

Regarding building it from the source., I checked the the coda recipe for gdal 3.7, I don't completely understand the process but as much as I can understand.

ZARR:

Regarding OTB may be above process can be adapted into the Superbuild, although I might be wrong. Seems like there is a branch for GDAL 3.8 🤔

On a side note I cannot access the merge request may be some issue with sever, I was able to access it 3 weeks earlier thou ! 😄

@remicres
Copy link
Owner

Thanks for this insight, I realise that I did not properly configure gdal before build. I'll try that as soon as our CI is working again...

@daspk04
Copy link
Contributor Author

daspk04 commented Jul 3, 2024

Hi @remicres !

I was able to build OTB 9.0.0 with Geo(Parquet) and Zarr (Blosc). I used Nix to build OTB from source, basically it's a native build with all the process similar to SuperBuild. Nix already has Gdal with Arrow and Blosc enabled by default so it was easy to add them to build process. I built ITK (4.13) and Shark from source as these were not available in Nix packages.

I have added OTB nix package to my repo with readme and how to use it. Currently this doesn't build the remote modules. Except for OTBTF (as it requires TF), other's I think I can possibly add in coming weeks. I also have added some examples on how to configure python environment, incase one needs to configure python environment with pyotb + gdal + otb + rasterio . Your suggestion or comments on this pull request will also help. Incase you have any questions please feel free to open an issue.

@remicres
Copy link
Owner

remicres commented Jul 31, 2024

Hi @daspk04 , that is great news. We will definitely take a look in your nix package after the hollidays. I guess that you have already done some heavy work building otb and itk.

@daspk04
Copy link
Contributor Author

daspk04 commented Dec 15, 2024

Hi @remicres !

I have added OTB to the official Nix package here, so by default GeoParuqet and Zarr (Blosc) support is enabled. I have posted regarding this in the forum as well incase someone still needs OTB with GeoParquet and Zarr support then can always refer to nix packages. I think this issue might be out of scope of OTBTF rather more of OTB. Please feel free to close this issue as it's no more an requirement for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker Questions related to the use of otbtf docker images enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants