Opened 5 years ago

Closed 5 years ago

#1955 closed defect (fixed)

Problem ingesting GDAL subdataset in petascope

Reported by: Dimitar Misev Owned by: Bang Pham Huu
Priority: major Milestone: 9.8
Component: petascope Version: development
Keywords: Cc:
Complexity: Medium

Description

In the attachment is a custom recipe + ingredients + sample data (resized) + generated gml file.

When I run wcst_import.sh sentinel2.json, I get an error ArrayIndexOutOfBoundsException from petascope, but the petascope.log doesn't contain anything more (no stacktrace).

I think it might be because the file reference is a GDAL subdataset, which is not a proper file path that exists on the filesystem (only GDAL can understand it):

        <gml:fileReference><![CDATA[
                file://SENTINEL2_L1C:/vsizip//d/DataImport/S2A_MSIL1C_20170301T103021_N0204_R108_T31TFL_20170301T103326.SAFE.zip/S2A_MSIL1C_20170301T103021_N0204_R108_T31TFL_20170301T103326.SAFE/MTD_MSIL1C.xml:10m:EPSG_32631
            ]]></gml:fileReference>

You may need gdal 2+ for it to work directly on the sample zip data.

Attachments (1)

ingestion.tar.gz (2.6 MB ) - added by Dimitar Misev 5 years ago.

Change History (4)

by Dimitar Misev, 5 years ago

Attachment: ingestion.tar.gz added

comment:1 by Bang Pham Huu, 5 years ago

Resolution: fixed
Status: newclosed

The problem comes from the recipe itself with adding directPositions for irregular time axis while it should not be added when dataBound is set to false. The similar ingredient file for 3D irregular GeneralRecipe GDAL is http://rasdaman.org/browser/systemtest/testcases_services/test_all_wcst_import/testdata/wcps_float_fractional_time_ansidate/ingest.template.json#L41

comment:2 by Dimitar Misev, 5 years ago

Resolution: fixed
Status: closedreopened

Not fixed, wcst_import should throw error on this invalid option combination.

comment:3 by Bang Pham Huu, 5 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.