public abstract class EditableOGRVectorDataSource extends OGRVectorDataSource implements EditableVectorDataSource<com.nutiteq.geometry.Geometry>
ogrHelper| Constructor and Description |
|---|
EditableOGRVectorDataSource(com.nutiteq.projections.Projection proj,
String fileName,
String tableName)
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, setMaxElementsaddOnChangeListener, getProjection, notifyElementChanged, notifyElementsChanged, onElementChanged, removeOnChangeListenerpublic EditableOGRVectorDataSource(com.nutiteq.projections.Projection proj,
String fileName,
String tableName)
throws IOException
proj - layer projection. NB! data must be in the same projectionfileName - datasource name: file or connection stringtableName - table (OGR layer) name, needed for multi-layer datasets. If null, takes the first layer from datasetIOException - file not found or other problem opening OGR datasourcepublic long insertElement(com.nutiteq.geometry.Geometry element)
EditableVectorDataSourceinsertElement in interface EditableVectorDataSource<com.nutiteq.geometry.Geometry>element - element to insertpublic void updateElement(long id,
com.nutiteq.geometry.Geometry element)
EditableVectorDataSourceupdateElement in interface EditableVectorDataSource<com.nutiteq.geometry.Geometry>id - element id to updateelement - element to updatepublic void deleteElement(long id)
EditableVectorDataSourcedeleteElement in interface EditableVectorDataSource<com.nutiteq.geometry.Geometry>id - element id to deleteCopyright © 2014. All rights reserved.