Class LasSourcesTable
- java.lang.Object
-
- org.hortonmachine.gears.io.las.databases.LasSourcesTable
-
public class LasSourcesTable 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_FACTORstatic StringCOLUMN_GEOMstatic StringCOLUMN_IDstatic StringCOLUMN_LEVELSstatic StringCOLUMN_MAXINTENSITYstatic StringCOLUMN_MAXZstatic StringCOLUMN_MININTENSITYstatic StringCOLUMN_MINZstatic StringCOLUMN_NAMEstatic StringCOLUMN_RESOLUTIONstatic StringTABLENAME
-
Constructor Summary
Constructors Constructor Description LasSourcesTable()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreateTable(ASpatialDb db, int srid, boolean avoidIndex)static List<LasSource>getLasSources(ASpatialDb db)Query the las sources table.static longinsertLasSource(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)Insert values in the tablestatic booleanisLasDatabase(ASpatialDb db)Checks if the db is a las database readable by HortonMachine.static voidupdateMinMaxIntensity(ASpatialDb db, long sourceId, double minIntens, double maxIntens)Update the intensity values.
-
-
-
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_NAME
public static final String COLUMN_NAME
- See Also:
- Constant Field Values
-
COLUMN_RESOLUTION
public static final String COLUMN_RESOLUTION
- See Also:
- Constant Field Values
-
COLUMN_FACTOR
public static final String COLUMN_FACTOR
- See Also:
- Constant Field Values
-
COLUMN_LEVELS
public static final String COLUMN_LEVELS
- See Also:
- Constant Field Values
-
COLUMN_MINZ
public static final String COLUMN_MINZ
- See Also:
- Constant Field Values
-
COLUMN_MAXZ
public static final String COLUMN_MAXZ
- See Also:
- Constant Field Values
-
COLUMN_MININTENSITY
public static final String COLUMN_MININTENSITY
- See Also:
- Constant Field Values
-
COLUMN_MAXINTENSITY
public static final String COLUMN_MAXINTENSITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
createTable
public static void createTable(ASpatialDb db, int srid, boolean avoidIndex) throws Exception
- Throws:
Exception
-
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
-
getLasSources
public static List<LasSource> getLasSources(ASpatialDb db) throws Exception
Query the las sources table.
-
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:
trueif the db can be read.- Throws:
Exception
-
-