本文整理汇总了Java中com.esri.core.geometry.GeometryEngine.geometryToWkt方法的典型用法代码示例。如果您正苦于以下问题:Java GeometryEngine.geometryToWkt方法的具体用法?Java GeometryEngine.geometryToWkt怎么用?Java GeometryEngine.geometryToWkt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.esri.core.geometry.GeometryEngine
的用法示例。
在下文中一共展示了GeometryEngine.geometryToWkt方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: evaluate
import com.esri.core.geometry.GeometryEngine; //导入方法依赖的package包/类
public Text evaluate(BytesWritable geomref){
if (geomref == null || geomref.getLength() == 0){
LogUtils.Log_ArgumentsNull(LOG);
return null;
}
OGCGeometry ogcGeometry = GeometryUtils.geometryFromEsriShape(geomref);
if (ogcGeometry == null){
LogUtils.Log_ArgumentsNull(LOG);
return null;
}
int wktExportFlag = getWktExportFlag(GeometryUtils.getType(geomref));
try {
// mind: GeometryType with ST_AsText(ST_GeomFromText('MultiLineString((0 80, 0.03 80.04))'))
// return new Text(ogcGeometry.asText());
return new Text(GeometryEngine.geometryToWkt(ogcGeometry.getEsriGeometry(), wktExportFlag));
} catch (Exception e){
LOG.error(e.getMessage());
return null;
}
}
示例2: asText
import com.esri.core.geometry.GeometryEngine; //导入方法依赖的package包/类
@Override
public String asText() {
return GeometryEngine.geometryToWkt(getEsriGeometry(),
WktExportFlags.wktExportPolygon);
}
示例3: ST_AsWKT
import com.esri.core.geometry.GeometryEngine; //导入方法依赖的package包/类
public static String ST_AsWKT(Geom g) {
return GeometryEngine.geometryToWkt(g.g(),
WktExportFlags.wktExportDefaults);
}
示例4: asText
import com.esri.core.geometry.GeometryEngine; //导入方法依赖的package包/类
@Override
public String asText() {
return GeometryEngine.geometryToWkt(getEsriGeometry(),
WktExportFlags.wktExportMultiPolygon);
}
示例5: asText
import com.esri.core.geometry.GeometryEngine; //导入方法依赖的package包/类
@Override
public String asText() {
return GeometryEngine.geometryToWkt(getEsriGeometry(),
WktExportFlags.wktExportMultiLineString);
}
示例6: asText
import com.esri.core.geometry.GeometryEngine; //导入方法依赖的package包/类
@Override
public String asText() {
return GeometryEngine.geometryToWkt(getEsriGeometry(),
WktExportFlags.wktExportMultiPoint);
}
示例7: asText
import com.esri.core.geometry.GeometryEngine; //导入方法依赖的package包/类
@Override
public String asText() {
return GeometryEngine.geometryToWkt(getEsriGeometry(),
WktExportFlags.wktExportPoint);
}
示例8: asText
import com.esri.core.geometry.GeometryEngine; //导入方法依赖的package包/类
@Override
public String asText() {
return GeometryEngine.geometryToWkt(getEsriGeometry(),
WktExportFlags.wktExportLineString);
}