public class ShpFileDataSource extends VectorDataSource
swigCMemOwn
构造器和说明 |
---|
ShpFileDataSource(long cPtr,
boolean cMemoryOwn) |
ShpFileDataSource(Projection projection,
StyleSelector styleSelector,
java.lang.String fileName)
Constructs a new OGR data source given style selector and OGR supported data file.
|
限定符和类型 | 方法和说明 |
---|---|
void |
delete() |
void |
deleteInGLThread() |
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(ShpFileDataSource obj) |
MapBounds |
getDataExtent()
Returns the extent of this data source.
|
int |
getFeatureCount()
获取要素的总量
|
StringVector |
getFieldNames()
Returns the list of existing fields of the data source.
|
GeometrySimplifier |
getGeometrySimplifier()
Returns the active geometry simplifier of the data source.
|
OGRGeometryType |
getGeometryType()
获取几何类型
|
void |
intersection(VectorElement input,
VectorElementVector listOutPut)
拉框查询返回多边形要素,如果拉框导致多边形被切割,将返回多边形在拉框范围内的那一部分
|
VectorData |
loadElements(CullState cullState)
Loads all the elements within the defined envelope.
|
VectorElementVector |
query(java.lang.String strSql,
int limit) |
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 ShpFileDataSource |
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 ShpFileDataSource(long cPtr, boolean cMemoryOwn)
public ShpFileDataSource(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(ShpFileDataSource 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 ShpFileDataSource 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)
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)
input
- 输入的多边形listOutPut
- 查询到的多边形要素public void select(VectorElement input, VectorElementVector listOutPut)
input
- i查询点击的pointlistOutPut
- 查询到的多边形要素列表public void deleteInGLThread()
public java.lang.String swigGetClassName()
swigGetClassName
在类中 VectorDataSource
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
在类中 VectorDataSource