public abstract class EditableSpatialiteDataSource extends SpatialiteDataSource implements EditableVectorDataSource<com.nutiteq.geometry.Geometry>
dbLayer, spatialLite
Constructor and Description |
---|
EditableSpatialiteDataSource(com.nutiteq.projections.Projection proj,
SpatialLiteDbHelper spatialLiteDb,
String tableName,
String geomColumnName,
String[] userColumns,
String filter)
Construct data source with the SpatialLiteDb already opened, and filters
|
EditableSpatialiteDataSource(com.nutiteq.projections.Projection proj,
String dbPath,
String tableName,
String geomColumnName,
String[] userColumns,
String filter)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteElement(long id)
Delete existing element from data source
|
long |
insertElement(com.nutiteq.geometry.Geometry element)
Insert new element into data source
|
void |
updateElement(long id,
com.nutiteq.geometry.Geometry element)
Update existing element in data source
|
createLabel, createLineStyleSet, createPointStyleSet, createPolygonStyleSet, getDataExtent, loadElements, setAutoSimplify, setMaxElements
addOnChangeListener, getProjection, notifyElementChanged, notifyElementsChanged, onElementChanged, removeOnChangeListener
public EditableSpatialiteDataSource(com.nutiteq.projections.Projection proj, String dbPath, String tableName, String geomColumnName, String[] userColumns, String filter) throws IOException
proj
- Layer projectiondbPath
- Spatialite file name full pathtableName
- table name for datageomColumnName
- column in tableName which has geometriesuserColumns
- include values from these additional columns to userDatafilter
- extra filter expression for SQLIOException
public EditableSpatialiteDataSource(com.nutiteq.projections.Projection proj, SpatialLiteDbHelper spatialLiteDb, String tableName, String geomColumnName, String[] userColumns, String filter)
proj
- data source projectionspatialLiteDb
- Spatialite databasetableName
- table from the databasegeomColumnName
- geometry column from the tableuserColumns
- load data from these columns as userDatafilter
- SQL filter to select some objects, used for WHEREpublic long insertElement(com.nutiteq.geometry.Geometry element)
EditableVectorDataSource
insertElement
in interface EditableVectorDataSource<com.nutiteq.geometry.Geometry>
element
- element to insertpublic void updateElement(long id, com.nutiteq.geometry.Geometry element)
EditableVectorDataSource
updateElement
in interface EditableVectorDataSource<com.nutiteq.geometry.Geometry>
id
- element id to updateelement
- element to updatepublic void deleteElement(long id)
EditableVectorDataSource
deleteElement
in interface EditableVectorDataSource<com.nutiteq.geometry.Geometry>
id
- element id to deleteCopyright © 2014. All rights reserved.