geopackage-sdk/src/main/java/mil/nga/geopackage/features/user/FeatureRow.java
@Override
    protected void columnToContentValue(ContentValues contentValues,
                                        FeatureColumn column, Object value) {

        if (column.isGeometry()) {

            String columnName = column.getName();

            if (value instanceof GeoPackageGeometryData) {
                GeoPackageGeometryData geometryData = (GeoPackageGeometryData) value;
                try {
                    contentValues.put(columnName, geometryData.toBytes());
                } catch (IOException e) {
                    throw new GeoPackageException(
                            "Failed to write Geometry Data bytes. column: "
                                    + columnName, e);
                }
            } else if (value instanceof byte[]) {
                contentValues.put(columnName, (byte[]) value);
            } else {
                throw new GeoPackageException(
                        "Unsupported update geometry column value type. column: "
                                + columnName + ", value type: "
                                + value.getClass().getName());
            }
        }
@Override
    protected void columnToContentValue(ContentValues contentValues,
                                        FeatureColumn column, Object value) {

        if (column.isGeometry()) {

            String columnName = column.getName();

            if (value instanceof GeoPackageGeometryData) {
                GeoPackageGeometryData geometryData = (GeoPackageGeometryData) value;
                try {
                    contentValues.put(columnName, geometryData.toBytes());
                } catch (IOException e) {
                    throw new GeoPackageException(
                            "Failed to write Geometry Data bytes. column: "
                                    + columnName, e);
                }
            } else if (value instanceof byte[]) {
                contentValues.put(columnName, (byte[]) value);
            } else {
                throw new GeoPackageException(
                        "Unsupported update geometry column value type. column: "
                                + columnName + ", value type: "
                                + value.getClass().getName());
            }
        }
@ Override protected void columnToContentValue ( ContentValues contentValues , FeatureColumn column , Object value ) { if ( column . isGeometry ( ) ) { String columnName = column . getName ( ) ; if ( value instanceof GeoPackageGeometryData ) { GeoPackageGeometryData geometryData = ( GeoPackageGeometryData ) value ; try { contentValues . put ( columnName , geometryData . toBytes ( ) ) ; } catch ( IOException e ) { throw new GeoPackageException ( "Failed to write Geometry Data bytes. column: " + columnName , e ) ; } } else if ( value instanceof byte [ ] ) { contentValues . put ( columnName , ( byte [ ] ) value ) ; } else { throw new GeoPackageException ( "Unsupported update geometry column value type. column: " + columnName + ", value type: " + value . getClass ( ) . getName ( ) ) ; } }
{@inheritDoc}
Handles geometry columns
{