Ignore:
Timestamp:
2010-03-02T15:15:29+01:00 (17 years ago)
Author:
pieren
Message:

layer selection configurable for vectorized images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreGrabber.java

    r20240 r20247  
    1919
    2020public class CadastreGrabber {
    21 
    22     public final static double epsilon = 1e-11;
    2321
    2422    private CadastreInterface wmsInterface = new CadastreInterface();
     
    6260    private URL getURLVector(EastNorth lambertMin, EastNorth lambertMax) throws MalformedURLException {
    6361        String str = new String(wmsInterface.baseURL+"/scpc/wms?version=1.1&request=GetMap");
    64         str += "&layers=CDIF:LS3,CDIF:LS2,CDIF:LS1,CDIF:PARCELLE,CDIF:NUMERO";
    65         str += ",CDIF:PT3,CDIF:PT2,CDIF:PT1,CDIF:LIEUDIT";
    66         str += ",CDIF:SUBSECTION";
    67         str += ",CDIF:SECTION";
    68         str += ",CDIF:COMMUNE";
     62        str += "&layers="+CadastrePlugin.grabLayers;
    6963        str += "&format=image/png";
    7064        //str += "&format=image/jpeg";
     
    7569        str += "&width="+CadastrePlugin.imageWidth+"&height="+CadastrePlugin.imageHeight;
    7670        //str += "&exception=application/vnd.ogc.se_inimage"; // used by normal client but not required
    77         str += "&styles=LS3_90,LS2_90,LS1_90,PARCELLE_90,NUMERO_90,PT3_90,PT2_90,PT1_90,LIEUDIT_90";
    78         str += ",SUBSECTION_90";
    79         str += ",SECTION_90";
    80         str += ",COMMUNE_90";
     71        str += "&styles="+CadastrePlugin.grabStyles;
    8172        System.out.println("URL="+str);
    8273        return new URL(str.replace(" ", "%20"));
Note: See TracChangeset for help on using the changeset viewer.