コード例 #1
0
 /**
  * DOCUMENT ME!
  *
  * @param collection DOCUMENT ME!
  */
 public void addZoomFeaturesToCollection(final Collection<Feature> collection) {
   final Feature pointFeature = getFeature();
   if (pointFeature != null) {
     final Feature boundedFeature = new PureNewFeature(pointFeature.getGeometry().buffer(500));
     collection.add(boundedFeature);
   }
 }
コード例 #2
0
 /** DOCUMENT ME! */
 private void correctBadGeomCorrect() {
   if (isEditable()) {
     final LinearReferencedPointFeature feature = getFeature();
     final Feature badFeature = getBadGeomFeature();
     feature.moveTo(badFeature.getGeometry().getCoordinate());
     zoomToBadFeature();
   }
 }