-
Notifications
You must be signed in to change notification settings - Fork 2
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
Help with geopackages using QGIS for GeoERA TACTIC project #278
Comments
Some information on creating GeoPackages can be found at: https://geoera-gip.github.io/documentation/data.html#create-geopackage |
Waiting for project to send example ASCII file so we know exactly what the data structure is. |
Files are ASCII grid as per below example. |
Related issue: #282 |
Still awaiting confirmation on #282 as to whether GeoPackage is the correct way of supplying this grid data. |
The following command line instruction will convert the ESRI ASCII grid to a GeoPackage RASTER:
Input file details (QGIS):
Output file details:
|
There is something wrong in the ascii file or missing parameters in the GDAL line. There is a mix between
* CRS EPSG:4326 - WGS 84 – Geographic
* Geographic coordinates
· Extent 439000.0001220700214617,6035000.0001221001148224 : 750000.0001220700796694,6405500.0001221001148224
o which are in UTM zone 32N
|
The ASCII file is as supplied by TACTIC and the 'proj' file shows only:
So that's not UTM zone 32N (EPSG::32632). |
Yes, but the extent is in UTM zone 32N the grid is 500 m x 500 m, and using the grid number it is the same extent as the ‘extent’, and the ‘extent’ is in UTM coordinates.
Normally raster’s are in regular grid, if it’s GEOGRAPHIC then the grid is not 500 m x 500 m to the north compared to the south of the area.
|
So it's an issue in the input ASCII file (and proj file) that needs to be fixed, agreed. The issue here (278) is how to create a GeoPackage from an ASCII file. |
Assuming data is epsg:32632 I deleted the supplied .prj file and ran:
gdalinfo (gdalinfo TACTIC_Test.gpkg) for the created file gives:
Inputs and outputs are: |
@majdiman Can you check that the converted data is as expected (it will load into QGIS, and looks similar to the ASCII data, but you should double check...) Note that @mh-geus-dk reports in #282 that you should probably be using GeoTIFF or NetCDF (rather than GeoPackage) so, if you can output either of those directly, that would be better. |
You can get a netCDF by using:
and GeoTIFF with:
@mh-geus-dk can you test to see whether you can load any/all of these outputs to EGDI platform? |
@mh-geus-dk Similarly to #297 we understand there is no upload facility for GeoTIFF or NetCDF or any non-model grid format, Should science projects just wait until such functionality is available, or is it possible to do some manual upload to test the data is as it should be. |
As EGDI platform does not have upload facility perhaps files should be sent directly to @mh-geus-dk to assess wehther he can load them into the platform? The data files are attached to this issue, can Martin try to ingest them? |
Have had email saying this issue can be closed; test data has been sent directly by project. |
There is an upload facility for GeoTIFF files on the production EGDI platform now. |
-----Original Message----- From: Mansour, Majdi
I am working on TACTIC GeoERA project with GEUS and other partners. GEUS were trying to create a geopackage out of a simple ascii file using QGIS and were failing. I just wonder if you know how to create these geopackages and if you can offer any guidance.
The text was updated successfully, but these errors were encountered: