分类: Java
2008-03-20 17:39:35
Udig 1.1.0 RC14使用了JTS1.9的版本,编译udig-extensions插件时出错,无法通过编译.
下载了个JTS1.9的文档,把错误的地方搞定了.
private int quadrantSegments
= OffsetCurveBuilder.DEFAULT_QUADRANT_SEGMENTS;
1.9中已经不放在这里了,更新为
private int quadrantSegments = BufferParameters.DEFAULT_QUADRANT_SEGMENTS;
OffsetCurveBuilder
curveBuilder = new OffsetCurveBuilder(precisionModel, quadrantSegments);
curveBuilder.setEndCapStyle(endCapStyle);
在1.9中需要更改为如下:
BufferParameters
buffParameters;
buffParameters = new BufferParameters( quadrantSegments, endCapStyle );
OffsetCurveBuilder curveBuilder = new OffsetCurveBuilder(g.getPrecisionModel(), buffParameters );
return SegmentString.getNodedSubstrings(nodedSegStrings);
更改为
return NodedSegmentString.getNodedSubstrings(nodedSegStrings);
发觉Udig还不错,呵呵!