wfscapabilities.java
来自「esri的ArcGIS Server超级学习模板程序(for java)」· Java 代码 · 共 49 行
JAVA
49 行
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 + =
减小字号Ctrl + -
显示快捷键?