public abstract class SpatialiteDataSource
extends com.nutiteq.vectordatasources.AbstractVectorDataSource<com.nutiteq.geometry.Geometry>
Modifier and Type | Field and Description |
---|---|
protected SpatialLiteDbHelper.DbLayer |
dbLayer |
protected SpatialLiteDbHelper |
spatialLite |
Constructor and Description |
---|
SpatialiteDataSource(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
|
SpatialiteDataSource(com.nutiteq.projections.Projection proj,
String dbPath,
String tableName,
String geomColumnName,
String[] userColumns,
String filter)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract com.nutiteq.ui.Label |
createLabel(Map<String,String> userData) |
protected abstract com.nutiteq.style.StyleSet<com.nutiteq.style.LineStyle> |
createLineStyleSet(Map<String,String> userData,
int zoom) |
protected abstract com.nutiteq.style.StyleSet<com.nutiteq.style.PointStyle> |
createPointStyleSet(Map<String,String> userData,
int zoom) |
protected abstract com.nutiteq.style.StyleSet<com.nutiteq.style.PolygonStyle> |
createPolygonStyleSet(Map<String,String> userData,
int zoom) |
com.nutiteq.components.Envelope |
getDataExtent() |
Collection<com.nutiteq.geometry.Geometry> |
loadElements(com.nutiteq.components.CullState cullState) |
void |
setAutoSimplify(float autoSimplifyPixels,
int screenWidth)
Set auto-simplification parameters for queries.
|
void |
setMaxElements(int maxElements)
Limit maximum objects returned by each query.
|
protected final SpatialLiteDbHelper spatialLite
protected SpatialLiteDbHelper.DbLayer dbLayer
public SpatialiteDataSource(com.nutiteq.projections.Projection proj, String dbPath, String tableName, String geomColumnName, String[] userColumns, String filter) throws IOException
proj
- data source projectiondbPath
- path to Spatialite filetableName
- table from the databasegeomColumnName
- geometry column from the tableuserColumns
- load data from these columns as userDatafilter
- filter expression for queriesIOException
public SpatialiteDataSource(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 void setMaxElements(int maxElements)
maxElements
- maximum objectspublic void setAutoSimplify(float autoSimplifyPixels, int screenWidth)
autoSimplifyPixels
- maximum allowed error resulting from simplificationscreenWidth
- target screen width in pixelspublic com.nutiteq.components.Envelope getDataExtent()
public Collection<com.nutiteq.geometry.Geometry> loadElements(com.nutiteq.components.CullState cullState)
protected abstract com.nutiteq.style.StyleSet<com.nutiteq.style.PointStyle> createPointStyleSet(Map<String,String> userData, int zoom)
protected abstract com.nutiteq.style.StyleSet<com.nutiteq.style.LineStyle> createLineStyleSet(Map<String,String> userData, int zoom)
Copyright © 2014. All rights reserved.