You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sis.apache.org by "Martin Desruisseaux (Jira)" <ji...@apache.org> on 2022/02/03 11:11:00 UTC

[jira] [Resolved] (SIS-514) GridGeometry.subgrid(…) should accept an area of interest with less dimensions than the base grid

     [ https://issues.apache.org/jira/browse/SIS-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Desruisseaux resolved SIS-514.
-------------------------------------
    Fix Version/s: 1.2
       Resolution: Fixed

Was probably already fixed in SIS 1.1 release.

> 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: Task
>          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.1#820001)