Examples of execute()


Examples of org.geomajas.gwt.client.spatial.geometry.operation.AddRingOperation.execute()

  private Polygon addRing(Polygon polygon) {
    LinearRing interiorRing = polygon.getGeometryFactory().createLinearRing(new Coordinate[] {});
    AddRingOperation op = new AddRingOperation(interiorRing);
    index.setInteriorRingIndex(polygon.getNumInteriorRing());
    index.setExteriorRing(false);
    return (Polygon) op.execute(polygon);
  }

  private MultiPolygon addRing(MultiPolygon multiPolygon) {
    if (index.getGeometryIndex() >= 0) {
      Polygon[] polygons = new Polygon[multiPolygon.getNumGeometries()];
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.geometry.operation.InsertCoordinateOperation.execute()

        label.setDistance(0, 0);
        label.animateMove(mapWidget.getWidth() - 130, 10);
      } else {
        Geometry geometry = (Geometry) distanceLine.getOriginalLocation();
        InsertCoordinateOperation op = new InsertCoordinateOperation(geometry.getNumPoints(), coordinate);
        geometry = op.execute(geometry);
        distanceLine.setGeometry(geometry);
        tempLength = (float) geometry.getLength();
        label.setDistance(tempLength, 0);
      }
      mapWidget.render(mapWidget.getMapModel(), RenderGroup.VECTOR, RenderStatus.UPDATE);
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.geometry.operation.InsertRingOperation.execute()

  private Polygon undo(Polygon polygon) {
    Polygon result = null;
    if (index.getInteriorRingIndex() >= 0) {
      InsertRingOperation op = new InsertRingOperation(interiorRing, index.getInteriorRingIndex());
      result = (Polygon) op.execute(polygon);
    }
    if (result != null) {
      return result;
    }
    return polygon;
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.geometry.operation.RemoveCoordinateOperation.execute()

  }

  private LineString execute(LineString lineString) {
    coordinate = (Coordinate) lineString.getCoordinateN(index.getCoordinateIndex()).clone();
    RemoveCoordinateOperation op = new RemoveCoordinateOperation(index.getCoordinateIndex());
    return (LineString) op.execute(lineString);
  }

  // -------------------------------------------------------------------------
  // Private undo functions:
  // -------------------------------------------------------------------------
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.geometry.operation.RemoveRingOperation.execute()

  private Polygon execute(Polygon polygon) {
    Polygon result = null;
    if (index.getInteriorRingIndex() >= 0) {
      interiorRing = polygon.getInteriorRingN(index.getInteriorRingIndex());
      RemoveRingOperation op = new RemoveRingOperation(index.getInteriorRingIndex());
      result = (Polygon) op.execute(polygon);
    }
    if (result != null) {
      return result;
    }
    return polygon;
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.geometry.operation.SetCoordinateOperation.execute()

  }

  private LineString execute(LineString lineString) {
    oldPosition = (Coordinate) lineString.getCoordinateN(index.getCoordinateIndex()).clone();
    SetCoordinateOperation op = new SetCoordinateOperation(index.getCoordinateIndex(), newPosition);
    return (LineString) op.execute(lineString);
  }

  private void execute(Point point) {
    if (index.getCoordinateIndex() == 0) {
      oldPosition = (Coordinate) point.getCoordinate().clone();
View Full Code Here

Examples of org.geomajas.puregwt.client.command.CommandService.execute()

    setFallbackController(new NavigationController());

    Command commandRequest = new Command(GetMapConfigurationRequest.COMMAND);
    commandRequest.setCommandRequest(new GetMapConfigurationRequest(id, applicationId));
    CommandService cmdService = new CommandService();
    cmdService.execute(commandRequest, new CommandCallback() {

      public void onSuccess(CommandResponse response) {
        if (response instanceof GetMapConfigurationResponse) {
          // Initialize the MapModel and ViewPort:
          GetMapConfigurationResponse r = (GetMapConfigurationResponse) response;
View Full Code Here

Examples of org.geoserver.kml.FeatureTimeTemplate.execute()

    @Test
    public void testEmpty() throws Exception {
        setupTemplate(MockData.PRIMITIVEGEOFEATURE,"time.ftl","");
       
        FeatureTimeTemplate template = new FeatureTimeTemplate();
        String[] result = template.execute( feature );
       
        assertEquals( 0, result.length );
    }
   
    @Test
View Full Code Here

Examples of org.geoserver.script.wps.ScriptProcess.execute()

       
        // test execute
        Map<String, Object> input = new HashMap<String, Object>();
        input.put("first", 2.0);
        input.put("second", 4.0);
        Map<String,Object> result = process.execute(input, null);
        assertNotNull("add result", result);
        assertTrue("sum in results", result.containsKey("sum"));
        Object sum = result.get("sum");
        assertEquals("correct sum", 6.0, (Double) sum, 0.0);
    }
View Full Code Here

Examples of org.geotools.data.Parameter.execute()

        //execute the process
        Map<String,Object> result = null;
        Throwable error = null;
        try {
            Process p = pf.create(processName);
            result = p.execute( inputs, null );   
        }
        catch( Throwable t ) {
            //save the error to report back
            error = t;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.