本文整理了Java中org.locationtech.jts.geom.Polygon.getUserData()
方法的一些代码示例,展示了Polygon.getUserData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Polygon.getUserData()
方法的具体详情如下:
包路径:org.locationtech.jts.geom.Polygon
类名称:Polygon
方法名:getUserData
暂无
代码示例来源:origin: graphhopper/graphhopper
((List<LinearRing>) shell.getUserData()).add(hole);
break outer;
List<LinearRing> shellHoles = ((List<LinearRing>) shell.getUserData());
punched.add(geometryFactory.createPolygon((LinearRing) (shell.getExteriorRing()),
shellHoles.toArray(new LinearRing[shellHoles.size()])));
代码示例来源:origin: geotools/geotools
public Object getUserData() {
return polygon.getUserData();
}
代码示例来源:origin: geotools/geotools
/**
* @param polygon
* @throws TransformException
*/
public Polygon transformPolygon(Polygon polygon, GeometryFactory gf) throws TransformException {
LinearRing exterior = (LinearRing) transformLineString(polygon.getExteriorRing(), gf);
LinearRing[] interiors = new LinearRing[polygon.getNumInteriorRing()];
for (int i = 0; i < interiors.length; i++) {
interiors[i] = (LinearRing) transformLineString(polygon.getInteriorRingN(i), gf);
}
Polygon transformed = gf.createPolygon(exterior, interiors);
transformed.setUserData(polygon.getUserData());
return transformed;
}
}
代码示例来源:origin: geotools/geotools
for (Polygon polygon : prop) {
Double value = (Double) polygon.getUserData();
polygon.setUserData(null);
代码示例来源:origin: com.graphhopper/graphhopper-isochrone
((List<LinearRing>) shell.getUserData()).add(hole);
break outer;
List<LinearRing> shellHoles = ((List<LinearRing>) shell.getUserData());
punched.add(geometryFactory.createPolygon((LinearRing) (shell.getExteriorRing()),
shellHoles.toArray(new LinearRing[shellHoles.size()])));
代码示例来源:origin: Geomatys/geotoolkit
@Override
public MultiPolygon apply(Polygon object) throws UnconvertibleObjectException {
final MultiPolygon geom = object.getFactory().createMultiPolygon(new Polygon[]{object});
geom.setSRID(object.getSRID());
geom.setUserData(object.getUserData());
return geom;
}
代码示例来源:origin: Geomatys/geotoolkit
/**
* @param polygon
* @throws TransformException
*/
public Polygon transformPolygon(final Polygon polygon, final GeometryFactory gf)
throws TransformException {
final LinearRing exterior = (LinearRing) transformLineString(polygon.getExteriorRing(), gf);
final LinearRing[] interiors = new LinearRing[polygon.getNumInteriorRing()];
for (int i = 0; i < interiors.length; i++) {
interiors[i] = (LinearRing) transformLineString(polygon.getInteriorRingN(i), gf);
}
final Polygon transformed = gf.createPolygon(exterior, interiors);
transformed.setUserData( polygon.getUserData() );
return transformed;
}
代码示例来源:origin: org.jaitools/jt-utils
smoothedPoly.setUserData(inputPoly.getUserData());
return smoothedPoly;
内容来源于网络,如有侵权,请联系作者删除!