Skip to content

geotrellis.raster.GeoAttrsError: invalid cols: 0 #984

@EmileSonneveld

Description

@EmileSonneveld

Kristof encountered this error:

py4j.protocol.Py4JJavaError: An error occurred while calling o2489.mergeSpatialCubes.
: geotrellis.raster.GeoAttrsError: invalid cols: 0
	at geotrellis.raster.GridExtent.<init>(GridExtent.scala:45)
	at geotrellis.raster.GridExtent.<init>(GridExtent.scala:58)
	at geotrellis.raster.reproject.ReprojectRasterExtent$.apply(ReprojectRasterExtent.scala:71)
	at geotrellis.raster.reproject.ReprojectRasterExtent$.apply(ReprojectRasterExtent.scala:82)
	at geotrellis.raster.reproject.ReprojectRasterExtent$.apply(ReprojectRasterExtent.scala:86)
	at org.openeo.geotrellis.reproject.TileRDDReproject$.apply(TileRDDReproject.scala:73)
	at org.openeo.geotrellis.reproject.TileRDDReproject$.apply(TileRDDReproject.scala:321)
	at org.openeo.geotrellis.OpenEOProcesses.resampleCubeSpatial_spatial(OpenEOProcesses.scala:877)
	at org.openeo.geotrellis.OpenEOProcesses.mergeSpatialCubes(OpenEOProcesses.scala:931)

j-250106ead7734ec7a4d913bd3b08dcf1

This can be reproduced with a smaller process graph:

{
  "process_graph": {
    "filter1": {
      "arguments": {
        "data": {"from_node": "resample1"},
        "geometries": {
          "features": [
            {
              "geometry": {
                "coordinates": [
                  [
                    [-120.550792, 71.835099],
                    [-120.550792, 71.834899],
                    [-120.550992, 71.834899],
                    [-120.550992, 71.835099],
                    [-120.550792, 71.835099]
                  ]
                ],
                "type": "Polygon"
              },
              "id": "0",
              "properties": {},
              "type": "Feature"
            }
          ],
          "type": "FeatureCollection"
        }
      },
      "process_id": "filter_spatial",
      "result": true
    },
    "loadcollection4": {
      "arguments": {
        "bands": ["DEM"],
        "id": "COPERNICUS_30",
        "spatial_extent": null,
        "temporal_extent": null
      },
      "process_id": "load_collection"
    },
    "loadstac1": {
      "arguments": {
        "bands": ["Slope"],
        "url": "https://stac.openeo.vito.be/collections/COPERNICUS30_DEM_SLOPE"
      },
      "process_id": "load_stac"
    },
    "reducedimension2": {
      "arguments": {
        "data": {"from_node": "loadcollection4"},
        "dimension": "t",
        "reducer": {
          "process_graph": {
            "min2": {
              "arguments": {"data": {"from_parameter": "data"}},
              "process_id": "min",
              "result": true
            }
          }
        }
      },
      "process_id": "reduce_dimension"
    },
    "resample1": {
      "arguments": {
        "data": {"from_node": "reducedimension2"},
        "target": {"from_node": "loadstac1"}
      },
      "process_id": "resample_cube_spatial"
    }
  }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions