Timeline for Infinite run after adding osm service in a map content and using the paint method of the StreamingRenderer class
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 20, 2022 at 13:50 | comment | added | Ian Turton | Then your layer bounds are wrong but that is a new question | |
May 20, 2022 at 12:38 | comment | added | adrbessy | I tried with : CoordinateReferenceSystem crs = CRS.decode("EPSG:3857", true); mapContent.getViewport().setBounds(layer.getBounds().transform(crs, false)); But the output says the longitude and latitude are out of their allowed limits. | |
May 20, 2022 at 9:49 | history | edited | Ian Turton | CC BY-SA 4.0 |
added full working code and example output
|
May 20, 2022 at 7:19 | comment | added | adrbessy | I tried with CoordinateReferenceSystem crs = CRS.decode("EPSG:3857", true); and mapContent.getViewport().setScreenArea(imageBounds); but this gives the same effect... | |
May 19, 2022 at 8:15 | history | answered | Ian Turton | CC BY-SA 4.0 |