[
https://issues.apache.org/jira/browse/SIS-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Desruisseaux updated SIS-514:
------------------------------------
Issue Type: Improvement (was: Task)
> GridGeometry.subgrid(…) should accept an area of interest with less
> dimensions than the base grid
> -------------------------------------------------------------------------------------------------
>
> Key: SIS-514
> URL: https://issues.apache.org/jira/browse/SIS-514
> Project: Spatial Information Systems
> Issue Type: Improvement
> Components: Coverage
> Affects Versions: 1.0
> Reporter: Martin Desruisseaux
> Assignee: Martin Desruisseaux
> Priority: Major
> Fix For: 1.2
>
>
> If {{grid}} is a 4-dimensional grid geometry, for example with the following
> content:
> {noformat}
> GridGeometry
> ├─Grid extent
> │ ├─Column: [0 … 4499] (4500 cellules)
> │ ├─Row: [0 … 4250] (4251 cellules)
> │ ├─Vertical: [0 … 39] (40 cellules)
> │ └─Time: [0 … 0] (1 cellules)
> ├─Geographic extent
> │ ├─Lower: 80°00′00″S 180°00′00″W 2021-03-02T00:00:00Z
> │ └─Upper: 90°00′00″N 180°00′00″E
> {noformat}
> and if {{areaOfInterest}} is a two-dimensional grid, for example with the
> following content:
> {noformat}
> GridGeometry
> ├─Grid extent
> │ ├─Dimension 0: [0 … 255] (256 cellules)
> │ └─Dimension 1: [0 … 255] (256 cellules)
> ├─Geographic extent
> │ ├─Lower : 01°23′41″N 07°52′24″W
> │ └─Upper : 46°29′05″N 37°12′59″E
> {noformat}
> A call to {{grid.derive().subgrid(areaOfInterest)}} causes an
> {{OperationNotFoundException}} to be thrown from the
> {{org.apache.sis.coverage.grid.CoordinateOperationFinder.changeOfCRS}} method
> because a transform from 2D to 4D can not be found.
> The {{subgrid}} operation should be more tolerant, by leaving untouched the
> grid in the dimensions not covered by {{areaOfInterest}}.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)