#967 closed defect (invalid)

Bands of target coverage do not match input coverage

Reported by: dmisev Owned by: mdumitru
Priority: major Milestone: 9.1.x
Component: applications Version: development
Keywords: Cc: vmerticariu
Complexity: Medium

Description (last modified by dmisev)

Here's the data format:

Driver: GTiff/GeoTIFF
Files: LS5_TM_NBAR_138_-021_2008-09-18T00-32-53.097094.tif
       LS5_TM_NBAR_138_-021_2008-09-18T00-32-53.097094.tif.aux.xml
Size is 4000, 4000
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (138.000000000000000,-20.000000000000000)
Pixel Size = (0.000250000000000,-0.000250000000000)
Metadata:
  AREA_OR_POINT=Area
  end_datetime=2008-09-18T00:33:17.097094
  path=100
  row=074
  satellite=LS5
  sensor=TM
  start_datetime=2008-09-18T00:32:53.097094
  x_index=138
  y_index=-21
Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  ( 138.0000000, -20.0000000) (138d 0' 0.00"E, 20d 0' 0.00"S)
Lower Left  ( 138.0000000, -21.0000000) (138d 0' 0.00"E, 21d 0' 0.00"S)
Upper Right ( 139.0000000, -20.0000000) (139d 0' 0.00"E, 20d 0' 0.00"S)
Lower Right ( 139.0000000, -21.0000000) (139d 0' 0.00"E, 21d 0' 0.00"S)
Center      ( 138.5000000, -20.5000000) (138d30' 0.00"E, 20d30' 0.00"S)
Band 1 Block=4000x1 Type=Int16, ColorInterp=Gray
  NoData Value=-999
  Metadata:
    filename=/g/data/v10/NBAR/2008-09/LS5_TM_NBAR_P54_GANBAR01-002_100_074_20080918/scene01/LS5_TM_NBAR_P54_GANBAR01-002_100_074_20080918_B10.tif
    name=Visible Blue
Band 2 Block=4000x1 Type=Int16, ColorInterp=Undefined
  NoData Value=-999
  Metadata:
    filename=/g/data/v10/NBAR/2008-09/LS5_TM_NBAR_P54_GANBAR01-002_100_074_20080918/scene01/LS5_TM_NBAR_P54_GANBAR01-002_100_074_20080918_B20.tif
    name=Visible Green
Band 3 Block=4000x1 Type=Int16, ColorInterp=Undefined
  NoData Value=-999
  Metadata:
    filename=/g/data/v10/NBAR/2008-09/LS5_TM_NBAR_P54_GANBAR01-002_100_074_20080918/scene01/LS5_TM_NBAR_P54_GANBAR01-002_100_074_20080918_B30.tif
    name=Visible Red
Band 4 Block=4000x1 Type=Int16, ColorInterp=Undefined
  NoData Value=-999
  Metadata:
    filename=/g/data/v10/NBAR/2008-09/LS5_TM_NBAR_P54_GANBAR01-002_100_074_20080918/scene01/LS5_TM_NBAR_P54_GANBAR01-002_100_074_20080918_B40.tif
    name=Near Infrared
Band 5 Block=4000x1 Type=Int16, ColorInterp=Undefined
  NoData Value=-999
  Metadata:
    filename=/g/data/v10/NBAR/2008-09/LS5_TM_NBAR_P54_GANBAR01-002_100_074_20080918/scene01/LS5_TM_NBAR_P54_GANBAR01-002_100_074_20080918_B50.tif
    name=Middle Infrared 1
Band 6 Block=4000x1 Type=Int16, ColorInterp=Undefined
  NoData Value=-999
  Metadata:
    filename=/g/data/v10/NBAR/2008-09/LS5_TM_NBAR_P54_GANBAR01-002_100_074_20080918/scene01/LS5_TM_NBAR_P54_GANBAR01-002_100_074_20080918_B70.tif
    name=Middle Infrared 2

I get error

Service Call: http://localhost:8080/rasdaman/ows?service=WCS&version=2.0.1&request=UpdateCoverage&subset1=ansi("2008-01-16T01:13:43.180063+00:00")&subset3=Lat(-11.0,-10.0)&coverageId=AGDC&insitu=True&subset2=Long(130.0,131.0)&inputCoverageRef=file:///tmp/b1a104ae_3ff8_4d4d_8706_cccfda061f5c.gml
Error Code: InconsistentChange
Error Text: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ows:ExceptionReport version="2.0.0"
    xsd:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd"
    xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
    <ows:Exception exceptionCode="InconsistentChange">
        <ows:ExceptionText>The number of bands (swe:field elements) of target coverage (found 6) and input coverage (found 1) don't match.</ows:ExceptionText>
    </ows:Exception>

</ows:ExceptionReport>

wcst_import doesn't generate the range type properly for multiband from what I could see? This is from the gml:

<gmlcov:rangeType>
    <swe:DataRecord>
        <swe:field name="Gray">
            <swe:Quantity definition="">
                <swe:description></swe:description>
                <swe:nilValues>
                    <swe:NilValues>
                        -999
                    </swe:NilValues>
                </swe:nilValues>
                <swe:uom code="10^0"/>
            </swe:Quantity>
        </swe:field>
         <swe:field name="field_2">
            <swe:Quantity definition="">
                <swe:description></swe:description>
                <swe:nilValues>
                    <swe:NilValues>
                        
                    </swe:NilValues>
                </swe:nilValues>
                <swe:uom code="10^0"/>
            </swe:Quantity>
        </swe:field>
         <swe:field name="field_3">
            <swe:Quantity definition="">
                <swe:description></swe:description>
                <swe:nilValues>
                    <swe:NilValues>
                        
                    </swe:NilValues>
                </swe:nilValues>
                <swe:uom code="10^0"/>
            </swe:Quantity>
        </swe:field>
         <swe:field name="field_4">
            <swe:Quantity definition="">
                <swe:description></swe:description>
                <swe:nilValues>
                    <swe:NilValues>
                        
                    </swe:NilValues>
                </swe:nilValues>
                <swe:uom code="10^0"/>
            </swe:Quantity>
        </swe:field>

    </swe:DataRecord>
</gmlcov:rangeType>

Change History (2)

comment:1 Changed 21 months ago by dmisev

  • Description modified (diff)

comment:2 Changed 21 months ago by dmisev

  • Resolution set to invalid
  • Status changed from new to closed

I realized the files have different number of bands.

Note: See TracTickets for help on using tickets.