本文整理了Java中org.geotools.feature.Feature.setDefaultGeometry()
方法的一些代码示例,展示了Feature.setDefaultGeometry()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Feature.setDefaultGeometry()
方法的具体详情如下:
包路径:org.geotools.feature.Feature
类名称:Feature
方法名:setDefaultGeometry
[英]Sets the default geometry for this feature.
[中]设置此要素的默认几何图形。
代码示例来源:origin: org.geotools/gt2-main
public void set(Object object, String xpath, Object value, Class target)
throws IllegalAttributeException {
if ( object instanceof Feature ) {
((Feature) object).setDefaultGeometry( (Geometry) value );
}
if ( object instanceof FeatureType ) {
throw new IllegalAttributeException("feature type is immutable");
}
}
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-gis
currentFeature_.setDefaultGeometry(finalGeometry_);
currentGeometryNumb_++;
代码示例来源:origin: org.geotools/gt2-postgis-versioned
f.setAttribute("date", new Date());
f.setDefaultGeometry(toLatLonRectange(bbox));
writer.write();
} catch (IllegalAttributeException e) {
代码示例来源:origin: org.geotools/gt2-postgis-versioned
f.setDefaultGeometry(toLatLonRectange(bbox));
writer.write();
} catch (IllegalAttributeException e) {
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-gis
feature.setDefaultGeometry(_zone.getGeometry(i));
for (int j = 1; j < nbAttribute; j++) {
feature.setAttribute(j, _zone.getModel(attIdx.get(atts[j])).getObjectValueAt(i));
内容来源于网络,如有侵权,请联系作者删除!