Package mil.nga.geopackage.features.user
Class FeatureTable
- java.lang.Object
-
- mil.nga.geopackage.user.UserTable<FeatureColumn>
-
- mil.nga.geopackage.features.user.FeatureTable
-
public class FeatureTable extends UserTable<FeatureColumn>
Represents a user feature table- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.user.UserTable
DEFAULT_AUTOINCREMENT, DEFAULT_PK_NOT_NULL
-
-
Constructor Summary
Constructors Constructor Description FeatureTable(String tableName, String geometryColumn, List<FeatureColumn> columns)
ConstructorFeatureTable(String tableName, List<FeatureColumn> columns)
ConstructorFeatureTable(GeometryColumns geometryColumns, List<FeatureColumn> columns)
ConstructorFeatureTable(FeatureTable featureTable)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureTable
copy()
Copy the tableFeatureColumns
createUserColumns(List<FeatureColumn> columns)
Create user columns for a subset of table columnsString
getDataType()
Get the contents data typeFeatureColumn
getGeometryColumn()
Get the geometry feature columnint
getGeometryColumnIndex()
Get the geometry column indexString
getGeometryColumnName()
Get the geometry column nameString[]
getIdAndGeometryColumnNames()
Get the Id and Geometry Column namesFeatureColumns
getUserColumns()
Get the user columnsprotected void
validateContents(Contents contents)
Validate that the set contents are valid-
Methods inherited from class mil.nga.geopackage.user.UserTable
addColumn, addConstraint, addConstraints, addConstraints, alterColumn, clearConstraints, clearConstraints, columnCount, columnsOfType, createUserColumns, dropColumn, dropColumn, dropColumn, getColumn, getColumn, getColumnIndex, getColumnName, getColumnNames, getColumns, getColumns, getConstraints, getConstraints, getContents, getDataType, getPkColumn, getPkColumnIndex, getPkColumnName, getTableName, hasColumn, hasConstraints, hasConstraints, hasPkColumn, hasSchema, isPkModifiable, isValueValidation, renameColumn, renameColumn, renameColumn, setContents, setPkModifiable, setTableName, setValueValidation
-
-
-
-
Constructor Detail
-
FeatureTable
public FeatureTable(GeometryColumns geometryColumns, List<FeatureColumn> columns)
Constructor- Parameters:
geometryColumns
- geometry columnscolumns
- feature columns- Since:
- 3.3.0
-
FeatureTable
public FeatureTable(String tableName, List<FeatureColumn> columns)
Constructor- Parameters:
tableName
- table namecolumns
- feature columns
-
FeatureTable
public FeatureTable(String tableName, String geometryColumn, List<FeatureColumn> columns)
Constructor- Parameters:
tableName
- table namegeometryColumn
- geometry columncolumns
- feature columns- Since:
- 3.3.0
-
FeatureTable
public FeatureTable(FeatureTable featureTable)
Copy Constructor- Parameters:
featureTable
- feature table- Since:
- 3.3.0
-
-
Method Detail
-
copy
public FeatureTable copy()
Copy the table- Specified by:
copy
in classUserTable<FeatureColumn>
- Returns:
- copied table
-
getDataType
public String getDataType()
Get the contents data type- Specified by:
getDataType
in classUserTable<FeatureColumn>
- Returns:
- data type
-
getUserColumns
public FeatureColumns getUserColumns()
Get the user columns- Overrides:
getUserColumns
in classUserTable<FeatureColumn>
- Returns:
- user columns
-
createUserColumns
public FeatureColumns createUserColumns(List<FeatureColumn> columns)
Create user columns for a subset of table columns- Specified by:
createUserColumns
in classUserTable<FeatureColumn>
- Parameters:
columns
- columns- Returns:
- user columns
-
getGeometryColumnIndex
public int getGeometryColumnIndex()
Get the geometry column index- Returns:
- geometry column index
-
getGeometryColumn
public FeatureColumn getGeometryColumn()
Get the geometry feature column- Returns:
- geometry feature column
-
getGeometryColumnName
public String getGeometryColumnName()
Get the geometry column name- Returns:
- geometry column name
- Since:
- 3.5.0
-
getIdAndGeometryColumnNames
public String[] getIdAndGeometryColumnNames()
Get the Id and Geometry Column names- Returns:
- column names
- Since:
- 3.5.0
-
validateContents
protected void validateContents(Contents contents)
Validate that the set contents are valid- Overrides:
validateContents
in classUserTable<FeatureColumn>
- Parameters:
contents
- contents
-
-