Java Code Examples for com.esri.core.geometry.GeometryEngine#geometryToWkt()
The following examples show how to use
com.esri.core.geometry.GeometryEngine#geometryToWkt() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ST_AsText.java From spatial-framework-for-hadoop with Apache License 2.0 | 6 votes |
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; } }
Example 2
Source File: GeoFunctions.java From Bats with Apache License 2.0 | 4 votes |
public static String ST_AsWKT(Geom g) { return GeometryEngine.geometryToWkt(g.g(), WktExportFlags.wktExportDefaults); }
Example 3
Source File: GeoFunctions.java From Quicksql with MIT License | 4 votes |
public static String ST_AsWKT(Geom g) { return GeometryEngine.geometryToWkt(g.g(), WktExportFlags.wktExportDefaults); }
Example 4
Source File: GeoFunctions.java From calcite with Apache License 2.0 | 4 votes |
public static String ST_AsWKT(Geom g) { return GeometryEngine.geometryToWkt(g.g(), WktExportFlags.wktExportDefaults); }
Example 5
Source File: OGCPolygon.java From geometry-api-java with Apache License 2.0 | 4 votes |
@Override public String asText() { return GeometryEngine.geometryToWkt(getEsriGeometry(), WktExportFlags.wktExportPolygon); }
Example 6
Source File: OGCMultiPolygon.java From geometry-api-java with Apache License 2.0 | 4 votes |
@Override public String asText() { return GeometryEngine.geometryToWkt(getEsriGeometry(), WktExportFlags.wktExportMultiPolygon); }
Example 7
Source File: OGCMultiLineString.java From geometry-api-java with Apache License 2.0 | 4 votes |
@Override public String asText() { return GeometryEngine.geometryToWkt(getEsriGeometry(), WktExportFlags.wktExportMultiLineString); }
Example 8
Source File: OGCMultiPoint.java From geometry-api-java with Apache License 2.0 | 4 votes |
@Override public String asText() { return GeometryEngine.geometryToWkt(getEsriGeometry(), WktExportFlags.wktExportMultiPoint); }
Example 9
Source File: OGCPoint.java From geometry-api-java with Apache License 2.0 | 4 votes |
@Override public String asText() { return GeometryEngine.geometryToWkt(getEsriGeometry(), WktExportFlags.wktExportPoint); }
Example 10
Source File: OGCGeometry.java From geometry-api-java with Apache License 2.0 | 4 votes |
public String asText() { return GeometryEngine.geometryToWkt(getEsriGeometry(), 0); }
Example 11
Source File: OGCLineString.java From geometry-api-java with Apache License 2.0 | 4 votes |
@Override public String asText() { return GeometryEngine.geometryToWkt(getEsriGeometry(), WktExportFlags.wktExportLineString); }