/** * Clear the metadata properties. */ default void clearMetadata() { setLocationAltitude(null); setLocationLongitude(null); setLocationLatitude(null); // Remove all other metadata properties getPropertyKeys().stream() .filter(e -> e.startsWith(META_DATA_PROPERTY_PREFIX)) .forEach(e -> { setMetadata(e.substring(META_DATA_PROPERTY_PREFIX.length()), null); }); }