Package org.geomajas.command.dto

Examples of org.geomajas.command.dto.GetRasterTilesResponse


  @Test
  public void testNoLayerIdRequest() throws Exception {
    GetRasterTilesRequest request = new GetRasterTilesRequest();
    request.setCrs(CRS);
    GetRasterTilesResponse response = (GetRasterTilesResponse) dispatcher.execute(
        GetRasterTilesRequest.COMMAND, request, null, "en");
    Assert.assertTrue(response.isError());
    Assert.assertTrue(response.getErrors().get(0) instanceof GeomajasException);
    Assert.assertEquals(ExceptionCode.PARAMETER_MISSING,
        ((GeomajasException) response.getErrors().get(0)).getExceptionCode());
  }
View Full Code Here


      this.callback = callback;
      this.bounds = bounds;
    }

    public void execute(CommandResponse response) {
      GetRasterTilesResponse r = (GetRasterTilesResponse) response;
      addTiles(r.getRasterData());
      for (RasterTile tile : tiles.values()) {
        if (bounds.intersects(tile.getBounds())) {
          callback.execute(tile);
        }
      }
View Full Code Here

  @Autowired
  private GeoService geoService;

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

TOP

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

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.