geopackage-sdk/src/main/java/mil/nga/geopackage/tiles/overlay/FeatureRowData.java
public Object jsonCompatible(boolean includePoints, boolean includeGeometries) {

        Map<String, Object> jsonValues = new HashMap<>();

        for (String key : values.keySet()) {
            Object jsonValue = null;
            Object value = values.get(key);
            if (key.equals(geometryColumn)) {
                GeoPackageGeometryData geometryData = (GeoPackageGeometryData) value;
                if (geometryData.getGeometry() != null) {
                    if (includeGeometries || (includePoints && geometryData.getGeometry().getGeometryType() == GeometryType.POINT)) {
                        jsonValue = FeatureConverter.toMap(geometryData.getGeometry());
                    }
                } else {
                    jsonValue = value;
                }
                if (jsonValue != null) {
                    jsonValues.put(key, jsonValue);
                }
            }
        }

        return jsonValues;
    }
public Object jsonCompatible(boolean includePoints, boolean includeGeometries) {

        Map<String, Object> jsonValues = new HashMap<>();

        for (String key : values.keySet()) {
            Object jsonValue = null;
            Object value = values.get(key);
            if (key.equals(geometryColumn)) {
                GeoPackageGeometryData geometryData = (GeoPackageGeometryData) value;
                if (geometryData.getGeometry() != null) {
                    if (includeGeometries || (includePoints && geometryData.getGeometry().getGeometryType() == GeometryType.POINT)) {
                        jsonValue = FeatureConverter.toMap(geometryData.getGeometry());
                    }
                } else {
                    jsonValue = value;
                }
                if (jsonValue != null) {
                    jsonValues.put(key, jsonValue);
                }
            }
        }

        return jsonValues;
    }
public Object jsonCompatible ( boolean includePoints , boolean includeGeometries ) { Map < String , Object > jsonValues = new HashMap <> ( ) ; for ( String key : values . keySet ( ) ) { Object jsonValue = null ; Object value = values . get ( key ) ; if ( key . equals ( geometryColumn ) ) { GeoPackageGeometryData geometryData = ( GeoPackageGeometryData ) value ; if ( geometryData . getGeometry ( ) != null ) { if ( includeGeometries || ( includePoints && geometryData . getGeometry ( ) . getGeometryType ( ) == GeometryType . POINT ) ) { jsonValue = FeatureConverter . toMap ( geometryData . getGeometry ( ) ) ; } } else { jsonValue = value ; } if ( jsonValue != null ) { jsonValues . put ( key , jsonValue ) ; } } } return jsonValues ; }
Build a JSON compatible object

@param includePoints     true to include point geometries, ignored if includeGeometries is true
@param includeGeometries true to include all geometry types
@return JSON compatible object
Build a JSON compatible object