Class LasSourcesTable


  • public class LasSourcesTable
    extends Object
    Table to hold all the table sources.
    Author:
    Andrea Antonello (www.hydrologis.com)
    • Constructor Detail

      • LasSourcesTable

        public LasSourcesTable()
    • Method Detail

      • insertLasSource

        public static long insertLasSource​(ASpatialDb db,
                                           int srid,
                                           int levels,
                                           double resolution,
                                           double factor,
                                           org.locationtech.jts.geom.Polygon polygon,
                                           String name,
                                           double minElev,
                                           double maxElev,
                                           double minIntens,
                                           double maxIntens)
                                    throws Exception
        Insert values in the table
        Parameters:
        db - the db to use.
        srid - the epsg code.
        levels - the levels that are created for this source.
        resolution - the resolution of trhe base cells.
        factor - the level multiplication factor.
        polygon - the polygon geometry bounds of the source.
        name - the name of the source.
        minElev - the min elevation.
        maxElev - the max elevation.
        minIntens - the min intensity.
        maxIntens - the max intensity.
        Returns:
        the source id.
        Throws:
        Exception
      • updateMinMaxIntensity

        public static void updateMinMaxIntensity​(ASpatialDb db,
                                                 long sourceId,
                                                 double minIntens,
                                                 double maxIntens)
                                          throws Exception
        Update the intensity values.
        Parameters:
        db - the db.
        sourceId - the source to update.
        minIntens - the min value.
        maxIntens - the max value.
        Throws:
        Exception
      • isLasDatabase

        public static boolean isLasDatabase​(ASpatialDb db)
                                     throws Exception
        Checks if the db is a las database readable by HortonMachine.
        Parameters:
        db - the database to check.
        Returns:
        true if the db can be read.
        Throws:
        Exception