• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OSGeo / gdal / 23366843593

20 Mar 2026 11:36PM UTC coverage: 71.893% (-0.01%) from 71.907%
23366843593

push

github

web-flow
Update C# Samples (#14187)

NOTE : For the avoidance of doubt this PR ONLY changes the C# samples. No Core GDAL code or C# bindings are effected.

While testing another PR - I realised that two of the C# tests based on the samples were failing because the OGR Datasource object was not been disposed correctly and this meant that the written data was corrupted. I think that until the most recent changes GDAL was more forgiving.

The samples are still very valuable as testing tools and examples of code despite being 20 yaers old; therefore I have updated the samples to explictly Dispose (mostly using the IDisposable pattern) the major companents (mostly GDAL Dataset, Layer, Band etc and OGR Datasource, Layer, Feature and Geometry. I also did a bit of tidying in the process.

The functionality and results of the samples and the related tests are NOT changed.

Note that I have used the longform using pattern rather than the shortform version for backwards compatability.

I have also added the .editorconfig used to avoid the problem in the future.

611380 of 850406 relevant lines covered (71.89%)

317833.16 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.38
/third_party/LercLib/BitStuffer2.cpp


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc