Changeset 29854 in osm for applications/editors/josm/plugins/cadastre-fr/src
- Timestamp:
- 2013-08-21T03:47:16+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGBuilding.java
r28961 r29854 183 183 // flip the image (svg using a reversed Y coordinate system) 184 184 double pivot = viewBox.min.getY() + (viewBox.max.getY() - viewBox.min.getY()) / 2; 185 for (EastNorth en : eastNorth) { 186 en.setLocation(en.east(), 2 * pivot - en.north()); 185 for (int i = 0; i < eastNorth.size(); i++) { 186 EastNorth en = eastNorth.get(i); 187 eastNorth.set(i, new EastNorth(en.east(), 2 * pivot - en.north())); 187 188 } 188 189 return; … … 254 255 svg += line; 255 256 } 257 br.close(); 256 258 bos.close(); 257 259 } catch (IOException e) { -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGTask.java
r28961 r29854 155 155 // flip the image (svg using a reversed Y coordinate system) 156 156 double pivot = viewBox.min.getY() + (viewBox.max.getY() - viewBox.min.getY()) / 2; 157 for (EastNorth en : eastNorth) { 158 en.setLocation(en.east(), 2 * pivot - en.north()); 157 for (int i = 0; i < eastNorth.size(); i++) { 158 EastNorth en = eastNorth.get(i); 159 eastNorth.set(i, new EastNorth(en.east(), 2 * pivot - en.north())); 159 160 } 160 161 return Math.abs(minX - viewBox.min.getX())+Math.abs(maxX - viewBox.max.getX()) … … 208 209 svg += line; 209 210 } 211 br.close(); 210 212 bos.close(); 211 213 } catch (IOException e) {
Note:
See TracChangeset
for help on using the changeset viewer.