- 积分
- 38
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-7-12
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
部分代码如下:
Extent aExtent = _stationData.dataExtent;
aExtent.minX = 73;
aExtent.maxX = 135;
aExtent.minY = 19;
aExtent.maxY = 56;
InterpolationSetting gridInterp = new InterpolationSetting();
GridDataSetting gridSetting=gridInterp.getGridDataSetting();
gridSetting.xNum = 110;//插值的格点数,110*120
gridSetting.yNum = 110;
gridSetting.dataExtent = aExtent;
VectorLayer layer = DrawMeteoData.createShadedLayer(gridData, aLS, "Shaded_A","A", true);
layer.setMaskout(true);
VectorLayer ty= layer.clip((VectorLayer) chinaLayer);
把标红的部分注释掉,就可以,取消注释就报错,。报错信息如下。发现数据中有NaN,Extent 该如何设置呢?
报错信息如下:
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
org.meteoinfo.jts.geom.TopologyException: found non-noded intersection between LINESTRING ( 97.46245194123723 51.58440484753145, 97.45870591784208 51.58884476216672 ) and LINESTRING ( 97.45871559633028 51.587155963302756, 98.02752293577981 51.587155963302756 ) [ (97.46013078308698, 51.587155963302756, NaN) ]
at org.meteoinfo.jts.noding.FastNodingValidator.checkValid(FastNodingValidator.java:145)
at org.meteoinfo.jts.geomgraph.EdgeNodingValidator.checkValid(EdgeNodingValidator.java:94)
at org.meteoinfo.jts.geomgraph.EdgeNodingValidator.checkValid(EdgeNodingValidator.java:59)
at org.meteoinfo.jts.operation.overlay.OverlayOp.computeOverlay(OverlayOp.java:237)
at org.meteoinfo.jts.operation.overlay.OverlayOp.getResultGeometry(OverlayOp.java:189)
at org.meteoinfo.jts.operation.overlay.OverlayOp.overlayOp(OverlayOp.java:92)
at org.meteoinfo.jts.operation.overlay.snap.SnapIfNeededOverlayOp.getResultGeometry(SnapIfNeededOverlayOp.java:96)
at org.meteoinfo.jts.operation.overlay.snap.SnapIfNeededOverlayOp.overlayOp(SnapIfNeededOverlayOp.java:58)
at org.meteoinfo.jts.geom.Geometry.intersection(Geometry.java:1338)
at org.meteoinfo.shape.Shape.intersection(Shape.java:271)
at org.meteoinfo.layer.VectorLayer.clip(VectorLayer.java:1435)
at org.meteoinfo.layer.VectorLayer.clip(VectorLayer.java:1413)
at org.meteoinfo.layer.VectorLayer.clip(VectorLayer.java:1391)
at org.qx.QxMain.testStations(QxMain.java:440)
|
|