Beispiel #1
0
 private List<SurveyPointBean> getTargetPoints() {
   ExtendedLayerEditor cadastreObjectLayer = getTargetCadastreObjectLayer();
   List<SurveyPointBean> targetPoints = new ArrayList<SurveyPointBean>();
   for (VertexInformation vertexInformation : cadastreObjectLayer.getVertexList()) {
     Object labelAttribute =
         vertexInformation
             .getVertexFeature()
             .getAttribute(ControlsBundleForPlanGeneration.LAYER_FIELD_LABEL);
     if (labelAttribute == null) {
       continue;
     }
     SurveyPointBean surveyPoint = new SurveyPointBean();
     surveyPoint.setFeatureGeom(
         (Geometry) vertexInformation.getVertexFeature().getDefaultGeometry());
     surveyPoint.setId(labelAttribute.toString());
     targetPoints.add(surveyPoint);
   }
   return targetPoints;
 }