From 16a3fffb0672ddb5e07b298015a83210c4f1bcca Mon Sep 17 00:00:00 2001 From: changliao1025 Date: Mon, 25 Sep 2023 15:16:30 -0700 Subject: [PATCH] update for test --- .../algorithms/intersect/intersect_flowline_with_mesh.py | 2 +- pyflowline/classes/_visual_basin.py | 3 ++- pyflowline/external/pyearth/gis/gdal/gdal_functions.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyflowline/algorithms/intersect/intersect_flowline_with_mesh.py b/pyflowline/algorithms/intersect/intersect_flowline_with_mesh.py index e5b78231..6eaabb5c 100644 --- a/pyflowline/algorithms/intersect/intersect_flowline_with_mesh.py +++ b/pyflowline/algorithms/intersect/intersect_flowline_with_mesh.py @@ -100,7 +100,7 @@ def intersect_flowline_with_mesh(iMesh_type_in, sFilename_mesh_in, sFilename_flo left, right, bottom, top= pGeometry_mesh.GetEnvelope() pBound= (left, bottom, right, top) - #aIntersect = list(index_flowline.intersection(pBound)) + aIntersect = list(index_flowline.search(pBound)) for k in aIntersect: pFeature_flowline = pLayer_flowline.GetFeature(k) diff --git a/pyflowline/classes/_visual_basin.py b/pyflowline/classes/_visual_basin.py index eb1c2ca2..2c69bc9c 100644 --- a/pyflowline/classes/_visual_basin.py +++ b/pyflowline/classes/_visual_basin.py @@ -102,7 +102,8 @@ def basin_plot(self, aFiletype_in = [2, 2, 2] aFilename_in = [sFilename0, sFilename1, sFilename2] map_multiple_vector_data(aFiletype_in, - aFilename_in, + aFilename_in, + iFlag_title_in=iFlag_title_in, iFont_size_in=iFont_size_in, sFilename_output_in=sFilename_output_in, sTitle_in= 'Flow direction with observation', diff --git a/pyflowline/external/pyearth/gis/gdal/gdal_functions.py b/pyflowline/external/pyearth/gis/gdal/gdal_functions.py index 611cc815..04adec5e 100644 --- a/pyflowline/external/pyearth/gis/gdal/gdal_functions.py +++ b/pyflowline/external/pyearth/gis/gdal/gdal_functions.py @@ -415,7 +415,7 @@ def gdal_read_geotiff_file(sFilename_in): pBand = None pBand = None - return aData_out, dPixelWidth, dOriginX, dOriginY, nrow, ncolumn, dMissing_value, pGeotransform, pProjection, pSpatial_reference + return aData_out, dPixelWidth, pPixelHeight, dOriginX, dOriginY, nrow, ncolumn, dMissing_value, pGeotransform, pProjection, pSpatial_reference def Google_MetersPerPixel( zoomLevel ):