Class GeopaparazziDatabaseProperties
- java.lang.Object
-
- org.hortonmachine.gears.io.geopaparazzi.styles.GeopaparazziDatabaseProperties
-
- All Implemented Interfaces:
ISpatialiteTableAndFieldsNames
public class GeopaparazziDatabaseProperties extends Object implements ISpatialiteTableAndFieldsNames
geopaparazzi related database utilities.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>PROPERTIESTABLE_FIELDS_LISTThe complete list of fields in the properties table.-
Fields inherited from interface org.hortonmachine.gears.io.geopaparazzi.styles.ISpatialiteTableAndFieldsNames
COL_METADATA_NAME, COL_METADATA_VALUE, METADATA_GEOMETRY_COLUMNS_TABLE_NAME, METADATA_GEOPACKAGE_TABLE_NAME, METADATA_LAYER_STATISTICS_TABLE_NAME, METADATA_RASTERLITE2_RASTER_COVERAGES_TABLE_NAME, METADATA_VECTOR_LAYERS_STATISTICS_TABLE_NAME, METADATA_VECTOR_LAYERS_TABLE_NAME, METADATA_VIEWS_GEOMETRY_COLUMNS_TABLE_NAME, PROPERTIESTABLE, TABLE_METADATA
-
-
Constructor Summary
Constructors Constructor Description GeopaparazziDatabaseProperties()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BasicStylecreateDefaultPropertiesForTable(ASpatialDb database, String spatialTableUniqueName, String spatialTableLabelField)Create a default properties table for a spatial table.static voidcreatePropertiesTable(ASpatialDb database)Create the properties table.static voidupdateStyle(ASpatialDb database, BasicStyle style)Update a style definition.
-
-
-
Method Detail
-
createPropertiesTable
public static void createPropertiesTable(ASpatialDb database) throws Exception
Create the properties table.- Parameters:
database- the db to use.- Throws:
Exception
-
createDefaultPropertiesForTable
public static BasicStyle createDefaultPropertiesForTable(ASpatialDb database, String spatialTableUniqueName, String spatialTableLabelField) throws Exception
Create a default properties table for a spatial table.- Parameters:
database- the db to use. Ifnull, the style is not inserted in the db.spatialTableUniqueName- the spatial table's unique name to create the property record for.- Returns:
- Throws:
Exception- if something goes wrong.
-
updateStyle
public static void updateStyle(ASpatialDb database, BasicStyle style) throws Exception
Update a style definition.- Parameters:
database- the db to use.style- theBasicStyleto set.- Throws:
Exception- if something goes wrong.
-
-