Timeline for JMapPane doesn't update after adding new layer
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 5, 2017 at 9:42 | comment | added | Ian Turton | This should propbably be a new question but given a layer l from a WMS use the following ReferencedEnvelope envelope2 = new ReferencedEnvelope(l.getEnvelope(crs)); System.out.println(crs.getName() + " [ " + envelope2.getMinX() + "," + envelope2.getMinY() + "," + envelope2.getMaxX() + "," + envelope2.getMaxY() + " ]"); | |
Aug 5, 2017 at 9:38 | comment | added | Zoran Kokeza | The coordinate system is not set yet, there is a possibility to open a WMS in WGS84, GK6 or some other coordinate system, the same is with other details. When loading a WMS without any bounds set in MapContent it returns 2017-08-05T11:34:25.234+0200 SEVERE The scale denominator must be positive. java.lang.IllegalArgumentException: The scale denominator must be positive. Solved this by adding getMapPane().getMapContent().getViewport().setBounds(wmsLayer.getBounds()) | |
Aug 5, 2017 at 9:12 | comment | added | Ian Turton | is -100, 100, -100, 100 a valid bounding box in your coordinate system? I would use the bounds of my layer | |
Aug 4, 2017 at 22:51 | history | edited | Zoran Kokeza | CC BY-SA 3.0 |
adding new informations
|
Aug 4, 2017 at 16:49 | answer | added | Ian Turton | timeline score: 1 | |
Aug 4, 2017 at 16:16 | history | asked | Zoran Kokeza | CC BY-SA 3.0 |