public static Double ordinate(GeometryType geom, Ordinate ordinate) throws FunctionExecutionException { Geometry g = getGeometry(geom); if (!(g instanceof Point)) { throw new FunctionExecutionException(QueryPlugin.Event.TEIID31208, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31208)); } Point p = (Point)g; Coordinate c = p.getCoordinate(); if (c == null) { return null; } double value = c.getOrdinate(ordinate.ordinal()); if (Double.isNaN(value)) { return null; } return value; }
public static Double ordinate(GeometryType geom, Ordinate ordinate) throws FunctionExecutionException { Geometry g = getGeometry(geom); if (!(g instanceof Point)) { throw new FunctionExecutionException(QueryPlugin.Event.TEIID31208, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31208)); } Point p = (Point)g; Coordinate c = p.getCoordinate(); if (c == null) { return null; } double value = c.getOrdinate(ordinate.ordinal()); if (Double.isNaN(value)) { return null; } return value; }
public static Double ordinate(GeometryType geom, Ordinate ordinate) throws FunctionExecutionException { Geometry g = getGeometry(geom); if (!(g instanceof Point)) { throw new FunctionExecutionException(QueryPlugin.Event.TEIID31208, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31208)); } Point p = (Point)g; Coordinate c = p.getCoordinate(); if (c == null) { return null; } double value = c.getOrdinate(ordinate.ordinal()); if (Double.isNaN(value)) { return null; } return value; }