/*
* This file is part of JGrasstools (http://www.jgrasstools.org)
* (C) HydroloGIS - www.hydrologis.com
*
* JGrasstools 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.
*
* 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 for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* This file is part of JGrasstools (http://www.jgrasstools.org)
* (C) HydroloGIS - www.hydrologis.com
*
* JGrasstools 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.
*
* 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 for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.jgrasstools.modules;
import static org.jgrasstools.gears.io.geopaparazzi.OmsGeopaparazzi4Converter.*;
import oms3.annotations.*;
import org.jgrasstools.gears.io.geopaparazzi.OmsGeopaparazzi4Converter;
import org.jgrasstools.gears.libs.modules.JGTConstants;
import org.jgrasstools.gears.libs.modules.JGTModel;
import static org.jgrasstools.gears.i18n.GearsMessages.*;
@Description(DESCRIPTION)
@Author(name = OMSHYDRO_AUTHORNAMES, contact = OMSHYDRO_AUTHORCONTACTS)
@Keywords(OMSGEOPAPARAZZICONVERTER_TAGS)
@Label(JGTConstants.MOBILE)
@Name(OMSGEOPAPARAZZICONVERTER_NAME + "_v4")
@Status(OMSHYDRO_DRAFT)
@License(OMSHYDRO_LICENSE)
public class Geopaparazzi4Converter extends JGTModel {
@Description(OmsGeopaparazzi4Converter.THE_GEOPAPARAZZI_DATABASE_FILE)
@UI(JGTConstants.FILEIN_UI_HINT)
@In
public String inGeopaparazzi = null;
@Description(OMSGEOPAPARAZZICONVERTER_DO_NOTES_DESCRIPTION)
@In
public boolean doNotes = true;
@Description(OMSGEOPAPARAZZICONVERTER_DO_LOG_LINES_DESCRIPTION)
@In
public boolean doLoglines = true;
@Description(OMSGEOPAPARAZZICONVERTER_DO_LOG_POINTS_DESCRIPTION)
@In
public boolean doLogpoints = false;
@Description(OMSGEOPAPARAZZICONVERTER_DO_MEDIA_DESCRIPTION)
@In
public boolean doMedia = true;
@Description(OMSGEOPAPARAZZICONVERTER_OUT_DATA_DESCRIPTION)
@UI(JGTConstants.FOLDEROUT_UI_HINT)
@In
public String outData = null;
@Execute
public void process() throws Exception {
OmsGeopaparazzi4Converter geopaparazziconverter = new OmsGeopaparazzi4Converter();
geopaparazziconverter.inGeopaparazzi = inGeopaparazzi;
geopaparazziconverter.doNotes = doNotes;
geopaparazziconverter.doLoglines = doLoglines;
geopaparazziconverter.doLogpoints = doLogpoints;
geopaparazziconverter.doMedia = doMedia;
geopaparazziconverter.outFolder = outData;
geopaparazziconverter.pm = pm;
geopaparazziconverter.process();
}
}