/** * Parse the constraint and return the Geometry type name. * @param constraint Constraint on geometry type * @param numericPrecision of the geometry type * @return Geometry type */ public static String getGeometryTypeNameFromConstraint(String constraint, int numericPrecision) { int geometryTypeCode = GeometryTypeFromConstraint.geometryTypeFromConstraint(constraint, numericPrecision); return SFSUtilities.getGeometryTypeNameFromCode(geometryTypeCode); } }
/** * Parse the constraint and return the Geometry type name. * @param constraint Constraint on geometry type * @param numericPrecision of the geometry type * @return Geometry type */ public static String getGeometryTypeNameFromConstraint(String constraint, int numericPrecision) { int geometryTypeCode = GeometryTypeFromConstraint.geometryTypeFromConstraint(constraint, numericPrecision); return SFSUtilities.getGeometryTypeNameFromCode(geometryTypeCode); } }
/** * Parse the constraint and return the Geometry type name. * @param constraint Constraint on geometry type * @param numericPrecision of the geometry type * @return Geometry type */ public static String getGeometryTypeNameFromConstraint(String constraint, int numericPrecision) { int geometryTypeCode = GeometryTypeFromConstraint.geometryTypeFromConstraint(constraint, numericPrecision); return SFSUtilities.getGeometryTypeNameFromCode(geometryTypeCode); } }
/** * Parse the constraint and return the Geometry type name. * @param constraint Constraint on geometry type * @param numericPrecision of the geometry type * @return Geometry type */ public static String getGeometryTypeNameFromConstraint(String constraint, int numericPrecision) { int geometryTypeCode = GeometryTypeFromConstraint.geometryTypeFromConstraint(constraint, numericPrecision); return SFSUtilities.getGeometryTypeNameFromCode(geometryTypeCode); } }
private static void checkGeometryType(Connection connection, TableLocation tableName, int spatialFieldIndex) throws SQLException { final String fieldName = JDBCUtilities.getFieldName(connection.getMetaData(), tableName.getTable(), spatialFieldIndex); int geomType = SFSUtilities.getGeometryType(connection, tableName, fieldName); if (geomType != GeometryTypeCodes.LINESTRING) { throw new IllegalArgumentException(TYPE_ERROR + SFSUtilities.getGeometryTypeNameFromCode(geomType)); } }
private static void checkGeometryType(Connection connection, TableLocation tableName, int spatialFieldIndex) throws SQLException { final String fieldName = JDBCUtilities.getFieldName(connection.getMetaData(), tableName.getTable(), spatialFieldIndex); int geomType = SFSUtilities.getGeometryType(connection, tableName, fieldName); if (geomType != GeometryTypeCodes.LINESTRING) { throw new IllegalArgumentException(TYPE_ERROR + SFSUtilities.getGeometryTypeNameFromCode(geomType)); } }
private static void checkGeometryType(Connection connection, TableLocation tableName, int spatialFieldIndex) throws SQLException { final String fieldName = JDBCUtilities.getFieldName(connection.getMetaData(), tableName.getTable(), spatialFieldIndex); int geomType = SFSUtilities.getGeometryType(connection, tableName, fieldName); if (geomType != GeometryTypeCodes.LINESTRING) { throw new IllegalArgumentException(TYPE_ERROR + SFSUtilities.getGeometryTypeNameFromCode(geomType)); } }