-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken linux build with GDAL 3.2.0 #98
Comments
@Gigas002 I can't see the problem. With v3.2.0, we use gdal's internal |
Release PR changelog. MaxRev-Dev/gdal.netcore#29 (comment) |
@MaxRev-Dev |
Oh, by the way it was still bugged, when I used previous |
I don't think this is related, but the latest version for windows (110) is a patch for the cached GEOS 3.8.0 (this was also in changelog). That's because I'm building it locally without CI, and did not configured travis yet. But still GEOS was updated to 3.9.0beta2. |
Created an issue for this MaxRev-Dev/gdal.netcore#30 |
@MaxRev-Dev Ran through some tests on Ubuntu-20.04. Updated only |
Located one of errors: public static string GetProjString(string inputFilePath)
{
GdalBase.ConfigureAll();
using Dataset dataset = Gdal.Open(inputFilePath, Access.GA_ReadOnly);
string wkt = dataset.GetProjection();
using SpatialReference spatialReference = new SpatialReference(wkt);
spatialReference.ExportToProj4(out string projString);
return projString;
} The |
|
Fixes broken bindings in Gigas002/GTiff2Tiles#98 - new tests for bindings - rebuit bindings
Nice! I can see, that |
@MaxRev-Dev Weird, that doesn't seem to fix an issue. I'll check this out on my ubuntu VM as well tomorrow. For now, judjing by ci output, I can see, that the |
@Gigas002 I see that did not helped. |
@MaxRev-Dev Nope, that little test with I've tested the previous (3.1.2.110) version of core once again just to check out if I'm not wrong and yes, that one works as expected. |
Yeah, that's weird, |
@MaxRev-Dev Not sure, why your test is passing, but I have a guess: you're using <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<Platforms>x64</Platforms>
<Configurations>Debug;Release</Configurations>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MaxRev.Gdal.Core" Version="3.2.0.110" />
<PackageReference Include="MaxRev.Gdal.LinuxRuntime.Minimal" Version="3.2.0.100" />
</ItemGroup>
</Project> And code in using System;
using MaxRev.Gdal.Core;
using OSGeo.GDAL;
using OSGeo.OSR;
namespace GdalTest
{
class Program
{
public static void Main(string[] args)
{
var inputFile = "/home/gigas002/dotnet-tests/Input4326.tif";
var projString = GetProjString(inputFile);
Console.WriteLine($"projstring:{projString}");
}
public static string GetProjString(string inputFilePath)
{
GdalBase.ConfigureAll();
using Dataset dataset = Gdal.Open(inputFilePath, Access.GA_ReadOnly);
string wkt = dataset.GetProjection();
Console.WriteLine($"wkt:{wkt}");
using SpatialReference spatialReference = new SpatialReference(wkt);
spatialReference.ExportToProj4(out string projString);
return projString;
}
}
} |
Thanks for pointing on this, that makes sense. Did not expected that return value from bindings, thought it should be a null ref. |
That's interesting. But updated test does not passing now, at all. Even on windows, even with previous packages. |
I think, I figured out what the problem is, so we are very close to solution. |
@Gigas002 I had already rebuilt packages. Please, checkout the latest version. |
@MaxRev-Dev Sorry, I didn't have a chance to answer and run tests sooner. I've run that test of getting string from proj and it worked, but still not all tests have passed for my app (17 failed, was 22). Some tests throw public static string GdalInfo(string inputFilePath, string[] options = null)
{
GdalBase.ConfigureAll();
using Dataset inputDataset = Gdal.Open(inputFilePath, Access.GA_ReadOnly);
return Gdal.GDALInfo(inputDataset, new GDALInfoOptions(options));
} |
@Gigas002 Thanks for new info. I had adjusted tests and rewrote |
@MaxRev-Dev Seems to work correctly in WSL. Pushing to see the changes in CI. |
Yes, all the tests have passed successfully. Thanks a lot for your help with this issue! |
According to MaxRev-Dev/gdal.netcore@76b614c#diff-6d6fa00a963a2026bc7d3d2ee4486b1eb68f25bbb6e14b9164de138aca393cde, it's currently impossible to use gdal with libtiff on linux due to some problems with other dependencies. I'll continue using 3.1.2 until this'll be fixed.
The text was updated successfully, but these errors were encountered: