空间关系分析服务类构造函数。
实例化该类如下例所示:
function datasetGeoRelationAnalystProcess() {
var referenceFilter = new SuperMap.REST.FilterParameter({
name:"Frame_R@Changchun",
attributeFilter:"SmID>0"});
var sourceFilter = new SuperMap.REST.FilterParameter({
attributeFilter:"SmID>0"});
//初始化服务类
var datasetGeoRelationService = new SuperMap.REST.GeoRelationAnalystService(
"http://localhost:8090/iserver/services/spatialanalyst-changchun/restjsr/spatialanalyst/"),
//构建参数类
datasetGeoRelationParameters = new SuperMap.REST.GeoRelationAnalystParameters({
dataset: "Park@Changchun",
startRecord: 0,
expectCount: 20,
sourceFilter: sourceFilter,
referenceFilter: referenceFilter,
spatialRelationType: SuperMap.REST.SpatialRelationType.INTERSECT,
isBorderInside: true,
returnFeature: true,
returnGeoRelatedOnly: true
});
datasetGeoRelationService.events.on({
"processCompleted": datasetGeoRelationAnalystCompleted,
"processFailed": datasetGeoRelationAnalystFailed});
//执行
datasetGeoRelationService.processAsync(datasetGeoRelationParameters);
}
function Completed(datasetGeoRelationAnalystCompleted){//todo};
function Error(datasetGeoRelationAnalystFailed){//todo};
Parameters
Allowed options properties
eventListeners |
{Object} 需要被注册的监听器对象。 |