Changeset 12140 in josm
- Timestamp:
- 2017-05-13T17:03:37+02:00 (8 years ago)
- Location:
- trunk/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/data/sessions/bing.jos
r8803 r12140 2 2 <josm-session version="0.1"> 3 3 <viewport> 4 <center lat=" 1" lon="1"/>5 <scale meter-per-pixel=" 9"/>4 <center lat="43.13272938585711" lon="131.91090255707502"/> 5 <scale meter-per-pixel="0.21789683764431256"/> 6 6 </viewport> 7 <layers active="1">7 <layers> 8 8 <layer index="1" name="Bing aerial imagery" type="imagery" version="0.1" visible="true"> 9 9 <name>Bing aerial imagery</name> … … 11 11 <type>bing</type> 12 12 <url>http://www.bing.com/maps/</url> 13 <permission-reference-url>http://wiki.openstreetmap.org/wiki/Bing_Maps</permission-reference-url> 13 14 <max-zoom>22</max-zoom> 15 <projections/> 16 <icon>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAdVBMVEX/phX/04r/////6cX/zXz/7Mz/vFD/u0z/1I7/tT3/yXH/uEX/v1f/rCT/2pz/vlP/qRz/4a//yG3/xmn//Pj/9eb/+/T/897/t0H/wl7/sTL//vv/+O3/2Jn/7dD/+vH/9+n/3KT/tDr/9OL/8Nf/26D/ynSCVQVOAAAAkklEQVR4Xq3R1w7DIBQD0NiQne69d///E3tvBYVU6UsVPyEdCYycIOlOv5AB004Aaf6DCpLtF4yxp8tkFMGCkiEkKyGz9qCxrkxuhLIAeaijMvAwi/vMycJDuyi5/AVUaPwTPik5UdCDiWCjtd5Q70TK+KKD26M+6o+tdGxwIlmFPeyZn1yuraFKFOnt/sCz/81f+9UEaf1lPCAAAAAASUVORK5CYII=</icon> 17 <noTileHeaders>{"X-VE-Tile-Info":["no-tile"]}</noTileHeaders> 18 <metadataHeaders>{"X-VE-TILEMETA-CaptureDatesRange":"Capture Date"}</metadataHeaders> 14 19 <automatic-downloading>true</automatic-downloading> 15 20 <automatically-change-resolution>true</automatically-change-resolution> 16 21 <show-errors>true</show-errors> 17 <dx>12.34</dx> 18 <dy>-56.78</dy> 22 <offset> 23 <projection-code>EPSG:3857</projection-code> 24 <imagery-name>bing</imagery-name> 25 <name>Autogenerated</name> 26 <dx>-2.671667778864503</dx> 27 <dy>13.89643478114158</dy> 28 <center-lon>131.9107529</center-lon> 29 <center-lat>43.1329032</center-lat> 30 </offset> 19 31 </layer> 20 32 </layers> -
trunk/test/unit/org/openstreetmap/josm/io/session/SessionReaderTest.java
r11324 r12140 128 128 final AbstractTileSourceLayer<?> image = (AbstractTileSourceLayer<?>) layers.get(0); 129 129 assertEquals("Bing aerial imagery", image.getName()); 130 assertEquals( image.getDisplaySettings().getDx(), 12.34, 1e-9);131 assertEquals( image.getDisplaySettings().getDy(), -56.78, 1e-9);130 assertEquals(-2.671667778864503, image.getDisplaySettings().getDx(), 1e-9); 131 assertEquals(13.89643478114158, image.getDisplaySettings().getDy(), 1e-9); 132 132 } 133 133
Note:
See TracChangeset
for help on using the changeset viewer.