-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bump_otb_version' into 'develop'
COMP: update OTB version See merge request remi.cresson/otbtf!104
- Loading branch information
Showing
8 changed files
with
59 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
setuptools.setup( | ||
name="otbtf", | ||
version="4.2.1", | ||
version="4.2.2", | ||
author="Remi Cresson", | ||
author_email="[email protected]", | ||
description="OTBTF: Orfeo ToolBox meets TensorFlow", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
import pytest | ||
import unittest | ||
import planetary_computer | ||
import pystac_client | ||
import otbApplication | ||
|
||
class PCTest(unittest.TestCase): | ||
|
||
def test_pc(self): | ||
api = pystac_client.Client.open( | ||
'https://planetarycomputer.microsoft.com/api/stac/v1', | ||
modifier=planetary_computer.sign_inplace, | ||
) | ||
|
||
res = api.search( | ||
bbox=[4, 42.99, 4.5, 43.05], | ||
datetime=["2022-01-01", "2022-01-09"], | ||
collections=["sentinel-2-l2a"] | ||
) | ||
|
||
r = next(res.items()) | ||
url = r.assets["B04"].href | ||
info = otbApplication.Registry.CreateApplication("ReadImageInfo") | ||
info.SetParameterString("in", "/vsicurl/" + url) | ||
info.Execute() | ||
assert len(info.GetParameterString("projectionref")) > 1 | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ libxi-dev | |
qtbase5-dev | ||
qttools5-dev | ||
qttools5-dev-tools | ||
xvfb | ||
xvfb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters