Package org.geomajas.command.dto

Examples of org.geomajas.command.dto.SplitPolygonRequest


  @Autowired
  private DtoConverterService dtoConverter;

  @Test
  public void testSplitPolygon() throws Exception {
    SplitPolygonRequest request = new SplitPolygonRequest();
    GeometryFactory factory = new GeometryFactory();
    request.setGeometry(
        dtoConverter.toDto(geoService.createCircle(factory.createPoint(new Coordinate(0, 0)), 10, 10)));
    request.setSplitter(
        dtoConverter.toDto(factory.createLineString(new Coordinate[] {
            new Coordinate(-10, -10), new Coordinate(10, 10)
        })));
    SplitPolygonResponse response = (SplitPolygonResponse) dispatcher.execute(
        SplitPolygonRequest.COMMAND, request, null, "en");
View Full Code Here

TOP

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

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.