Changeset 23190 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java
- Timestamp:
- 2010-09-15T18:54:18+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java
r22387 r23190 53 53 final String cOptionListEnd = "</option>"; 54 54 final String cBBoxCommunStart = "new GeoBox("; 55 final String cBBoxCommunEnd = ")"; 55 final String cBBoxCommunEnd = ")"; 56 56 57 57 final String cInterfaceVector = "afficherCarteCommune.do"; … … 62 62 final String cImageNameStart = ">Feuille "; 63 63 final String cTAImageNameStart = "Tableau d'assemblage <strong>"; 64 64 65 65 final static long cCookieExpiration = 30 * 60 * 1000; // 30 minutes expressed in milliseconds 66 66 … … 97 97 98 98 /** 99 * 99 * 100 100 * @return true if a cookie is delivered by WMS and false is WMS is not opening a client session 101 101 * (too many clients or in maintenance) … … 141 141 cookie = null; 142 142 } 143 143 144 144 public boolean isCookieExpired() { 145 145 long now = new Date().getTime(); … … 165 165 urlConn.setRequestProperty("Cookie", this.cookie); 166 166 } 167 167 168 168 private void getInterface(WMSLayer wmsLayer) throws IOException, DuplicateLayerException { 169 169 // first attempt : search for given name without codeCommune … … 379 379 return lines; 380 380 } 381 381 382 382 private void parseFeuillesList(String input) { 383 383 listOfFeuilles.clear(); … … 402 402 } 403 403 } 404 404 405 405 private String selectMunicipalityDialog(WMSLayer wmsLayer) { 406 406 JPanel p = new JPanel(new GridBagLayout()); … … 455 455 * and store it in given wmsLayer 456 456 * In case of raster image, we also check in the same http request if the image is already georeferenced 457 * and store the result in the wmsLayer as well. 457 * and store the result in the wmsLayer as well. 458 458 * @param wmsLayer the WMSLayer where the commune data and images are stored 459 459 * @throws IOException … … 502 502 } 503 503 } 504 504 505 505 private void parseGeoreferences(WMSLayer wmsLayer, String input) { 506 506 if (input.lastIndexOf(cBBoxCommunStart) != -1) { … … 537 537 } 538 538 } 539 539 540 540 private double tryParseDouble(String str) { 541 541 try {
Note:
See TracChangeset
for help on using the changeset viewer.