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

Support NetCDF #731

Open
iGN5117 opened this issue Aug 26, 2023 · 5 comments
Open

Support NetCDF #731

iGN5117 opened this issue Aug 26, 2023 · 5 comments

Comments

@iGN5117
Copy link

iGN5117 commented Aug 26, 2023

Can you please release a version with latest gdal so that reading netcdf files via raster2pgsal is possible?

@jakob
Copy link
Member

jakob commented Aug 26, 2023

Have you tried using the PostgreSQL 16 Beta? I think it comes with a newer version of GDAL.

Also, it would be super helpful if you could provide us with sample files and sample code to demonstrate the problem. We don't use PostGIS ourselves, we just package it, so that would make it a lot easier for us to check if we built everything correctly.

@jakob
Copy link
Member

jakob commented Aug 26, 2023

Sorry, I was wrong, both PG 15 and 16 build with GDAL 3.5.2

Could this be related to #724?

@tbussmann
Copy link
Member

you were not completely wrong on pg16 - updating GDAL is still on my ToDo list for the PostgreSQL 16 release. However, the missing support for the NetCDF format is not caused by the version of GDAL itself but by a specific build dependency (libnetcdf) for this format that we do not include. I'll have a look if adding this would be feasible...

@iGN5117
Copy link
Author

iGN5117 commented Aug 26, 2023

It would be amazing if adding this would be feasible, Thank you so much in advance!

tbussmann added a commit that referenced this issue Nov 8, 2023
for now w/o NetCDF-4 (and HDF5) support
@tbussmann
Copy link
Member

The upcoming release will support the netCDF format in GDAL / OGR with PostgreSQL 16. The libnetcdf library was compiled without HDF5 support, the the FORMAT=NC4 and NC4C options will not be available. These can be added later, if necessary.

Please give some feedback if this driver is working for you as I don't have any workflow to test it myself. Even better if you could provide small sample data to check if the build works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants