【发布时间】:2021-05-24 16:47:25
【问题描述】:
我将 GIS 地图用于水路运输系统,并且必须使用我自己的 GIS 路线(不是自动生成的)。我使用 moveTo 块,但每次代理到达 GIS 点时,我都会收到一条错误消息:
"Error while drawing animation frame. Possibly caused by dynamic properties of animation shapes. The picture will be restored when (and if) the error goes away."
控制台中出现以下消息:
Error during drawing animation frame:
java.lang.RuntimeException: root:
gisRoute8 (GISRoute) : Offset (9539.429153529953) is greater than length (687.4357796935112)
at com.anylogic.engine.Engine.error(Unknown Source)
at com.anylogic.engine.Agent.error(Unknown Source)
at com.anylogic.engine.Utilities.error(Unknown Source)
at com.anylogic.engine.markup.GISMarkupElement.error(Unknown Source)
at com.anylogic.engine.markup.GISRoute$1.n(Unknown Source)
at com.anylogic.engine.markup.AbstractCurve.n(Unknown Source)
at com.anylogic.engine.markup.AbstractCurve.getPositionAtOffset(Unknown Source)
at com.anylogic.engine.markup.GISRoute.getPositionAtOffset(Unknown Source)
at com.anylogic.engine.markup.SimpleDirection$2.getPositionAtOffset(Unknown Source)
at com.anylogic.engine.markup.AbstractNetwork.n(Unknown Source)
at com.anylogic.engine.markup.AbstractNetwork.n(Unknown Source)
at com.anylogic.engine.markup.AbstractNetwork.n(Unknown Source)
at com.anylogic.engine.markup.AbstractNetwork.getPosition(Unknown Source)
at com.anylogic.engine.markup.AbstractNetwork.getPositionAtOffset(Unknown Source)
at com.anylogic.engine.markup.AbstractNetwork.getPositionAtOffset(Unknown Source)
at com.anylogic.engine.b.i(Unknown Source)
at com.anylogic.engine.ih.updatePosition(Unknown Source)
at com.anylogic.engine.ExtAgentWithSpatialMetricsDelegate.updatePosition(Unknown Source)
at com.anylogic.libraries.processmodeling.l.updatePosition(Unknown Source)
at com.anylogic.engine.Agent.h(Unknown Source)
at com.anylogic.engine.Agent.getX(Unknown Source)
at com.anylogic.engine.ih.getLat(Unknown Source)
at com.anylogic.engine.presentation.ShapeEmbeddedObjectPresentation.updateDynamicPropertiesStructural(Unknown Source)
at com.anylogic.engine.presentation.ShapeAgentGroup_xjal.updateDynamicPropertiesStructural(Unknown Source)
at com.anylogic.engine.presentation.ShapeGroup.updateDynamicPropertiesStructural(Unknown Source)
at com.anylogic.engine.Presentable.n(Unknown Source)
at com.anylogic.engine.Presentable.updateShapeDynamicProperties(Unknown Source)
at com.anylogic.engine.gui.SVGFrameProducer.n(Unknown Source)
at com.anylogic.engine.gui.ExperimentHost$1.l(Unknown Source)
at com.anylogic.engine.gui.ExperimentHost$1.n(Unknown Source)
at com.anylogic.engine.gui.SVGFrameCollector.l(Unknown Source)
at com.anylogic.engine.gui.SVGFrameCollector.c(Unknown Source)
at java.base/java.lang.Thread.run(Thread.java:834)
每次代理从定制的 GIS 路线到达 GIS 点时都会发生这种情况,而自动生成的 GIS 路线工作。我做错了什么还是这是一个已知的错误?
【问题讨论】:
标签: anylogic