public DensitePopulation(FenetreTaillePixel fen) throws SQLException, IOException{


		this.fen=fen;
		tableaux=fen.getTableauTailles();
		srids=FenetreTaillePixel.getSridss();
		srids2=FenetreTaillePixel.getSridss();
		
		for(int f=0;f<srids.size();f++){
			System.out.println("sridss "+ srids.get(f));
		}

		for(int fg=0;fg<tableaux.size();fg++){
			String test34[][]=tableaux.get(fg);
			String surface=test34[fg][1];
			surfaces.add(surface);
			String nombreHab=test34[fg][2];
			nombreHabit.add(nombreHab);
			String nomCouche=test34[fg][0];
			nomCouches.add(nomCouche);
		}



		for(int ff=0;ff<nomCouches.size();ff++){
			System.out.println(ff);
			System.out.println(srids2.size());

			shapes.add(nomCouches.get(ff));
			//srids1.add(srids.get(ff));
			surfaceTotales=Double.parseDouble(surfaces.get(ff));

			this.setNombreHabitants((Double.parseDouble(nombreHabit.get(ff))));

			System.out.println("Nombre Habitants: "+this.getNombreHabitants());
			//System.out.println("surface"+surfaceTotales);

			//this.surfaceTotales=requete.getSurfaceTotale();

			this.setDensiteHabitants(surfaceTotales/this.getNombreHabitants());

			if (this.getDensiteHabitants()>0){
				DensitePopulation.setTaillePixel(Math.sqrt(this.getDensiteHabitants()));
			}
			System.out.println("Taille pixel pour: "+shapes.get(ff)+" = "+DensitePopulation.getTaillePixel());
			String taillesPixels [][] = new String [surfaces.size()][2];
			taillesPixels [ff][0]=nomCouches.get(ff);
			taillesPixels [ff][1]=Double.toString(DensitePopulation.getTaillePixel());

			System.out.println("nomCouches3333 "+nomCouches.get(ff));

			System.out.println("srids11111 "+ srids2.get(ff));

			if(!nomCouches2.contains(nomCouches.get(ff))){
				System.out.println("srids11111 "+ nomCouches.get(ff));
				System.out.println("srids11111 "+ srids2.get(ff));
				nomCouches2.add(nomCouches.get(ff));
				taillesCouches.add(Double.toString(DensitePopulation.getTaillePixel()));
				srids1.add(srids2.get(ff));
			}

			if(!taillesPixel.contains(taillesPixels)){
				taillesPixel.add(taillesPixels);
			}

			if(!shapes1.contains(shapes.get(ff))){
				shapes1.add(shapes.get(ff));
				//				srids1.add(srids.get(ff));

			}

			//System.out.println(ConnexionTaillePixel.getArrayy().size());
			

		}

		ConnexionTaillePixel.getArrayy().remove(shapes);
		ConnexionTaillePixel.getGeomms().remove(srids);
		
		System.out.println("tes "+shapes.size());
		System.out.println("tes1 "+nomCouches.size());

		for(int ff=0;ff<nomCouches.size();ff++){
			System.out.println("nomCouches "+nomCouches.get(ff));
		}

		for(int ff=0;ff<nomCouches2.size();ff++){
			System.out.println("nomCouches2 "+nomCouches2.get(ff));
			System.out.println("taillesCouches "+taillesCouches.get(ff));
			System.out.println("srids1 "+srids1.get(ff));

		}



		DensitePopulation.taillesPixel2.addAll(taillesPixel);



		//		for(int fg=0;fg<DensitePopulation.taillesPixel2.size();fg++){
		//			//for(int fg=(this.taillesPixel.size()-1);fg>=0;fg--){
		//			String test34[][]=DensitePopulation.taillesPixel2.get(fg);
		//			System.out.println("Print "+fg);
		//			String surface=test34[0][0];
		//			System.out.println("surface "+surface);
		//			//nomTaillePixel.add(surface);
		//			String taille = test34[0][1];
		//			System.out.println("nom "+taille);
		//			//lestaillesdespixel.add(taille);
		//		}
		nomCouches = new ArrayList<String>();
		shapes = new ArrayList<String>();
		srids = new ArrayList<String>();
		tableaux.removeAll(tableaux);

	}