Skip to content

Commit

Permalink
Show corret message if layer is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr committed Dec 12, 2024
1 parent d11e2b2 commit 8517a28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Geodatenbezug/Processors/TopicProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ public GdalLayer CreateGdalLayer(string layerName, Dictionary<string, FieldDefn>
{
var inputLayer = InputDataSource.GetLayerByName(layerName);

if (inputLayer == null) {

Check failure on line 226 in Geodatenbezug/Processors/TopicProcessor.cs

View workflow job for this annotation

GitHub Actions / Code analysis and tests

Check failure on line 226 in Geodatenbezug/Processors/TopicProcessor.cs

View workflow job for this annotation

GitHub Actions / Code analysis and tests

throw new InvalidOperationException($"Layer {layerName} not found in input data source");
}

// Workaround https://github.com/blw-ofag-ufag/geodatenbezug_geodienste/issues/45
var geometryType = inputLayer.GetNextFeature().GetGeometryRef().GetGeometryType();

Expand Down

0 comments on commit 8517a28

Please sign in to comment.