Package org.geomajas.command.dto

Examples of org.geomajas.command.dto.MergePolygonRequest


  @Autowired
  private DtoConverterService dtoConverter;

  @Test
  public void testMergePolygon() throws Exception {
    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()) {
View Full Code Here

TOP

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

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.