Changeset 19078 in osm
- Timestamp:
- 2009-12-12T22:17:40+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreGrabber.java
r18544 r19078 46 46 private URL getURLRaster(WMSLayer wmsLayer, EastNorth lambertMin, EastNorth lambertMax) throws MalformedURLException { 47 47 // GET /scpc/wms?version=1.1&request=GetMap&layers=CDIF:PMC@QH4480001701&format=image/png&bbox=-1186,0,13555,8830&width=576&height=345&exception=application/vnd.ogc.se_inimage&styles= HTTP/1.1 48 final int cRasterX = 1000; // keep width constant and adjust width to original image proportions48 final int cRasterX = 800; // keep width constant and adjust width to original image proportions 49 49 String str = new String(wmsInterface.baseURL+"/scpc/wms?version=1.1&request=GetMap"); 50 50 str += "&layers=CDIF:PMC@"; … … 73 73 str += lambertMax.east() + ","; 74 74 str += lambertMax.north(); 75 //str += "&width=800&height=600"; // maximum allowed by wms server76 str += "&width=1000&height=800"; // maximum allowed by wms server 75 str += "&width=800&height=600"; // maximum allowed by wms server 76 //str += "&width=1000&height=800"; // maximum allowed by wms server 77 77 //str += "&exception=application/vnd.ogc.se_inimage"; // used by normal client but not required 78 78 str += "&styles=LS3_90,LS2_90,LS1_90,PARCELLE_90,NUMERO_90,PT3_90,PT2_90,PT1_90,LIEUDIT_90"; -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java
r18838 r19078 92 92 try { 93 93 // first, get the cookie from Cadastre to allow next downloads 94 searchFormURL = new URL(baseURL + "/scpc/ rechercherPlan.do");94 searchFormURL = new URL(baseURL + "/scpc/accueil.do"); 95 95 urlConn = (HttpURLConnection)searchFormURL.openConnection(); 96 96 urlConn.setRequestMethod("GET"); … … 231 231 content += "&codeDepartement="; 232 232 content += "&nbResultatParPage=10"; 233 content += "&x=0&y=0"; 234 searchFormURL = new URL(baseURL + "/scpc/rechercherPlan.do"); 233 235 urlConn = (HttpURLConnection)searchFormURL.openConnection(); 234 236 urlConn.setRequestMethod("POST"); -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
r18838 r19078 87 87 * - removed autosourcing of empty new nodes 88 88 * 1.6 28-Nov-2009 - Fix minor issues if Grab is called without layer (possible since projection rework) 89 * 1.7 12-Dec-2009 - Change URL's changes for cookie and downgrade imgs resolution due to WMS changes 89 90 */ 90 91 public class CadastrePlugin extends Plugin { 91 static String VERSION = "1. 6";92 static String VERSION = "1.7"; 92 93 93 94 static JMenu cadastreJMenu; -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java
r18544 r19078 172 172 cadastrewms.add(new JSeparator(SwingConstants.HORIZONTAL), GBC.eol().fill(GBC.HORIZONTAL)); 173 173 174 // for raster images (not vectorized), image grab divider (from 1 to 1 0)174 // for raster images (not vectorized), image grab divider (from 1 to 12) 175 175 String savedRasterDivider = Main.pref.get("cadastrewms.rasterDivider", DEFAULT_RASTER_DIVIDER); 176 176 JLabel jLabelRasterDivider = new JLabel(tr("Raster images grab multiplier:")); 177 177 rasterDivider.setText(savedRasterDivider); 178 rasterDivider.setToolTipText("Raster image grab division, from 1 to 1 0; 10is very high definition");178 rasterDivider.setToolTipText("Raster image grab division, from 1 to 12; 12 is very high definition"); 179 179 cadastrewms.add(jLabelRasterDivider, GBC.std().insets(0, 5, 10, 0)); 180 180 cadastrewms.add(rasterDivider, GBC.eol().fill(GBC.HORIZONTAL).insets(5, 5, 200, 5)); … … 248 248 try { 249 249 int i = Integer.parseInt(rasterDivider.getText()); 250 if (i > 0 && i < 1 1)250 if (i > 0 && i < 13) 251 251 Main.pref.put("cadastrewms.rasterDivider", String.valueOf(i)); 252 252 } catch (NumberFormatException e) { // ignore the last input -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/SimplifyWay.java
r18920 r19078 9 9 import java.util.LinkedList; 10 10 import java.util.List; 11 import java.util.Set;12 11 13 12 import org.openstreetmap.josm.Main;
Note:
See TracChangeset
for help on using the changeset viewer.