本文整理了Java中org.geotools.xml.XSD.getTypeMappingProfile()
方法的一些代码示例,展示了XSD.getTypeMappingProfile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSD.getTypeMappingProfile()
方法的具体详情如下:
包路径:org.geotools.xml.XSD
类名称:XSD
方法名:getTypeMappingProfile
暂无
代码示例来源:origin: org.geotools.xsd/gt-xsd-wfs
public PropertyValueCollection(FeatureCollection delegate, AttributeDescriptor descriptor) {
super(delegate);
this.descriptor = descriptor;
this.typeMappingProfiles.add(XS.getInstance().getTypeMappingProfile());
this.typeMappingProfiles.add(GML.getInstance().getTypeMappingProfile());
}
代码示例来源:origin: org.geoserver/gs-wfs
profiles.add(xsd.getTypeMappingProfile());
代码示例来源:origin: org.geotools.xsd/gt-xsd-kml
private Class mapTypeName(String typeName) {
//try xs simple type
Schema xsTypeMappingProfile = XS.getInstance().getTypeMappingProfile();
NameImpl name = new NameImpl(XS.NAMESPACE, typeName);
if (xsTypeMappingProfile.containsKey(name)) {
AttributeType type = xsTypeMappingProfile.get(name);
if (type.getBinding() != null) {
return type.getBinding();
}
}
//try gml geometry types
Geometries g = Geometries.getForName(typeName);
if (g != null) {
return g.getBinding();
}
//default
return String.class;
}
内容来源于网络,如有侵权,请联系作者删除!