Skip to content

Commit

Permalink
Add libgdal-jp2openjpeg dependency (#291)
Browse files Browse the repository at this point in the history
* Add unit test for reading/writing a JP2 file

To test for existence of libgdal-jp2openjpeg driver.

* Add libgdal-jp2openjpeg as runtime dependency

* Return exit code 1 if /tmp/reliefcut.jp2 file doesn't exist

Xref https://unix.stackexchange.com/questions/474244/one-liner-to-check-for-file-exists

* Revert "Add libgdal-jp2openjpeg as runtime dependency"

This reverts commit 3825db4.

* Put command around double quotes

Square brackets might be mistaken for selectors.

* Reapply "Add libgdal-jp2openjpeg as runtime dependency"

This reverts commit d5e48d1.

* Save the result to the current directory

---------

Co-authored-by: Dongdong Tian <[email protected]>
  • Loading branch information
weiji14 and seisman authored Jul 15, 2024
1 parent d0c59e7 commit 058b79f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source:
sha256: b17e165fd6c85aeb0a281700bd89522af8c2676a2d7bdb51a6b242fa9f1779c9

build:
number: 3
number: 4
skip: true # [ppc64le]

requirements:
Expand Down Expand Up @@ -42,6 +42,7 @@ requirements:
- {{ pin_compatible('gdal', max_pin='x.x') }}
- geos
- ghostscript
- libgdal-jp2openjpeg
- libnetcdf
- hdf5
- {{ pin_compatible('zlib', max_pin='x.x') }}
Expand All @@ -63,6 +64,9 @@ test:
- gmt-config --all # [not win]
- gmt # [win]
- gmt grdmath -Rg -I1 0 90 SDIST = dist_to_NP.nc -x2
# Test reading/writing a JP2 file (S90E000.earth_relief_05m_p.jp2)
- gmt grdcut @earth_relief_05m -R-10/-9/3/5 -Greliefcut.jp2=gd:JP2OpenJPEG
- "[ -e 'reliefcut.jp2' ] && exit 0 || exit 1"

about:
home: https://www.generic-mapping-tools.org
Expand Down

0 comments on commit 058b79f

Please sign in to comment.