Details
Description
Spatial Subset From View give no error message in case of width=1 and height=1 of input image. Currently, the dialog does not open, and exception is thrown only internally.
the dialog should open even for images with a width and height of 1 to make a band-subset.
the dialog should open even for images with a width and height of 1 to make a band-subset.
Activity
Marco Zühlke
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Summary | Spatial Subset From View shall return error message | Spatial Subset From View fails without error message |
| Description | Spatial Subset From View shall return error message in case of width=1 and height=1 of input image. Currently, the dialog does not open, and exception is thrown only internally. |
Spatial Subset From View give no error message in case of width=1 and height=1 of input image. Currently, the dialog does not open, and exception is thrown only internally. the dialog should open even for images with a width and height of 1 to make a band-subset. |
| Fix Version/s | 4.10 [ 10412 ] | |
| Assignee | Marco Zühlke [ marcoz ] |
Marco Zühlke
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] | |
| Assignee | Marco Zühlke [ marcoz ] | Olga Faber [ olga ] |
Olga Faber
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: latBand.getProduct().getSceneRasterWidth() < 2 || latBand.getProduct().getS
ceneRasterHeight() < 2
at org.esa.beam.framework.datamodel.PixelGeoCoding.<init>(PixelGeoCoding.java:144)
at org.esa.beam.framework.datamodel.PixelGeoCoding.transferGeoCoding(PixelGeoCoding.java:910)
at org.esa.beam.framework.datamodel.SceneFactory.transferGeoCoding(SceneFactory.java:53)
at org.esa.beam.framework.datamodel.SceneFactory.access$000(SceneFactory.java:27)
at org.esa.beam.framework.datamodel.SceneFactory$ProductScene.transferGeoCodingTo(SceneFactory.java:106)
at org.esa.beam.framework.datamodel.Product.transferGeoCodingTo(Product.java:654)
at org.esa.beam.framework.dataio.ProductSubsetBuilder.addGeoCodingToProduct(ProductSubsetBuilder.java:527)
at org.esa.beam.framework.dataio.ProductSubsetBuilder.createProduct(ProductSubsetBuilder.java:317)
at org.esa.beam.framework.dataio.ProductSubsetBuilder.readProductNodesImpl(ProductSubsetBuilder.java:78)
at org.esa.beam.framework.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:170)
at org.esa.beam.framework.dataio.AbstractProductBuilder.readProductNodes(AbstractProductBuilder.java:78)
at org.esa.beam.framework.dataio.ProductSubsetBuilder.createProductSubset(ProductSubsetBuilder.java:53)
at org.esa.beam.framework.dataio.ProductSubsetBuilder.createProductSubset(ProductSubsetBuilder.java:47)
at org.esa.beam.framework.datamodel.Product.createSubset(Product.java:1536)