本文整理了Java中com.vividsolutions.jts.geom.Polygon.getUserData()
方法的一些代码示例,展示了Polygon.getUserData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Polygon.getUserData()
方法的具体详情如下:
包路径:com.vividsolutions.jts.geom.Polygon
类名称:Polygon
方法名:getUserData
暂无
代码示例来源:origin: opentripplanner/OpenTripPlanner
((List<LinearRing>) shell.getUserData()).add(hole);
break outer;
List<LinearRing> shellHoles = ((List<LinearRing>) shell.getUserData());
punched.add(geomFactory.createPolygon((LinearRing) (shell.getExteriorRing()),
shellHoles.toArray(new LinearRing[shellHoles.size()])));
代码示例来源:origin: opentripplanner/OpenTripPlanner
((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: org.geotools/gt-render
public Object getUserData() {
return polygon.getUserData();
}
代码示例来源:origin: matsim-org/matsim
((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: mapplus/spatial_statistics_for_geotools_udig
private Geometry removeHoles(Polygon polygon) {
GeometryFactory factory = polygon.getFactory();
LineString exteriorRing = polygon.getExteriorRing();
Geometry finalGeom = factory.createPolygon((LinearRing) exteriorRing, null);
finalGeom.setUserData(polygon.getUserData());
return finalGeom;
}
}
代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig
private Geometry removeHoles(Polygon polygon) {
GeometryFactory factory = polygon.getFactory();
LineString exteriorRing = polygon.getExteriorRing();
Geometry finalGeom = factory.createPolygon((LinearRing) exteriorRing, null);
finalGeom.setUserData(polygon.getUserData());
return finalGeom;
}
代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig
private Geometry removeSmallHoles(Polygon polygon, double areaTolerance) {
GeometryFactory factory = polygon.getFactory();
LineString exteriorRing = polygon.getExteriorRing();
// check interior rings
List<LinearRing> interiorRingList = new ArrayList<LinearRing>();
for (int index = 0; index < polygon.getNumInteriorRing(); index++) {
LineString interiorRing = polygon.getInteriorRingN(index);
if (interiorRing.isRing()) {
if (Math.abs(interiorRing.getArea()) >= areaTolerance) {
interiorRingList.add((LinearRing) interiorRing);
}
}
}
LinearRing[] holes = null;
if (interiorRingList.size() > 0) {
holes = GeometryFactory.toLinearRingArray(interiorRingList);
}
Geometry finalGeom = factory.createPolygon((LinearRing) exteriorRing, holes);
finalGeom.setUserData(polygon.getUserData());
return finalGeom;
}
}
代码示例来源:origin: kiselev-dv/gazetteer
.getUserData());
代码示例来源:origin: kiselev-dv/gazetteer
if (!intersection.isEmpty()) {
String neighbourId = neighbours.get(neighbourPolygon
.getUserData());
代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig
Double value = (Double) polygon.getUserData();
polygon.setUserData(null);
代码示例来源:origin: org.geotools/gt-process-raster
for (Polygon polygon : prop) {
Double value = (Double) polygon.getUserData();
polygon.setUserData(null);
内容来源于网络,如有侵权,请联系作者删除!