- 积分
- 11552
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-5-21
- 最后登录
- 1970-1-1
|
发表于 2020-4-27 21:30:50
|
显示全部楼层
数据多的运行成功了,但是数据我选择了某个月就报错了。
Traceback (most recent call last):
File "C:\Users\QY\Desktop\ozone\O3wose.py", line 72, in <module>
cg = cg.clip([poly])
at org.locationtech.jts.geom.LinearRing.validateConstruction(LinearRing.java:90)
at org.locationtech.jts.geom.LinearRing.<init>(LinearRing.java:85)
at org.locationtech.jts.geom.GeometryFactory.createLinearRing(GeometryFactory.java:356)
at org.locationtech.jts.geom.GeometryFactory.createLinearRing(GeometryFactory.java:343)
at org.meteoinfo.shape.Polygon.toGeometry(Polygon.java:230)
at org.meteoinfo.shape.PolygonShape.toGeometry(PolygonShape.java:159)
at org.meteoinfo.shape.Shape.toGeometry(Shape.java:276)
at org.meteoinfo.shape.Shape.intersection(Shape.java:310)
at org.meteoinfo.shape.GraphicCollection.clip(GraphicCollection.java:672)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Points of LinearRing do not form a closed linestring
>>> 是外包不能形成闭合的线,王老师,这种情况要如何修改呢? |
|