Class GeopaparazziUtilities
- java.lang.Object
-
- org.hortonmachine.gears.io.geopaparazzi.GeopaparazziUtilities
-
public class GeopaparazziUtilities extends Object
Geopaparazzi utils.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Field Summary
Fields Modifier and Type Field Description static StringGPAP_EXTENSIONstatic StringGPS_LOGSstatic StringGPSLOG_descrFNstatic StringGPSLOG_enddateFNstatic StringGPSLOG_startdateFNstatic StringIMAGES_altimFNstatic StringIMAGES_azimFNstatic StringIMAGES_imageidFNstatic StringIMAGES_tsFNstatic StringMEDIA_NOTESstatic StringNOTES_altimFNstatic StringNOTES_descFNstatic StringNOTES_dirtyFNstatic StringNOTES_formFNstatic StringNOTES_textFNstatic StringNOTES_tsFNstatic StringPROJECT_CREATION_TSstatic StringPROJECT_CREATION_USERstatic StringPROJECT_DESCRIPTIONstatic StringPROJECT_NAMEstatic StringSIMPLE_NOTESstatic StringTAG_KEYstatic StringTAG_TYPEstatic StringTAG_VALUE
-
Constructor Summary
Constructors Constructor Description GeopaparazziUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringescapeHTML(String s)static voidextractValues(org.json.JSONObject sectionObject, List<String> formNames4Section, LinkedHashMap<String,String> valuesMap, LinkedHashMap<String,String> typesMap)static org.opengis.feature.simple.SimpleFeatureTypegetComplexNotefeatureType(String noteName, IHMConnection connection)static File[]getGeopaparazziFiles(File geopaparazziFolder)static org.opengis.feature.simple.SimpleFeatureTypegetGpsLogLinesFeatureType()static List<String>getLayerNamesList(IHMConnection connection)static org.opengis.feature.simple.SimpleFeatureTypegetMediaFeaturetype()static List<String[]>getNotesText(Connection connection)static StringgetProjectInfo(IHMConnection connection, boolean doHtml)static LinkedHashMap<String,String>getProjectMetadata(IHMConnection connection)Get the map of metadata of the project.static org.opengis.feature.simple.SimpleFeatureTypegetSimpleNotesfeatureType()static StringloadProjectsList(File gpapProjectsFolder)static List<HashMap<String,String>>readProjectMetadata(File[] projectFiles)
-
-
-
Field Detail
-
PROJECT_NAME
public static final String PROJECT_NAME
- See Also:
- Constant Field Values
-
PROJECT_CREATION_USER
public static final String PROJECT_CREATION_USER
- See Also:
- Constant Field Values
-
PROJECT_CREATION_TS
public static final String PROJECT_CREATION_TS
- See Also:
- Constant Field Values
-
PROJECT_DESCRIPTION
public static final String PROJECT_DESCRIPTION
- See Also:
- Constant Field Values
-
GPAP_EXTENSION
public static final String GPAP_EXTENSION
- See Also:
- Constant Field Values
-
GPS_LOGS
public static final String GPS_LOGS
- See Also:
- Constant Field Values
-
MEDIA_NOTES
public static final String MEDIA_NOTES
- See Also:
- Constant Field Values
-
SIMPLE_NOTES
public static final String SIMPLE_NOTES
- See Also:
- Constant Field Values
-
TAG_KEY
public static final String TAG_KEY
- See Also:
- Constant Field Values
-
TAG_VALUE
public static final String TAG_VALUE
- See Also:
- Constant Field Values
-
TAG_TYPE
public static final String TAG_TYPE
- See Also:
- Constant Field Values
-
NOTES_tsFN
public static final String NOTES_tsFN
-
NOTES_altimFN
public static final String NOTES_altimFN
-
NOTES_dirtyFN
public static final String NOTES_dirtyFN
-
NOTES_textFN
public static final String NOTES_textFN
-
NOTES_descFN
public static final String NOTES_descFN
-
NOTES_formFN
public static final String NOTES_formFN
-
GPSLOG_descrFN
public static final String GPSLOG_descrFN
- See Also:
- Constant Field Values
-
GPSLOG_enddateFN
public static final String GPSLOG_enddateFN
- See Also:
- Constant Field Values
-
GPSLOG_startdateFN
public static final String GPSLOG_startdateFN
- See Also:
- Constant Field Values
-
IMAGES_altimFN
public static final String IMAGES_altimFN
-
IMAGES_tsFN
public static final String IMAGES_tsFN
-
IMAGES_azimFN
public static final String IMAGES_azimFN
-
IMAGES_imageidFN
public static final String IMAGES_imageidFN
- See Also:
- Constant Field Values
-
-
Method Detail
-
readProjectMetadata
public static List<HashMap<String,String>> readProjectMetadata(File[] projectFiles) throws Exception
- Throws:
Exception
-
getProjectMetadata
public static LinkedHashMap<String,String> getProjectMetadata(IHMConnection connection) throws Exception
Get the map of metadata of the project.- Parameters:
connection- the db connection.- Returns:
- the map of metadata.
- Throws:
SQLExceptionException
-
getLayerNamesList
public static List<String> getLayerNamesList(IHMConnection connection) throws Exception
- Returns:
- the list of potential layers.
- Throws:
SQLExceptionException
-
getProjectInfo
public static String getProjectInfo(IHMConnection connection, boolean doHtml) throws Exception
- Throws:
Exception
-
getNotesText
public static List<String[]> getNotesText(Connection connection) throws Exception
- Parameters:
connection-- Returns:
- the list of [lon, lat, altim, dateTimeString, text, descr]
- Throws:
Exception
-
getSimpleNotesfeatureType
public static org.opengis.feature.simple.SimpleFeatureType getSimpleNotesfeatureType()
-
getGpsLogLinesFeatureType
public static org.opengis.feature.simple.SimpleFeatureType getGpsLogLinesFeatureType()
-
getMediaFeaturetype
public static org.opengis.feature.simple.SimpleFeatureType getMediaFeaturetype()
-
getComplexNotefeatureType
public static org.opengis.feature.simple.SimpleFeatureType getComplexNotefeatureType(String noteName, IHMConnection connection) throws Exception
- Throws:
Exception
-
extractValues
public static void extractValues(org.json.JSONObject sectionObject, List<String> formNames4Section, LinkedHashMap<String,String> valuesMap, LinkedHashMap<String,String> typesMap)
-
-