This file contains hidden or 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
| using System; | |
| public static class Program { | |
| public static void Main() { | |
| Console.WriteLine(DynamicHarmonyWrapper()); | |
| } | |
| public static string DynamicHarmonyWrapper() { | |
| string result = default; |
This file contains hidden or 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
| from osgeo import gdal, ogr | |
| def clone_data_to_mem(ds, name=''): | |
| if (isinstance(ds, gdal.Dataset)): | |
| return clone_raster_to_mem(ds, name) | |
| elif (isinstance(ds, ogr.DataSource)): | |
| return clone_vector_to_mem(ds, name) | |
| else: | |
| raise TypeError('Data source must be of GDAL dataset or OGR datasource') |