Skip to content

Commit

Permalink
Update to new GDAL Version and Revit 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Kaiser committed Apr 1, 2022
1 parent 386cc20 commit a728dcb
Show file tree
Hide file tree
Showing 14 changed files with 578 additions and 993 deletions.
21 changes: 10 additions & 11 deletions BIMGISInteropLibs/BIMGISInteropLibs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@
<ApplicationIcon>DD_BIM_ICON.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="gdalconst_csharp, Version=1.0.7372.36899, Culture=neutral, PublicKeyToken=db5a52b08dc5b321, processorArchitecture=MSIL">
<HintPath>..\packages\GDAL.2.4.4\lib\net40\gdalconst_csharp.dll</HintPath>
<Reference Include="gdalconst_csharp, Version=3.4.2.0, Culture=neutral, PublicKeyToken=db5a52b08dc5b321, processorArchitecture=MSIL">
<HintPath>..\packages\GDAL.3.4.2\lib\netstandard2.0\gdalconst_csharp.dll</HintPath>
</Reference>
<Reference Include="gdal_csharp, Version=1.0.7372.36899, Culture=neutral, PublicKeyToken=db5a52b08dc5b321, processorArchitecture=MSIL">
<HintPath>..\packages\GDAL.2.4.4\lib\net40\gdal_csharp.dll</HintPath>
<Reference Include="gdal_csharp, Version=3.4.2.0, Culture=neutral, PublicKeyToken=db5a52b08dc5b321, processorArchitecture=MSIL">
<HintPath>..\packages\GDAL.3.4.2\lib\netstandard2.0\gdal_csharp.dll</HintPath>
</Reference>
<Reference Include="GeoJSON.Net, Version=1.2.16.0, Culture=neutral, PublicKeyToken=42c00ea87f5f14d4, processorArchitecture=MSIL">
<HintPath>..\packages\GeoJSON.Net.1.2.19\lib\net45\GeoJSON.Net.dll</HintPath>
Expand Down Expand Up @@ -147,11 +147,11 @@
<Reference Include="Npgsql.NetTopologySuite, Version=5.0.7.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, processorArchitecture=MSIL">
<HintPath>..\packages\Npgsql.NetTopologySuite.5.0.7\lib\netstandard2.0\Npgsql.NetTopologySuite.dll</HintPath>
</Reference>
<Reference Include="ogr_csharp, Version=1.0.7372.36898, Culture=neutral, PublicKeyToken=db5a52b08dc5b321, processorArchitecture=MSIL">
<HintPath>..\packages\GDAL.2.4.4\lib\net40\ogr_csharp.dll</HintPath>
<Reference Include="ogr_csharp, Version=3.4.2.0, Culture=neutral, PublicKeyToken=db5a52b08dc5b321, processorArchitecture=MSIL">
<HintPath>..\packages\GDAL.3.4.2\lib\netstandard2.0\ogr_csharp.dll</HintPath>
</Reference>
<Reference Include="osr_csharp, Version=1.0.7372.36898, Culture=neutral, PublicKeyToken=db5a52b08dc5b321, processorArchitecture=MSIL">
<HintPath>..\packages\GDAL.2.4.4\lib\net40\osr_csharp.dll</HintPath>
<Reference Include="osr_csharp, Version=3.4.2.0, Culture=neutral, PublicKeyToken=db5a52b08dc5b321, processorArchitecture=MSIL">
<HintPath>..\packages\GDAL.3.4.2\lib\netstandard2.0\osr_csharp.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="RestSharp, Version=106.12.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
Expand Down Expand Up @@ -342,7 +342,6 @@
<ItemGroup>
<Content Include="DD_BIM_ICON.ico" />
<Content Include="DD_BIM_LOGO.ico" />
<Content Include="GdalConfiguration.vb" />
<Content Include="NLog.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down Expand Up @@ -379,7 +378,7 @@
<ErrorText>Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Verwenden Sie die Wiederherstellung von NuGet-Paketen, um die fehlenden Dateien herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}".</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Xbim.Geometry.Engine.Interop.5.1.403\build\net472\Xbim.Geometry.Engine.Interop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Xbim.Geometry.Engine.Interop.5.1.403\build\net472\Xbim.Geometry.Engine.Interop.targets'))" />
<Error Condition="!Exists('..\packages\GDAL.Native.2.4.4\build\net40\GDAL.Native.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\GDAL.Native.2.4.4\build\net40\GDAL.Native.targets'))" />
<Error Condition="!Exists('..\packages\GDAL.Native.3.4.2\build\netstandard2.0\GDAL.Native.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\GDAL.Native.3.4.2\build\netstandard2.0\GDAL.Native.targets'))" />
</Target>
<Import Project="..\packages\GDAL.Native.2.4.4\build\net40\GDAL.Native.targets" Condition="Exists('..\packages\GDAL.Native.2.4.4\build\net40\GDAL.Native.targets')" />
<Import Project="..\packages\GDAL.Native.3.4.2\build\netstandard2.0\GDAL.Native.targets" Condition="Exists('..\packages\GDAL.Native.3.4.2\build\netstandard2.0\GDAL.Native.targets')" />
</Project>
1 change: 1 addition & 0 deletions BIMGISInteropLibs/GdalConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ static GdalConfiguration()
string projSharePath = Path.Combine(gdalPath, "share");
Environment.SetEnvironmentVariable("PROJ_LIB", projSharePath);
Gdal.SetConfigOption("PROJ_LIB", projSharePath);
OSGeo.OSR.Osr.SetPROJSearchPaths(new[] { projSharePath });

_usable = true;
}
Expand Down
218 changes: 0 additions & 218 deletions BIMGISInteropLibs/GdalConfiguration.vb

This file was deleted.

4 changes: 4 additions & 0 deletions BIMGISInteropLibs/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
<assemblyIdentity name="Npgsql" publicKeyToken="5d8b90d52f46fda7" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.0.10.0" newVersion="5.0.10.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Text.Encodings.Web" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.4.0" newVersion="4.0.4.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /></startup></configuration>
4 changes: 2 additions & 2 deletions BIMGISInteropLibs/packages.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="GDAL" version="2.4.4" targetFramework="net472" />
<package id="GDAL.Native" version="2.4.4" targetFramework="net472" />
<package id="GDAL" version="3.4.2" targetFramework="net48" />
<package id="GDAL.Native" version="3.4.2" targetFramework="net48" />
<package id="GeoJSON.Net" version="1.2.19" targetFramework="net48" />
<package id="IxMilia.Dxf" version="0.8.1" targetFramework="net48" />
<package id="ManagedEsent" version="1.9.4" targetFramework="net472" />
Expand Down
Loading

0 comments on commit a728dcb

Please sign in to comment.