MatthiasKNU
Resource contributor
- Messages
- 958
- Country
Hi Arno!
I stumbled over the following error with the latest ScenProc Development Release, which *might* be related to this problem:
The ScenProc script looks like this:
I have already checked the landuse62.shp file with ArcGIS for errors, but everything is fine.
Here is the landuse file:
landuse62.shp
In the ScenProc 2 version this error does not occur, so I think it is a problem of the Development Release...
Would be great if you could take a look at this for a second!
Thanks a lot in advance and have a nice weekend!
Matthias
I stumbled over the following error with the latest ScenProc Development Release, which *might* be related to this problem:
(Inner Exception #1) System.ArgumentException: Value type of 'AttributeString' is not assignable to required type of 'AttributeInteger'
Good afternoon, Running scenProc stops at this step: CreateAGNPolyVeg|FTYPE="POLYGON" and layer= "3320NLCIndforest4"|{72e37d90-824e-4e97-9187-a60491864a49} with this error: ---> (Inner Exception #1) System.ArgumentException: Value type of 'AttributeString' is not assignable to required type of...
www.fsdeveloper.com
Code:
13:21 SceneryProcessor Error System.AggregateException: Mindestens ein Fehler ist aufgetreten. ---> System.ArgumentException: Number of points must be 0 or >3
bei NetTopologySuite.Geometries.LinearRing.ValidateConstruction()
bei NetTopologySuite.Geometries.LinearRing..ctor(Coordinate[] points)
bei ASToFra.scenProc.DataModel.PolygonFeature..ctor(Coordinate[] points)
bei ASToFra.scenProc.DataModel.PolygonFeature.GetPolygonsWithoutHoles()
bei ASToFra.scenProc.Steps.CreateAGNPolyVeg.<>c__DisplayClass9_0.<Process>b__0(GridCell cell)
bei System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
bei System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
bei System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
bei System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
bei System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
bei System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
bei System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
bei ASToFra.scenProc.Steps.CreateAGNPolyVeg.Process(List`1 cells, String[] arguments)
bei ASToFra.scenProc.Processor.SceneryProcessor.Process()
bei ASToFra.scenProc.Processor.SceneryProcessor.ProcessConfig(String filename, List`1 commands, Boolean errorReporting)
---> (Interne Ausnahme #0) System.ArgumentException: Number of points must be 0 or >3
bei NetTopologySuite.Geometries.LinearRing.ValidateConstruction()
bei NetTopologySuite.Geometries.LinearRing..ctor(Coordinate[] points)
bei ASToFra.scenProc.DataModel.PolygonFeature..ctor(Coordinate[] points)
bei ASToFra.scenProc.DataModel.PolygonFeature.GetPolygonsWithoutHoles()
bei ASToFra.scenProc.Steps.CreateAGNPolyVeg.<>c__DisplayClass9_0.<Process>b__0(GridCell cell)
bei System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
bei System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
bei System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)<---
The ScenProc script looks like this:
Code:
ImportOGR|temp\landuse62.shp|*|*|NOREPROJ
SplitGrid|AGN|*
CreateAGNPolyVeg|GUID="{57fb3c8e-db8b-47b0-a012-8305fbf082c2}"|{57fb3c8e-db8b-47b0-a012-8305fbf082c2}
CreateAGNPolyVeg|GUID="{7ad672f7-e0d4-455b-85f9-6032d39c0855}"|{7ad672f7-e0d4-455b-85f9-6032d39c0855}
CreateAGNPolyVeg|GUID="{d26cb3c7-9be7-44ec-b7ad-155832ec4f99}"|{d26cb3c7-9be7-44ec-b7ad-155832ec4f99}
CreateAGNPolyVeg|GUID="{ca0818dd-dab8-4edd-9b14-d69766fea98a}"|{ca0818dd-dab8-4edd-9b14-d69766fea98a}
ExportAGN|P3D v2|OUTPUT\texture_processed62
I have already checked the landuse62.shp file with ArcGIS for errors, but everything is fine.
Here is the landuse file:
landuse62.shp
In the ScenProc 2 version this error does not occur, so I think it is a problem of the Development Release...
Would be great if you could take a look at this for a second!
Thanks a lot in advance and have a nice weekend!
Matthias