public abstract class OGRVectorDataSource
extends com.nutiteq.vectordatasources.AbstractVectorDataSource<com.nutiteq.geometry.Geometry>
| Modifier and Type | Field and Description |
|---|---|
protected OGRFileHelper |
ogrHelper |
| Constructor and Description |
|---|
OGRVectorDataSource(com.nutiteq.projections.Projection proj,
String fileName,
String tableName)
Open OGR datasource.
|
OGRVectorDataSource(com.nutiteq.projections.Projection proj,
String fileName,
String tableName,
boolean update)
Open OGR datasource.
|
| 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 |
setMaxElements(int maxElements)
Limit maximum objects returned by each query.
|
protected final OGRFileHelper ogrHelper
public OGRVectorDataSource(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 OGRVectorDataSource(com.nutiteq.projections.Projection proj,
String fileName,
String tableName,
boolean update)
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 datasetupdate - if true, file will be opened in read-write mode. If false, file is only readableIOException - file not found or other problem opening OGR datasourcepublic void setMaxElements(int maxElements)
maxElements - maximum objectspublic 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.