diff --git a/gen/combine_gdal_doxygen_xml.py b/gen/combine_gdal_doxygen_xml.py index 966ad79..799e1d4 100644 --- a/gen/combine_gdal_doxygen_xml.py +++ b/gen/combine_gdal_doxygen_xml.py @@ -41,3 +41,10 @@ elem.remove(subelem) tree.write(outxml) + +# remove hidden character that the julia parser won't accept, fixed in GDAL 3.4.1 +# https://github.com/OSGeo/gdal/pull/5043 +with open(outxml) as f: + clean_text = f.read().replace('‬', '') +with open(outxml, "w") as f: + f.write(clean_text) diff --git a/src/GDAL.jl b/src/GDAL.jl index 1777f76..d3f3310 100644 --- a/src/GDAL.jl +++ b/src/GDAL.jl @@ -15539,7 +15539,7 @@ Create viewshed from raster DEM. * **dfInvisibleVal**: pixel value for invisibility (default 0) * **dfOutOfRangeVal**: The value to be set for the cells that fall outside of the range specified by dfMaxDistance. * **dfNoDataVal**: The value to be set for the cells that have no data. If set to a negative value, nodata is not set. Note: currently, no special processing of input cells at a nodata value is done (which may result in erroneous results). -* **dfCurvCoeff**: Coefficient to consider the effect of the curvature and refraction. The height of the DEM is corrected according to the following formula: [Height] -= dfCurvCoeff * [Target Distance]^2 / [Earth Diameter] For the effect of the atmospheric refraction we can use 0.85714‬. +* **dfCurvCoeff**: Coefficient to consider the effect of the curvature and refraction. The height of the DEM is corrected according to the following formula: [Height] -= dfCurvCoeff * [Target Distance]^2 / [Earth Diameter] For the effect of the atmospheric refraction we can use 0.85714. * **eMode**: The mode of the viewshed calculation. Possible values GVM_Diagonal = 1, GVM_Edge = 2 (default), GVM_Max = 3, GVM_Min = 4. * **dfMaxDistance**: maximum distance range to compute viewshed. It is also used to clamp the extent of the output raster. If set to 0, then unlimited range is assumed, that is to say the computation is performed on the extent of the whole raster. * **pfnProgress**: A GDALProgressFunc that may be used to report progress to the user, or to interrupt the algorithm. May be NULL if not required.