Class LasCellsTable
- java.lang.Object
-
- org.hortonmachine.gears.io.las.databases.LasCellsTable
-
public class LasCellsTable 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_COLORS_BLOBstatic StringCOLUMN_GEOMstatic StringCOLUMN_GPSTIME_BLOBstatic StringCOLUMN_IDstatic StringCOLUMN_INTENS_CLASS_BLOBstatic StringCOLUMN_MAX_ELEVstatic StringCOLUMN_MAX_GPSTIMEstatic StringCOLUMN_MAX_INTENSITYstatic StringCOLUMN_MIN_ELEVstatic StringCOLUMN_MIN_GPSTIMEstatic StringCOLUMN_MIN_INTENSITYstatic StringCOLUMN_POINTS_COUNTstatic StringCOLUMN_POSITION_BLOBstatic StringCOLUMN_RETURNS_BLOBstatic StringCOLUMN_SOURCE_IDstatic StringTABLENAME
-
Constructor Summary
Constructors Constructor Description LasCellsTable()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreateTable(ASpatialDb db, int srid, boolean avoidIndex)static short[][]getCellColors(LasCell cell)static short[][]getCellIntensityClass(LasCell cell)static double[][]getCellPositions(LasCell cell)static List<LasCell>getLasCells(ASpatialDb db, org.locationtech.jts.geom.Envelope envelope, org.locationtech.jts.geom.Geometry exactGeometry, boolean doPosition, boolean doIntensity, boolean doReturns, boolean doTime, boolean doColor, int limitTo)Query the las cell table.static List<LasCell>getLasCells(ASpatialDb db, org.locationtech.jts.geom.Geometry geometry, boolean doPosition, boolean doIntensity, boolean doReturns, boolean doTime, boolean doColor)Query the las cell table on a geometry intersection.static List<LasCell>getLasCellsBySource(ASpatialDb db, long sourceId, boolean doPosition, boolean doIntensity, boolean doReturns, boolean doTime, boolean doColor)Query the las cell table based on source.static voidinsertLasCell(ASpatialDb db, int srid, LasCell cell)Insert cell values in the tablestatic voidinsertLasCells(ASpatialDb db, int srid, List<LasCell> cells)
-
-
-
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_POINTS_COUNT
public static final String COLUMN_POINTS_COUNT
- 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_POSITION_BLOB
public static final String COLUMN_POSITION_BLOB
- 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
-
COLUMN_INTENS_CLASS_BLOB
public static final String COLUMN_INTENS_CLASS_BLOB
- See Also:
- Constant Field Values
-
COLUMN_RETURNS_BLOB
public static final String COLUMN_RETURNS_BLOB
- See Also:
- Constant Field Values
-
COLUMN_MIN_GPSTIME
public static final String COLUMN_MIN_GPSTIME
- See Also:
- Constant Field Values
-
COLUMN_MAX_GPSTIME
public static final String COLUMN_MAX_GPSTIME
- See Also:
- Constant Field Values
-
COLUMN_GPSTIME_BLOB
public static final String COLUMN_GPSTIME_BLOB
- See Also:
- Constant Field Values
-
COLUMN_COLORS_BLOB
public static final String COLUMN_COLORS_BLOB
- See Also:
- Constant Field Values
-
-
Method Detail
-
createTable
public static void createTable(ASpatialDb db, int srid, boolean avoidIndex) throws Exception
- Throws:
Exception
-
insertLasCell
public static void insertLasCell(ASpatialDb db, int srid, LasCell cell) throws Exception
Insert cell values in the table- Throws:
Exception
-
insertLasCells
public static void insertLasCells(ASpatialDb db, int srid, List<LasCell> cells) throws Exception
- Throws:
Exception
-
getLasCells
public static List<LasCell> getLasCells(ASpatialDb db, org.locationtech.jts.geom.Envelope envelope, org.locationtech.jts.geom.Geometry exactGeometry, boolean doPosition, boolean doIntensity, boolean doReturns, boolean doTime, boolean doColor, int limitTo) throws Exception
Query the las cell table.- Parameters:
db- the db to use.envelope- an optionalEnvelopeto query spatially.exactGeometry- an optional exact geometry. If available it is used instead of the envelope.doPosition- iftrueposition info is extracted.doIntensity- iftrueintensity and classification info is extracted.doReturns- iftruereturn info is extracted.doTime- iftruetime info is extracted.doColor- iftruecolor info is extracted.limitTo- limit the cells to a value if != -1- Returns:
- the list of extracted points
- Throws:
Exception
-
getLasCells
public static List<LasCell> getLasCells(ASpatialDb db, org.locationtech.jts.geom.Geometry geometry, boolean doPosition, boolean doIntensity, boolean doReturns, boolean doTime, boolean doColor) throws Exception
Query the las cell table on a geometry intersection.- Parameters:
db- the db to use.geometry- an optionalGeometryto query spatially.doPosition- iftrueposition info is extracted.doIntensity- iftrueintensity and classification info is extracted.doReturns- iftruereturn info is extracted.doTime- iftruetime info is extracted.doColor- iftruecolor info is extracted.- Returns:
- the list of extracted points
- Throws:
Exception
-
getLasCellsBySource
public static List<LasCell> getLasCellsBySource(ASpatialDb db, long sourceId, boolean doPosition, boolean doIntensity, boolean doReturns, boolean doTime, boolean doColor) throws Exception
Query the las cell table based on source.- Parameters:
db- the db to use.geometry- an optionalGeometryto query spatially.doPosition- iftrueposition info is extracted.doIntensity- iftrueintensity and classification info is extracted.doReturns- iftruereturn info is extracted.doTime- iftruetime info is extracted.doColor- iftruecolor info is extracted.- Returns:
- the list of extracted points
- Throws:
Exception
-
getCellPositions
public static double[][] getCellPositions(LasCell cell)
-
getCellIntensityClass
public static short[][] getCellIntensityClass(LasCell cell)
-
getCellColors
public static short[][] getCellColors(LasCell cell)
-
-