Class OmsGeopaparazzi4Converter


  • public class OmsGeopaparazzi4Converter
    extends HMModel
    • Constructor Detail

      • OmsGeopaparazzi4Converter

        public OmsGeopaparazzi4Converter()
    • Method Detail

      • simpleNotes2featurecollection

        public static org.geotools.data.simple.SimpleFeatureCollection simpleNotes2featurecollection​(IHMConnection connection,
                                                                                                     IHMProgressMonitor pm)
                                                                                              throws Exception
        Convert the simple notes to a featurecollection.
        Parameters:
        connection - the db connection.
        pm - the monitor.
        Returns:
        the extracted collection.
        Throws:
        Exception
      • complexNotes2featurecollections

        public static HashMap<String,​org.geotools.data.simple.SimpleFeatureCollection> complexNotes2featurecollections​(IHMConnection connection,
                                                                                                                             IHMProgressMonitor pm)
                                                                                                                      throws Exception
        Convert the complex notes to a map of featurecollection.
        Parameters:
        connection - the db connection.
        pm - the monitor.
        Returns:
        the extracted collection as name-collection map..
        Throws:
        Exception
      • complexNote2featurecollection

        public static org.geotools.data.simple.SimpleFeatureCollection complexNote2featurecollection​(String noteName,
                                                                                                     IHMConnection connection,
                                                                                                     IHMProgressMonitor pm)
                                                                                              throws Exception
        Convert the comples notes identified by a name to a featurecollection.
        Parameters:
        noteName - the name of the note to extract.
        connection - the db connection.
        pm - the monitor.
        Returns:
        the extracted collection.
        Throws:
        Exception
      • getLogLinesFeatureCollection

        public static org.geotools.feature.DefaultFeatureCollection getLogLinesFeatureCollection​(IHMProgressMonitor pm,
                                                                                                 List<DaoGpsLog.GpsLog> logsList)
        Convert the logs to a featurecollection.
        Parameters:
        pm - the monitor.
        logsList - the list of logs as gathered from getGpsLogsList(IHMConnection).
        Returns:
        the extracted collection.
        Throws:
        Exception
      • populateProfilesForSingleLog

        public static void populateProfilesForSingleLog​(DaoGpsLog.GpsLog log,
                                                        int size,
                                                        double[] xProfile,
                                                        double[] yProfile,
                                                        double[] xPlanim,
                                                        double[] yPlanim,
                                                        long[] timestampArray)
        Extracts profile information from logs.
        Parameters:
        log - the log to analyze.
        size - the number of points in the log (as off: int size = log.points.size(); )
        xProfile - the array of to put the progressive distance in.
        yProfile - the array of to put the elevation in.
        xPlanim - the array of to put the x coord in.
        yPlanim - the array of to put the y coord in.
        timestampArray - the array of to put the times in.