public Raster2pgsqlReclassification() throws IOException, SQLException, InterruptedException   { 

		System.out.println("hello3");

		
		int i=0;
		String [] locateshppgsql=null;
		locateshppgsql= new String[2];
		locateshppgsql[i++] = "locate";
		locateshppgsql[i++] = "raster2pgsql";

		ProcessBuilder launchershppgsql = new ProcessBuilder(locateshppgsql);

		launchershppgsql.redirectErrorStream(true);

		Process pshppgsql = launchershppgsql.start(); // And launch a new process

		BufferedReader outputshppgsql = new BufferedReader(new InputStreamReader(pshppgsql.getInputStream()));


		String lineshppgsql;
		String linex="";
		while ((lineshppgsql=outputshppgsql.readLine()) != null){
			shppgsql.add(lineshppgsql);
		}

		for(String x: shppgsql){
			Pattern p1 = Pattern.compile("/");
			String [] split = p1.split(x);

			int length = split.length;


			String dernier = split[length-1];

			String detest=("raster2pgsql");
			if(dernier.equals(detest)){

				linex=x;
			}


		}



		//		System.out.println(nomTables);
		//		System.out.println(projections);
		//		System.out.println(nomgeoms);
		//		
		//		for (String e:pathShape){
		//			for (String f:nomTable){
		//				for (String h:nomGeom){
		//					for (String j:projection){

		//infoshppgsqll.setVisible(true);

		


		//for (String f:nameSQL){

		for(int j=0;j<FenetreReclassificationParametresClasses.getNomCouches().size();j++){


			for (i=0;i<8;i++){		 

				shp2pgsql = new String[8];
				shp2pgsql[i++] = linex;
				shp2pgsql[i++] = "-s";
				shp2pgsql[i++] = ConnexionBaseDonnees.getProjection();
				shp2pgsql[i++] = "-d";
				shp2pgsql[i++] = "-f";
				shp2pgsql[i++] = "rast";
				shp2pgsql[i++] = "./"+FenetreReclassificationParametresClasses.getNomCouches().get(j)+".tif";
				shp2pgsql[i++] = FenetreReclassificationParametresClasses.getNomCouches().get(j)+"_reclassifie";

			}


			for (i=0;i<8;i++){	
				System.out.print(shp2pgsql[i]+" ");

			}
			System.out.println(""); 
			shptoo.add(shp2pgsql);
		}


		for (int ai=0;ai<shptoo.size();ai++){
			System.out.println("bijour");

			ProcessBuilder launcherShp2pgsql = new ProcessBuilder(shptoo.get(ai));
			//ProcessBuilder launcherShp2pgsql2 = new ProcessBuilder()


			launcherShp2pgsql.redirectErrorStream(true);

			Process pShp2Pgsql = launcherShp2pgsql.start(); // And launch a new process
		

			
			BufferedReader outputShp2pgsql = new BufferedReader(new InputStreamReader(pShp2Pgsql.getInputStream()));

			BufferedWriter varName = new BufferedWriter(new FileWriter(this.getRepertoireSQL()+"/"+FenetreReclassificationParametresClasses.getNomCouches().get(ai)+"_reclassifie.sql"));

			String lineShp2pgsql = outputShp2pgsql.readLine();
			while ((lineShp2pgsql = outputShp2pgsql.readLine())!= null){
				varName.write(lineShp2pgsql);
				varName.newLine();
				//System.out.println("mdr");

			//	System.out.println(lineShp2pgsql);
			}

			varName.close();
			System.out.println("testSQL");

		}
		try {
			new InsertSQLReclassification(this);
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
	}