Class LasLevelsTable
- java.lang.Object
-
- org.hortonmachine.gears.io.las.databases.LasLevelsTable
-
public class LasLevelsTable extends Object
Table to hold all the table sources.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOLUMN_AVG_ELEVstatic StringCOLUMN_AVG_INTENSITYstatic StringCOLUMN_GEOMstatic StringCOLUMN_IDstatic StringCOLUMN_MAX_ELEVstatic StringCOLUMN_MAX_INTENSITYstatic StringCOLUMN_MIN_ELEVstatic StringCOLUMN_MIN_INTENSITYstatic StringCOLUMN_SOURCE_IDstatic StringTABLENAME
-
Constructor Summary
Constructors Constructor Description LasLevelsTable()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreateTable(ASpatialDb db, int srid, int levelNum, boolean avoidIndex)static List<LasLevel>getLasLevels(ASpatialDb db, int levelNum, org.locationtech.jts.geom.Envelope envelope)Query the las level table.static List<LasLevel>getLasLevels(ASpatialDb db, int levelNum, org.locationtech.jts.geom.Geometry geometry)Query the las level table on a geometry intersection.static booleanhasLevel(ASpatialDb db, int levelNum)Checks if the given level table exists.static voidinsertLasLevel(ASpatialDb db, int srid, LasLevel level)Insert cell values in the tablestatic voidinsertLasLevels(ASpatialDb db, int srid, List<LasLevel> levels)
-
-
-
Field Detail
-
TABLENAME
public static final String TABLENAME
- See Also:
- Constant Field Values
-
COLUMN_ID
public static final String COLUMN_ID
- See Also:
- Constant Field Values
-
COLUMN_GEOM
public static final String COLUMN_GEOM
- See Also:
- Constant Field Values
-
COLUMN_SOURCE_ID
public static final String COLUMN_SOURCE_ID
- See Also:
- Constant Field Values
-
COLUMN_AVG_ELEV
public static final String COLUMN_AVG_ELEV
- See Also:
- Constant Field Values
-
COLUMN_MIN_ELEV
public static final String COLUMN_MIN_ELEV
- See Also:
- Constant Field Values
-
COLUMN_MAX_ELEV
public static final String COLUMN_MAX_ELEV
- See Also:
- Constant Field Values
-
COLUMN_AVG_INTENSITY
public static final String COLUMN_AVG_INTENSITY
- See Also:
- Constant Field Values
-
COLUMN_MIN_INTENSITY
public static final String COLUMN_MIN_INTENSITY
- See Also:
- Constant Field Values
-
COLUMN_MAX_INTENSITY
public static final String COLUMN_MAX_INTENSITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasLevel
public static boolean hasLevel(ASpatialDb db, int levelNum) throws Exception
Checks if the given level table exists.- Parameters:
db- the database.levelNum- the level number to check.- Returns:
trueif the level table exists.- Throws:
Exception
-
createTable
public static void createTable(ASpatialDb db, int srid, int levelNum, boolean avoidIndex) throws Exception
- Throws:
Exception
-
insertLasLevel
public static void insertLasLevel(ASpatialDb db, int srid, LasLevel level) throws Exception
Insert cell values in the table- Throws:
Exception
-
insertLasLevels
public static void insertLasLevels(ASpatialDb db, int srid, List<LasLevel> levels) throws Exception
- Throws:
Exception
-
getLasLevels
public static List<LasLevel> getLasLevels(ASpatialDb db, int levelNum, org.locationtech.jts.geom.Envelope envelope) throws Exception
Query the las level table.- Parameters:
db- the db to use.levelNum- the level to query.envelope- an optionalEnvelopeto query spatially.- Returns:
- the list of extracted level cells.
- Throws:
Exception
-
getLasLevels
public static List<LasLevel> getLasLevels(ASpatialDb db, int levelNum, org.locationtech.jts.geom.Geometry geometry) throws Exception
Query the las level table on a geometry intersection.- Parameters:
db- the db to use.levelNum- the level to query.geometry- an optionalGeometryto query spatially.- Returns:
- the list of extracted points
- Throws:
Exception
-
-