|  | @@ -135,7 +135,7 @@ public class PostGisUtilTest {
 | 
	
		
			
				|  |  |                  List<Map<String,Object>> list = ShapeReader.getShapeFileLeizhou(shp);
 | 
	
		
			
				|  |  |                  System.out.println("数据准备:");
 | 
	
		
			
				|  |  |                  System.out.println(list.size());
 | 
	
		
			
				|  |  | -                getInsertSqlsLeizhou(fileWriter, "leizhou_parcel_out0210", list);
 | 
	
		
			
				|  |  | +                getInsertSqlsLeizhou(fileWriter, list);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              fileWriter.flush();
 | 
	
	
		
			
				|  | @@ -146,15 +146,15 @@ public class PostGisUtilTest {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @SneakyThrows
 | 
	
		
			
				|  |  | -    public void getInsertSqlsLeizhou(FileWriter fileWriter,String typeName, List<Map<String, Object>> list){
 | 
	
		
			
				|  |  | +    public void getInsertSqlsLeizhou(FileWriter fileWriter, List<Map<String, Object>> list){
 | 
	
		
			
				|  |  |          int i=0;
 | 
	
		
			
				|  |  |          int c = 100;
 | 
	
		
			
				|  |  |          while(i < list.size()) {
 | 
	
		
			
				|  |  |              if(i % c == 0) {
 | 
	
		
			
				|  |  | -                fileWriter.append("insert into leizhou_land (id,area,simpgnflag,toc,quxian,shengdao,hupo,gdp_pop,slope,aspect,name,id_card,crop_type,area_ha,value,intensity,majority,parcel_type,geom) values");
 | 
	
		
			
				|  |  | +                fileWriter.append("insert into leizhou_land (area,simpgnflag,toc,quxian,shengdao,hupo,gdp_pop,slope,aspect,name,id_card,crop_type,value,intensity,parcel_type,district_code,town_id,geom) values");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            fileWriter.append("(");
 | 
	
		
			
				|  |  |              Map<String, Object> map = list.get(i);
 | 
	
		
			
				|  |  | -            fileWriter.append(" ('"+((Double)map.get("inpoly_fid")).intValue()+"',");
 | 
	
		
			
				|  |  |              fileWriter.append("'"+map.get("area")+"',");
 | 
	
		
			
				|  |  |              fileWriter.append("'"+map.get("simpgnflag")+"',");
 | 
	
		
			
				|  |  |              fileWriter.append("'"+map.get("toc")+"',");
 | 
	
	
		
			
				|  | @@ -167,11 +167,11 @@ public class PostGisUtilTest {
 | 
	
		
			
				|  |  |              fileWriter.append("'"+map.get("name")+"',");
 | 
	
		
			
				|  |  |              fileWriter.append("'"+map.get("id_card")+"',");
 | 
	
		
			
				|  |  |              fileWriter.append("'"+map.get("crop_type")+"',");
 | 
	
		
			
				|  |  | -            fileWriter.append("'"+map.get("area_ha")+"',");
 | 
	
		
			
				|  |  |              fileWriter.append("'"+map.get("value")+"',");
 | 
	
		
			
				|  |  |              fileWriter.append("'"+((Double)map.get("intensity")).intValue()+"',");
 | 
	
		
			
				|  |  | -            fileWriter.append("'"+map.get("majority")+"',");
 | 
	
		
			
				|  |  | -            fileWriter.append("'"+map.get("parceltype")+"',");
 | 
	
		
			
				|  |  | +            fileWriter.append("'"+Double.valueOf(map.get("parceltype").toString()).intValue()+"',");
 | 
	
		
			
				|  |  | +            fileWriter.append("'"+map.get("district_code")+"',");
 | 
	
		
			
				|  |  | +            fileWriter.append("'"+map.get("town_id")+"',");
 | 
	
		
			
				|  |  |              fileWriter.append("st_geomfromtext('");
 | 
	
		
			
				|  |  |              fileWriter.append(map.get("geom").toString());
 | 
	
		
			
				|  |  |              fileWriter.append("',4326))");
 |