Package org.geomajas.command.dto

Examples of org.geomajas.command.dto.MergePolygonResponse


    MergePolygonRequest request = new MergePolygonRequest();
    GeometryFactory factory = new GeometryFactory();
    request.setPolygons(new Geometry[] {
        dtoConverter.toDto(geoService.createCircle(factory.createPoint(new Coordinate(0, 0)), 10, 10)),
        dtoConverter.toDto(geoService.createCircle(factory.createPoint(new Coordinate(5, 5)), 10, 10))});
    MergePolygonResponse response = (MergePolygonResponse) dispatcher.execute(
        MergePolygonRequest.COMMAND, request, null, "en");
    if (response.isError()) {
      response.getErrors().get(0).printStackTrace();
    }
    Assert.assertFalse(response.isError());
    Assert.assertNotNull(response.getGeometry());
    // @todo should verify that merge is correct
  }
View Full Code Here


  @Autowired
  private DtoConverterService converter;

  public MergePolygonResponse getEmptyCommandResponse() {
    return new MergePolygonResponse();
  }
View Full Code Here

TOP

Related Classes of org.geomajas.command.dto.MergePolygonResponse

Copyright © 2018 www.massapicom. 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.