⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wfscapabilities.java

📁 esri的ArcGIS Server超级学习模板程序(for java)
💻 JAVA
字号:
package com.esri.solutions.jitk.datasources.ogc.wfs;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.esri.solutions.jitk.datasources.ogc.ows.ServiceIdentification;

public class WFSCapabilities {
	protected ServiceIdentification _serviceId = null;
	protected List<FeatureTypeDescription> _featureTypes;
	protected Map<String, FeatureTypeDescription> _featureTypesMap;
	
	public WFSCapabilities() {
		_featureTypes = new ArrayList<FeatureTypeDescription>();
		_featureTypesMap = new HashMap<String, FeatureTypeDescription>();
	}

	public List<FeatureTypeDescription> getFeatureTypes() {
		return _featureTypes;
	}
	
	public Map<String, FeatureTypeDescription> getFeatureTypesAsMap() {
		return _featureTypesMap;
	}

	public void setFeatureTypes(List<FeatureTypeDescription> types) {
		_featureTypes = types;
		_featureTypesMap = new HashMap<String, FeatureTypeDescription>();
		
		// The name field for a featuretype in the getCapabilities response
		// maps to the describefeaturetype type attribute. The title field maps 
		// to the name
		
		for (FeatureTypeDescription ftd : types) {
			_featureTypesMap.put(ftd.getName(), ftd);
		}
	}
	
	public void setServiceIdentification(ServiceIdentification servId) {
		_serviceId = servId;
	}
	
	public ServiceIdentification getServiceIdentification() {
		return _serviceId;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -