Commit 733da8ed authored by Cresson Remi's avatar Cresson Remi
Browse files

Merge branch 'develop' into 'master'

Hotfix release 3.3.3

See merge request !69
1 merge request!69Hotfix release 3.3.3
Pipeline #40881 passed with stages
in 490 minutes and 14 seconds
Showing with 23 additions and 1 deletion
+23 -1
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
variables:
OTBTF_VERSION: 3.3.2
OTBTF_VERSION: 3.3.3
OTB_BUILD: /src/otb/build/OTB/build # Local OTB build directory
OTBTF_SRC: /src/otbtf # Local OTBTF source directory
OTB_TEST_DIR: $OTB_BUILD/Testing/Temporary # OTB testing directory
......@@ -167,6 +167,11 @@ otbtf_api:
after_script:
- cp $API_TEST_TMP/*.* $ARTIFACT_TEST_DIR/
geos_enabled:
extends: .applications_test_base
script:
- python -m pytest --junitxml=$ARTIFACT_TEST_DIR/report_geos_enabled.xml $OTBTF_SRC/test/geos_test.py
deploy_cpu-dev-testing:
stage: Update dev image
extends: .docker_build_base
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pytest
import unittest
from osgeo import ogr
class APITest(unittest.TestCase):
def test_geosu_support(self):
wkt1 = "POLYGON ((1208064.271243039 624154.6783778917, 1208064.271243039 601260.9785661874, 1231345.9998651114 601260.9785661874, 1231345.9998651114 624154.6783778917, 1208064.271243039 624154.6783778917))"
wkt2 = "POLYGON ((1199915.6662253144 633079.3410163528, 1199915.6662253144 614453.958118695, 1219317.1067437078 614453.958118695, 1219317.1067437078 633079.3410163528, 1199915.6662253144 633079.3410163528)))"
poly1 = ogr.CreateGeometryFromWkt(wkt1)
poly2 = ogr.CreateGeometryFromWkt(wkt2)
intersection = poly1.Intersection(poly2)
if __name__ == '__main__':
unittest.main()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment