test_class.declarator: ZOOMED_IN_SCALE = .0001
test_class.modifier: private static final
test_class.original_string: private static final double ZOOMED_IN_SCALE = .0001;
test_class.type: double
test_class.var_name: ZOOMED_IN_SCALE
test_class.declarator: MAX_LEVEL_SCALE = .1
test_class.modifier: private static final
test_class.original_string: private static final double MAX_LEVEL_SCALE = .1;
test_class.type: double
test_class.var_name: MAX_LEVEL_SCALE
test_class.declarator: DELTA = 1e-10
test_class.modifier: private static final
test_class.original_string: private static final double DELTA = 1e-10;
test_class.type: double
test_class.var_name: DELTA
test_class.declarator: osm
test_class.modifier: @Autowired
  	@Qualifier("osmSingle")
  	private
test_class.original_string: @Autowired
  	@Qualifier("osmSingle")
  	private OsmLayer osm;
test_class.type: OsmLayer
test_class.var_name: osm
test_class.declarator: osmWrongCrs
test_class.modifier: @Autowired
  	@Qualifier("osmWrongCrs")
  	private
test_class.original_string: @Autowired
  	@Qualifier("osmWrongCrs")
  	private OsmLayer osmWrongCrs;
test_class.type: OsmLayer
test_class.var_name: osmWrongCrs
test_class.declarator: osmMaxLevel
test_class.modifier: @Autowired
  	@Qualifier("osmMaxLevel")
  	private
test_class.original_string: @Autowired
  	@Qualifier("osmMaxLevel")
  	private OsmLayer osmMaxLevel;
test_class.type: OsmLayer
test_class.var_name: osmMaxLevel
test_class.declarator: osmCycleMap
test_class.modifier: @Autowired
  	@Qualifier("osmCycleMap")
  	private
test_class.original_string: @Autowired
  	@Qualifier("osmCycleMap")
  	private OsmLayer osmCycleMap;
test_class.type: OsmLayer
test_class.var_name: osmCycleMap
test_class.declarator: geoService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private GeoService geoService;
test_class.type: GeoService
test_class.var_name: geoService
test_class.file: plugin/layer-openstreetmap/openstreetmap/src/test/java/org/geomajas/layer/osm/OsmLayerTest.java
test_class.identifier: OsmLayerTest
test_case.body: @Test
  	public void testReprojectOne() throws Exception {
  		Envelope googleEnvelope = new Envelope(10000, 10010, 5000, 5010);
  		// back-transform envelope to latlon
  		Crs google = geoService.getCrs2("EPSG:900913");
  		Crs latlon = geoService.getCrs2("EPSG:4326");
  		Envelope latlonEnvelope = geoService.transform(JTS.toGeometry(googleEnvelope), google, latlon)
  				.getEnvelopeInternal();
  		// back-transform scale to latlon
  		double latlonScale = ZOOMED_IN_SCALE * googleEnvelope.getWidth() / latlonEnvelope.getWidth();
  		// paint with reprojection (affine is fine for now...:-)
  		List<RasterTile> tiles = osm.paint(latlon, latlonEnvelope, latlonScale);
  		Assert.assertEquals(1, tiles.size());
  		RasterTile tile = tiles.get(0);
  		Assert.assertEquals("http://a.tile.openstreetmap.org/4/8/7.png", tile.getUrl());
  		Assert.assertEquals(4, tile.getCode().getTileLevel());
  		Assert.assertEquals(8, tile.getCode().getX());
  		Assert.assertEquals(7, tile.getCode().getY());
  		Assert.assertEquals(0.0, tile.getBounds().getX(), DELTA);
  		Assert.assertEquals(-244.0, tile.getBounds().getY(), DELTA);
  		Assert.assertEquals(244.0, tile.getBounds().getHeight(), DELTA);
  		Assert.assertEquals(250.0, tile.getBounds().getWidth(), DELTA);
  	}
test_case.class_method_signature: OsmLayerTest.testReprojectOne()
test_case.full_signature: @Test public void testReprojectOne()
test_case.identifier: testReprojectOne
test_case.invocations: getCrs2 getCrs2 getEnvelopeInternal transform toGeometry getWidth getWidth paint assertEquals size get assertEquals getUrl assertEquals getTileLevel getCode assertEquals getX getCode assertEquals getY getCode assertEquals getX getBounds assertEquals getY getBounds assertEquals getHeight getBounds assertEquals getWidth getBounds
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReprojectOne()
focal_class.declarator: DEFAULT_MAX_ZOOM_LEVEL = 19
focal_class.modifier: public static final
focal_class.original_string: public static final int DEFAULT_MAX_ZOOM_LEVEL = 19;
focal_class.type: int
focal_class.var_name: DEFAULT_MAX_ZOOM_LEVEL
focal_class.declarator: TILE_SIZE = 256
focal_class.modifier: public static final
focal_class.original_string: public static final int TILE_SIZE = 256;
focal_class.type: int
focal_class.var_name: TILE_SIZE
focal_class.declarator: OPEN_STREET_MAP_URLS = new ArrayList<String>()
focal_class.modifier: @Api
  	public static final
focal_class.original_string: @Api
  	public static final List<String> OPEN_STREET_MAP_URLS = new ArrayList<String>();
focal_class.type: List<String>
focal_class.var_name: OPEN_STREET_MAP_URLS
focal_class.declarator: OPEN_CYCLE_MAP_URLS = new ArrayList<String>()
focal_class.modifier: @Api
  	public static final
focal_class.original_string: @Api
  	public static final List<String> OPEN_CYCLE_MAP_URLS = new ArrayList<String>();
