public class GeoPkgDataSource extends VectorDataSource
swigCMemOwn
构造器和说明 |
---|
GeoPkgDataSource(long cPtr,
boolean cMemoryOwn) |
GeoPkgDataSource(Projection projection,
StyleSelector styleSelector,
java.lang.String fileName)
Constructs a new OGR data source given style selector and OGR supported data file.
|
限定符和类型 | 方法和说明 |
---|---|
void |
delete() |
protected void |
finalize() |
java.lang.String |
getCodePage()
Returns the current code page used for decoding DBF text data.
|
static java.lang.String |
getConfigOption(java.lang.String name)
Returns the value of global OGR configuration option.
|
static long |
getCPtr(GeoPkgDataSource obj) |
MapBounds |
getDataExtent()
Returns the extent of this data source.
|
int |
getFeatureCount()
获取要素的总数
|
StringVector |
getFieldNames()
获取字段名称列表
|
GeometrySimplifier |
getGeometrySimplifier()
Returns the active geometry simplifier of the data source.
|
OGRGeometryType |
getGeometryType()
获取几何类型
|
void |
intersection(VectorElement input,
VectorElementVector listOutPut) |
void |
intersection(VectorElement input,
VectorElementVector listInput,
VectorElementVector listOutPut) |
VectorData |
loadElements(CullState cullState)
Loads all the elements within the defined envelope.
|
VectorElementVector |
query(java.lang.String strSql,
int limit)
基于Sql查询满足条件的元素
|
void |
select(VectorElement input,
VectorElementVector listOutPut)
i查询点击地图返回多边形要素
|
void |
setCodePage(java.lang.String codePage)
Specifies the code page to use for decoding DBF text data.
|
static void |
setConfigOption(java.lang.String name,
java.lang.String value)
Sets global OGR configuration option.
|
void |
setGeometrySimplifier(GeometrySimplifier simplifier)
Attaches geometry simplifier to the data source.
|
static GeoPkgDataSource |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
protected void |
swigDirectorDisconnect() |
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
void |
swigReleaseOwnership() |
void |
swigTakeOwnership() |
boolean |
testCapability(java.lang.String capability)
Tests the data source capability.
|
getCPtr, getProjection, notifyElementChanged, notifyElementsChanged, notifyElementsChanged
public GeoPkgDataSource(long cPtr, boolean cMemoryOwn)
public GeoPkgDataSource(Projection projection, StyleSelector styleSelector, java.lang.String fileName)
projection
- The projection to use for data coordinates. Note that if actual data is in different coordinates, coordinates will be re-projected.styleSelector
- The style selector to use when loading geometry from OGR file.fileName
- The full path of the data filejava.lang.Exception
- If the file could not be opened.public static long getCPtr(GeoPkgDataSource obj)
protected void finalize()
finalize
在类中 VectorDataSource
public void delete()
delete
在类中 VectorDataSource
protected void swigDirectorDisconnect()
public void swigReleaseOwnership()
swigReleaseOwnership
在类中 VectorDataSource
public void swigTakeOwnership()
swigTakeOwnership
在类中 VectorDataSource
public static GeoPkgDataSource swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
cPtr
- The native pointer of the instance.cMemoryOwn
- The ownership flag.public java.lang.String getCodePage()
public void setCodePage(java.lang.String codePage)
codePage
- The codepage to use (for example, "CP1254", or any other iconv encoding)public GeometrySimplifier getGeometrySimplifier()
public void setGeometrySimplifier(GeometrySimplifier simplifier)
simplifier
- The new geometry simplifier to use (can be null).public MapBounds getDataExtent()
public int getFeatureCount()
public OGRGeometryType getGeometryType()
public StringVector getFieldNames()
public VectorElementVector query(java.lang.String strSql, int limit)
strSql
- Sql语句limit
- 返回的最大条数public VectorData loadElements(CullState cullState)
VectorDataSource
loadElements
在类中 VectorDataSource
cullState
- State for describing view parameters and conservative view envelope.public boolean testCapability(java.lang.String capability)
capability
- The name of the capability (for example, "CreateFeature", "DeleteFeature", etc)public static void setConfigOption(java.lang.String name, java.lang.String value)
name
- The name of the option parameter to set ("SHAPE_ENCODING", for example)value
- The value of the parameter.public static java.lang.String getConfigOption(java.lang.String name)
name
- The name of the the option parameter to read.public void intersection(VectorElement input, VectorElementVector listOutPut)
public void intersection(VectorElement input, VectorElementVector listInput, VectorElementVector listOutPut)
public void select(VectorElement input, VectorElementVector listOutPut)
input
- i查询点击的pointlistOutPut
- 查询到的多边形要素列表public java.lang.String swigGetClassName()
swigGetClassName
在类中 VectorDataSource
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
在类中 VectorDataSource