test_class.declarator: LAYER_ID = "countries"
test_class.modifier: private static final
test_class.original_string: private static final String LAYER_ID = "countries";
test_class.type: String
test_class.var_name: LAYER_ID
test_class.declarator: CRS = "EPSG:4326"
test_class.modifier: private static final
test_class.original_string: private static final String CRS = "EPSG:4326";
test_class.type: String
test_class.var_name: CRS
test_class.declarator: dispatcher
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private CommandDispatcher dispatcher;
test_class.type: CommandDispatcher
test_class.var_name: dispatcher
test_class.file: command/src/test/java/org/geomajas/command/render/GetVectorTileCommandTest.java
test_class.identifier: GetVectorTileCommandTest
test_case.body: @Test
  	public void testGetVectorTile() throws Exception {
  		GetVectorTileRequest request = new GetVectorTileRequest();
  		request.setCrs(CRS);
  		request.setLayerId(LAYER_ID);
  		request.setCode(new TileCode(0, 0, 0));
  		request.setPanOrigin(new Coordinate(0, 0));
  		request.setRenderer(GetVectorTileRequest.PARAM_SVG_RENDERER);
  		request.setScale(1.0);
  		GetVectorTileResponse response = (GetVectorTileResponse) dispatcher.execute(
  				GetVectorTileRequest.COMMAND, request, null, "en");
  		if (response.isError()) {
  			response.getErrors().get(0).printStackTrace();
  		}
  		Assert.assertFalse(response.isError());
  		VectorTile tile = response.getTile();
  		Assert.assertNotNull(tile);
  		Assert.assertNotNull(tile.getFeatureContent());
  		Assert.assertEquals(
  				"<g id=\"countries.features.0-0-0\">" +
  						"<g style=\"fill:#995500;fill-opacity:0.6;stroke:#995500;stroke-opacity:0.3;stroke-width:1px;\" " +
  						"id=\"countries.features.0-0-0.0\">" +
  						"<path fill-rule=\"evenodd\" d=\"M0 1l1 0 0 -1 -1 0 0 1 Z\" id=\"4\">" +
  						"</path><path fill-rule=\"evenodd\" d=\"M-1 0l1 0 0 -1 -1 0 0 1 Z\" id=\"3\">" +
  						"</path><path fill-rule=\"evenodd\" d=\"M-1 1l1 0 0 -1 -1 0 0 1 Z\" id=\"2\">" +
  						"</path><path fill-rule=\"evenodd\" d=\"M0 0l1 0 0 -1 -1 0 0 1 Z\" id=\"1\"/></g></g>",
  				tile.getFeatureContent());
  		Assert.assertEquals(171, tile.getScreenHeight());
  		Assert.assertEquals(171, tile.getScreenWidth());
  	}
test_case.class_method_signature: GetVectorTileCommandTest.testGetVectorTile()
test_case.full_signature: @Test public void testGetVectorTile()
test_case.identifier: testGetVectorTile
test_case.invocations: setCrs setLayerId setCode setPanOrigin setRenderer setScale execute isError printStackTrace get getErrors assertFalse isError getTile assertNotNull assertNotNull getFeatureContent assertEquals getFeatureContent assertEquals getScreenHeight assertEquals getScreenWidth
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetVectorTile()
focal_class.declarator: log = LoggerFactory.getLogger(GetVectorTileCommand.class)
focal_class.modifier: private final
focal_class.original_string: private final Logger log = LoggerFactory.getLogger(GetVectorTileCommand.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: converter
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private DtoConverterService converter;
focal_class.type: DtoConverterService
focal_class.var_name: converter
focal_class.declarator: layerService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private VectorLayerService layerService;
focal_class.type: VectorLayerService
focal_class.var_name: layerService
focal_class.file: command/src/main/java/org/geomajas/command/render/GetVectorTileCommand.java
focal_class.identifier: GetVectorTileCommand
focal_class.interfaces: implements CommandHasRequest<GetVectorTileRequest, GetVectorTileResponse>
focal_class.class_method_signature: GetVectorTileCommand.getEmptyCommandRequest()
focal_class.full_signature: @Override public GetVectorTileRequest getEmptyCommandRequest()
focal_class.identifier: getEmptyCommandRequest
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: GetVectorTileRequest
focal_class.signature: GetVectorTileRequest getEmptyCommandRequest()
focal_class.class_method_signature: GetVectorTileCommand.getEmptyCommandResponse()
focal_class.full_signature: @Override public GetVectorTileResponse getEmptyCommandResponse()
focal_class.identifier: getEmptyCommandResponse
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: GetVectorTileResponse
focal_class.signature: GetVectorTileResponse getEmptyCommandResponse()
focal_class.class_method_signature: GetVectorTileCommand.execute(GetVectorTileRequest request, GetVectorTileResponse response)
focal_class.full_signature: @Override public void execute(GetVectorTileRequest request, GetVectorTileResponse response)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (GetVectorTileRequest request, GetVectorTileResponse response)
focal_class.return: void
focal_class.signature: void execute(GetVectorTileRequest request, GetVectorTileResponse response)
focal_method.body: @Override
  	public void execute(GetVectorTileRequest request, GetVectorTileResponse response) throws Exception {
  		String layerId = request.getLayerId();
  		log.debug("request start layer {}, crs {}", layerId, request.getCrs());
  		if (null == layerId) {
  			throw new GeomajasException(ExceptionCode.PARAMETER_MISSING, "layer");
  		}
  		if (null == request.getCrs()) {
  			throw new GeomajasException(ExceptionCode.PARAMETER_MISSING, "crs");
  		}
  
  		response.setTile(converter.toDto(layerService.getTile(request)));
  	}
focal_method.class_method_signature: GetVectorTileCommand.execute(GetVectorTileRequest request, GetVectorTileResponse response)
focal_method.full_signature: @Override public void execute(GetVectorTileRequest request, GetVectorTileResponse response)
focal_method.identifier: execute
focal_method.invocations: getLayerId debug getCrs getCrs setTile toDto getTile
focal_method.modifiers: @Override public
focal_method.parameters: (GetVectorTileRequest request, GetVectorTileResponse response)
focal_method.return: void
focal_method.signature: void execute(GetVectorTileRequest request, GetVectorTileResponse response)