focal_class.type: List<String>
focal_class.var_name: OPEN_CYCLE_MAP_URLS
focal_class.declarator: TILES_AT_HOME_MAP_URLS = new ArrayList<String>()
focal_class.modifier: @Deprecated
  	public static final
focal_class.original_string: @Deprecated
  	public static final List<String> TILES_AT_HOME_MAP_URLS = new ArrayList<String>();
focal_class.type: List<String>
focal_class.var_name: TILES_AT_HOME_MAP_URLS
focal_class.declarator: converterService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private DtoConverterService converterService;
focal_class.type: DtoConverterService
focal_class.var_name: converterService
focal_class.declarator: geoService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private GeoService geoService;
focal_class.type: GeoService
focal_class.var_name: geoService
focal_class.declarator: tileService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private TiledRasterLayerService tileService;
focal_class.type: TiledRasterLayerService
focal_class.var_name: tileService
focal_class.declarator: tileServiceState =
  			new TiledRasterLayerServiceState(OPEN_STREET_MAP_URLS, TILE_SIZE, DEFAULT_MAX_ZOOM_LEVEL)
focal_class.modifier: private
focal_class.original_string: private TiledRasterLayerServiceState tileServiceState =
  			new TiledRasterLayerServiceState(OPEN_STREET_MAP_URLS, TILE_SIZE, DEFAULT_MAX_ZOOM_LEVEL);
focal_class.type: TiledRasterLayerServiceState
focal_class.var_name: tileServiceState
focal_class.file: plugin/layer-openstreetmap/openstreetmap/src/main/java/org/geomajas/layer/osm/OsmLayer.java
focal_class.identifier: OsmLayer
focal_class.interfaces: implements RasterLayer
focal_class.class_method_signature: OsmLayer.getId()
focal_class.full_signature: public String getId()
focal_class.identifier: getId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getId()
focal_class.class_method_signature: OsmLayer.setId(String id)
focal_class.full_signature: @Api public void setId(String id)
focal_class.identifier: setId
focal_class.modifiers: @Api public
focal_class.parameters: (String id)
focal_class.return: void
focal_class.signature: void setId(String id)
focal_class.class_method_signature: OsmLayer.getCrs()
focal_class.full_signature: public CoordinateReferenceSystem getCrs()
focal_class.identifier: getCrs
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CoordinateReferenceSystem
focal_class.signature: CoordinateReferenceSystem getCrs()
focal_class.class_method_signature: OsmLayer.setMaxZoomLevel(int maxZoomLevel)
focal_class.full_signature: @Api public void setMaxZoomLevel(int maxZoomLevel)
focal_class.identifier: setMaxZoomLevel
focal_class.modifiers: @Api public
focal_class.parameters: (int maxZoomLevel)
focal_class.return: void
focal_class.signature: void setMaxZoomLevel(int maxZoomLevel)
focal_class.class_method_signature: OsmLayer.getLayerInfo()
focal_class.full_signature: public RasterLayerInfo getLayerInfo()
focal_class.identifier: getLayerInfo
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: RasterLayerInfo
focal_class.signature: RasterLayerInfo getLayerInfo()
focal_class.class_method_signature: OsmLayer.setLayerInfo(RasterLayerInfo layerInfo)
focal_class.full_signature: @Api public void setLayerInfo(RasterLayerInfo layerInfo)
focal_class.identifier: setLayerInfo
focal_class.modifiers: @Api public
focal_class.parameters: (RasterLayerInfo layerInfo)
focal_class.return: void
focal_class.signature: void setLayerInfo(RasterLayerInfo layerInfo)
focal_class.class_method_signature: OsmLayer.setTileUrls(List<String> tileUrls)
focal_class.full_signature: @Api public void setTileUrls(List<String> tileUrls)
focal_class.identifier: setTileUrls
focal_class.modifiers: @Api public
focal_class.parameters: (List<String> tileUrls)
focal_class.return: void
focal_class.signature: void setTileUrls(List<String> tileUrls)
focal_class.class_method_signature: OsmLayer.setUrlSelectionStrategy(UrlSelectionStrategy strategy)
focal_class.full_signature: @Api public void setUrlSelectionStrategy(UrlSelectionStrategy strategy)
focal_class.identifier: setUrlSelectionStrategy
focal_class.modifiers: @Api public
focal_class.parameters: (UrlSelectionStrategy strategy)
focal_class.return: void
focal_class.signature: void setUrlSelectionStrategy(UrlSelectionStrategy strategy)
focal_class.class_method_signature: OsmLayer.postConstruct()
focal_class.full_signature: @PostConstruct protected void postConstruct()
focal_class.identifier: postConstruct
focal_class.modifiers: @PostConstruct protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void postConstruct()
focal_class.class_method_signature: OsmLayer.paint(CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale)
focal_class.full_signature: public List<RasterTile> paint(CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale)
focal_class.identifier: paint
focal_class.modifiers: public
focal_class.parameters: (CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale)
focal_class.return: List<RasterTile>
focal_class.signature: List<RasterTile> paint(CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale)
focal_method.body: public List<RasterTile> paint(CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale)
  			throws GeomajasException {
  		return tileService.paint(tileServiceState, boundsCrs, bounds, scale);
  	}
focal_method.class_method_signature: OsmLayer.paint(CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale)
focal_method.full_signature: public List<RasterTile> paint(CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale)
focal_method.identifier: paint
focal_method.invocations: paint
focal_method.modifiers: public
focal_method.parameters: (CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale)
focal_method.return: List<RasterTile>
focal_method.signature: List<RasterTile> paint(CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale)