All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dpfmanager.conformancechecker.tiff.metadata_fixer.autofixes.clearPrivateData Maven / Gradle / Ivy

/**
 * 

clearPrivateData.java

This program is free software: you can redistribute it * and/or modify it under the terms of the GNU General Public License as published by the Free * Software Foundation, either version 3 of the License, or (at your option) any later version; or, * at your choice, under the terms of the Mozilla Public License, v. 2.0. SPDX GPL-3.0+ or MPL-2.0+. *

This program is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License and the Mozilla Public License for more details.

*

You should have received a copy of the GNU General Public License and the Mozilla Public * License along with this program. If not, see http://www.gnu.org/licenses/ * and at http://mozilla.org/MPL/2.0 .

NB: for the * © statement, include Easy Innova SL or other company/Person contributing the code.

© * 2015 Easy Innova, SL

* * @author Víctor Muñoz Sola * @version 1.0 * @since 23/7/2015 */ package dpfmanager.conformancechecker.tiff.metadata_fixer.autofixes; import com.easyinnova.tiff.model.TiffDocument; /** * Created by easy on 23/10/2015. */ public class clearPrivateData implements autofix { /** * The Definition. */ public String Definition = "Clear Private Data"; public String getDescription() { return Definition; } public void run(TiffDocument td) { td.removeTag("GPS IFD"); td.removeTag("GPSAltitude"); td.removeTag("GPSAltitudeRef"); td.removeTag("GPSAreaInformation"); td.removeTag("GPSDateStamp"); td.removeTag("GPSDestBearing"); td.removeTag("GPSDestBearingRef"); td.removeTag("GPSDistance"); td.removeTag("GPSDistanceRef"); td.removeTag("GPSLatitude"); td.removeTag("GPSLatitudeRef"); td.removeTag("GPSLONGitude"); td.removeTag("GPSLONGitudeRef"); td.removeTag("GPSDifferential"); td.removeTag("GPSDOP"); td.removeTag("GPSImgDirection"); td.removeTag("GPSImgDirectionRef"); td.removeTag("GPSDestLatitude"); td.removeTag("GPSDestLatitudeRef"); td.removeTag("GPSDestLONGitude"); td.removeTag("GPSDestLONGitudeRef"); td.removeTag("GPSMapDatum"); td.removeTag("GPSMeasureMode"); td.removeTag("GPSProcessingMethod"); td.removeTag("GPSSatellites"); td.removeTag("GPSSpeed"); td.removeTag("GPSSpeedRef"); td.removeTag("GPSStatus"); td.removeTag("GPSTimestamp"); td.removeTag("GPSTrack"); td.removeTag("GPSTrackRef"); td.removeTag("GPSVersionID"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy