-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show corret message if layer is missing
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 GitHub Actions / Code analysis and tests
Check failure on line 226 in Geodatenbezug/Processors/TopicProcessor.cs 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(); | ||
|
||
|