Java Code Examples for com.esri.core.geometry.Point#setM()
The following examples show how to use
com.esri.core.geometry.Point#setM() .
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_Point.java From spatial-framework-for-hadoop with Apache License 2.0 | 6 votes |
public BytesWritable evaluate(DoubleWritable x, DoubleWritable y, DoubleWritable z, DoubleWritable m) { if (x == null || y == null) { //LogUtils.Log_ArgumentsNull(LOG); return null; } try { Point stPt = new Point(x.get(), y.get()); if (z != null) stPt.setZ(z.get()); if (m != null) stPt.setM(m.get()); BytesWritable ret = GeometryUtils.geometryToEsriShapeBytesWritable(OGCGeometry.createFromEsriGeometry(stPt, null)); return ret; } catch (Exception e) { //LogUtils.Log_InternalError(LOG, "ST_Point: " + e); return null; } }
Example 2
Source File: ST_PointZ.java From spatial-framework-for-hadoop with Apache License 2.0 | 5 votes |
public BytesWritable evaluate(DoubleWritable x, DoubleWritable y, DoubleWritable z, DoubleWritable m) { if (x == null || y == null || z == null) { return null; } Point stPt = new Point(x.get(), y.get(), z.get()); if (m != null) stPt.setM(m.get()); return GeometryUtils.geometryToEsriShapeBytesWritable(OGCGeometry.createFromEsriGeometry(stPt, null)); }