很奇怪的问题,如果写死wkt的字符串,就没问题;如果传参过来,就崩溃。
Geometry g = Toolkit.WKTToGeometry("Polygon((113.392 35.286,113.399 35.287,113.398 35.29,113.393 35.291,113.392 35.286))");//没问题,正常运行
String geo = tinfo.getValue();//传参过来,内容和上述字符串一样
Geometry geometry = Toolkit.WKTToGeometry(geo);//奔溃了
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.supermap.data.ToolkitNative.jni_WKTToUGGemetry(Ljava/lang/String;)J+0
j com.supermap.data.Toolkit.WKTToGeometry(Ljava/lang/String;)Lcom/supermap/data/Geometry;+1