Package org.geomajas.layer.wms.command.dto

Examples of org.geomajas.layer.wms.command.dto.SearchByPointRequest


    securityManager.clearSecurityContext();
  }

  @Test
  public void testInvalidRequest() throws Exception {
    SearchByPointRequest request = new SearchByPointRequest();
    CommandResponse response = dispatcher.execute(SearchByPointRequest.COMMAND, request, null, "en");
    Assert.assertTrue(response.isError());
    List<Throwable> errors = response.getErrors();
    Assert.assertNotNull(errors);
    Assert.assertEquals(1, errors.size());
View Full Code Here


  }

  @Test
  public void testSearchByPoint() throws Exception {
    String layer = "layerWmsCountries";
    SearchByPointRequest request = new SearchByPointRequest();
    request.setBbox(new Bbox(-3211986.0066263545, 98246.25012821658, 1.065471024672729E7, 3365675.229452881));
    request.setCrs("EPSG:900913");
    request.setLayerIds(new String[] {layer});
    request.setLocation(new Coordinate(672238.022713162, 2554015.0948743597));
    request.setScale(1.022083167709322E-4);
    CommandResponse response = dispatcher.execute(SearchByPointRequest.COMMAND, request, null, "en");
    Assert.assertFalse(response.isError());
    Assert.assertTrue(response instanceof SearchByPointResponse);
    SearchByPointResponse sbp = (SearchByPointResponse) response;
    Map<String, List<Feature>> map = sbp.getFeatureMap();
View Full Code Here

TOP

Related Classes of org.geomajas.layer.wms.command.dto.SearchByPointRequest

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.