BarChart.setPicTitle(docxDocument,"Figure "+(number+2)+" Statistical data on land use types");
BarChart.createParagraphAndInsertWord(docxDocument,"In "+zone+" region, the total area of field is "+landUses.get(0).getArea()+" hm², the building is "+landUses.get(1).getArea()+" hm², the road is "+landUses.get(2).getArea()+" hm², the water is "+landUses.get(3).getArea()+" hm², the forest is "+landUses.get(4).getArea()+" hm², the grass is "+landUses.get(5).getArea()+" hm², the soil is "+landUses.get(6).getArea()+" hm², the desert is "+landUses.get(7).getArea()+" hm², the rock is "+landUses.get(8).getArea()+" hm², and other land use types are "+landUses.get(9).getArea()+" hm².");
BarChart.createSecondLevelTopic(docxDocument,i+2+".2 Monitoring results of planting suitability evaluation index");
//2.2.1海拔、坡向、坡度
//海拔
BarChart.createSecondLevelTopic(docxDocument,i+2+".2.1. Monitoring results of terrain index");
BarChart.setPicTitle(docxDocument,"Figure "+(number+4)+" Classification statistics of altitude");
BarChart.createParagraphAndInsertWord(docxDocument,"In "+zone+" region, the area with an altitude lower than 400m is "+main.getAltitudes().get(0).getLevel1()+" hm², the area with 400-600m is "+main.getAltitudes().get(0).getLevel2()+" hm², the area with 600-1000m is "+main.getAltitudes().get(0).getLevel3()+" hm², and the area with 1000-1500m is "+main.getAltitudes().get(0).getLevel4()+" hm². The area with an altitude higher than 1500m is "+main.getAltitudes().get(0).getLevel5()+" hm².");
BarChart.setPicTitle(docxDocument,"Figure "+(number+6)+" Classification statistics of aspect");
BarChart.createParagraphAndInsertWord(docxDocument,"In "+zone+" region, the area with the north aspect is "+main.getAspects().get(0).getNorth()+" hm², the area with the northeast aspect is "+main.getAspects().get(0).getNortheast()+" hm², the area with the east aspect is "+main.getAspects().get(0).getEast()+" hm², the area with the southeast aspect is "+main.getAspects().get(0).getSoutheast()+" hm², and the area with the south aspect is "+main.getAspects().get(0).getNorth()+" hm², the area with the southwest aspect is "+main.getAspects().get(0).getSouthwest()+" hm², the area with the west aspect is "+main.getAspects().get(0).getWest()+" hm², and the area with the northwest aspect is "+main.getAspects().get(0).getNorthwest()+" hm².");
BarChart.setPicTitle(docxDocument,"Figure "+(number+8)+" Classification statistics of slope");
BarChart.createParagraphAndInsertWord(docxDocument,"In "+zone+" region, the area of slope less than 10° is "+main.getSlopes().get(0).getLevel1()+" hm2, the area of 10°-30° is "+main.getSlopes().get(0).getLevel2()+" hm2, the area of 30°-50° is "+main.getSlopes().get(0).getLevel3()+" hm2, and the area of 50°-70° is "+main.getSlopes().get(0).getLevel4()+"hm2. The area greater than 70° is "+main.getSlopes().get(0).getLevel5()+" hm2.");
//创建第二段落的标题
BarChart.createFirstLevelTopic(docxDocument,"2.Results of remote sensing monitoring of seeding success rate");
BarChart.setPicTitle(docxDocument,"Spatial distribution data of seeding success rate");
BarChart.createParagraphAndInsertWord(docxDocument,""+BarChart.changeDate(seedingSuccessRate.getImageDate())+". The total planting area in "+seedingSuccessRate.getZone()+" area was "+BarChart.getDoubleNumber((seedingSuccessRate.getSeedingSuccessArea()/seedingSuccessRate.getSeedingSuccess()))+"hm²,thevegetationsurvivalareawas"+seedingSuccessRate.getSeedingSuccessArea()+"hm²,andtheseedingsuccessratewas"+seedingSuccessRate.getSeedingSuccess()+"%.");
}
//第三段的标题
BarChart.createFirstLevelTopic(docxDocument,"3.Results of remote sensing monitoring of vegetation health");
BarChart.setPicTitle(docxDocument,"Statistical data on vegetation health");
BarChart.createParagraphAndInsertWord(docxDocument,""+BarChart.changeDate(vegetationHealth_m.getImageDate())+". Based on the monitoring results of high resolution satellite images, the area of healthy vegetation growth in "+vegetationHealth_m.getZone()+" region was "+vegetationHealth_m.getHealthy()+" hm², accounting for "+BarChart.getDoubleNumber((vegetationHealth_m.getHealthy()/vegetationHealth_m.getTotalArea())*100)+"%. The area with normal vegetation growth was "+vegetationHealth_m.getNormal()+" hm², accounting for "+BarChart.getDoubleNumber((vegetationHealth_m.getNormal()/vegetationHealth_m.getTotalArea())*100)+"%. The area of unhealthy vegetation growth was "+vegetationHealth_m.getNotHealthy()+" hm², accounting for "+BarChart.getDoubleNumber((vegetationHealth_m.getNotHealthy()/vegetationHealth_m.getTotalArea())*100)+"%.");
}
}
//第三段的第二个小标题
BarChart.createSecondLevelTopic(docxDocument,"3.2.Monitoring results of high resolution data");
BarChart.setPicTitle(docxDocument,"Statistical data on vegetation health");
BarChart.createParagraphAndInsertWord(docxDocument,""+BarChart.changeDate(vegetationHealth_h.getImageDate())+". Based on the monitoring results of high resolution satellite images, the area of healthy vegetation growth in "+vegetationHealth_h.getZone()+" region was "+vegetationHealth_h.getHealthy()+" hm², accounting for "+BarChart.getDoubleNumber((vegetationHealth_h.getHealthy()/vegetationHealth_h.getTotalArea())*100)+"%. The area with normal vegetation growth was "+vegetationHealth_h.getNormal()+" hm², accounting for "+BarChart.getDoubleNumber((vegetationHealth_h.getNormal()/vegetationHealth_h.getTotalArea())*100)+"%. The area of unhealthy vegetation growth was "+vegetationHealth_h.getNotHealthy()+" hm², accounting for "+BarChart.getDoubleNumber((vegetationHealth_h.getNotHealthy()/vegetationHealth_h.getTotalArea())*100)+"%.");
BarChart.setPicTitle(docxDocument,"Figure "+(number+10)+" Classification statistics of soil desertification factor");
BarChart.createParagraphAndInsertWord(docxDocument,"In "+zone+" region, the area of soil desertification factor less than 0.1 is "+main.getSoilDesertifications().get(0).getLevel1()+" hm2, the area of 0.1-0.3 is "+main.getSoilDesertifications().get(0).getLevel2()+"hm2, the area of 0.3-0.5 is "+main.getSoilDesertifications().get(0).getLevel3()+" hm2, and the area of 0.5-0.7 is "+main.getSoilDesertifications().get(0).getLevel4()+" hm2. The area greater than 0.7 is "+main.getSoilDesertifications().get(0).getLevel5()+" hm2.");
BarChart.setPicTitle(docxDocument,"Figure "+(number+12)+" Classification statistics of soil moisture factor");
BarChart.createParagraphAndInsertWord(docxDocument,"In "+zone+" region, the area of soil moisture factor less than 0.1 is "+main.getSoilMoistures().get(0).getLevel1()+" hm2, the area of 0.1-0.3 is "+main.getSoilMoistures().get(0).getLevel2()+" hm2, the area of 0.3-0.5 is "+main.getSoilMoistures().get(0).getLevel3()+" hm2, and the area of 0.5-0.7 is "+main.getSoilMoistures().get(0).getLevel4()+"hm2. The area greater than 0.7 is "+main.getSoilMoistures().get(0).getLevel5()+" hm2.");
BarChart.setPicTitle(docxDocument,"Figure "+(number+14)+" Classification statistics of soil salinization factor");
BarChart.createParagraphAndInsertWord(docxDocument,"In "+zone+" region, In 01 area, the area of soil salinization factor less than "+main.getSoilSalinizations().get(0).getLevel1()+" is 252 hm2, the area of 0.1-0.3 is "+main.getSoilSalinizations().get(0).getLevel2()+" hm2, the area of 0.3-0.5 is "+main.getSoilSalinizations().get(0).getLevel3()+" hm2, and the area of 0.5-0.7 is "+main.getSoilSalinizations().get(0).getLevel4()+" hm2. The area greater than 0.7 is "+main.getSoilSalinizations().get(0).getLevel5()+" hm2.");
//2.2.3水域因子、道路因子
BarChart.createSecondLevelTopic(docxDocument,"2.2.3. Monitoring results of regional index");
BarChart.setPicTitle(docxDocument,"Figure "+(number+16)+" Classification statistics of road factor");
BarChart.createParagraphAndInsertWord(docxDocument,"In "+zone+" region, the area of road factor less than 0.1 is "+main.getRoadFactors().get(0).getLevel1()+" hm2, the area of 0.1-0.3 is "+main.getRoadFactors().get(0).getLevel2()+" hm2, the area of 0.3-0.5 is "+main.getRoadFactors().get(0).getLevel3()+" hm2, and the area of 0.5-0.7 is "+main.getRoadFactors().get(0).getLevel4()+" hm2. The area greater than 0.7 is "+main.getRoadFactors().get(0).getLevel5()+"hm2.");
BarChart.setPicTitle(docxDocument,"Figure "+(number+18)+" Classification statistics of water factor");
BarChart.createParagraphAndInsertWord(docxDocument,"In "+zone+" region, the area of water factor less than 0.1 is "+main.getWaterFactors().get(0).getLevel1()+" hm2, the area of 0.1-0.3 is "+main.getWaterFactors().get(0).getLevel2()+" hm2, the area of 0.3-0.5 is "+main.getWaterFactors().get(0).getLevel3()+" hm2, and the area of 0.5-0.7 is "+main.getWaterFactors().get(0).getLevel4()+" hm2. The area greater than 0.7 is "+main.getWaterFactors().get(0).getLevel5()+" hm2.");
//2.3
BarChart.createSecondLevelTopic(docxDocument,i+2+".3. Monitoring results of planting suitability");
BarChart.setPicTitle(docxDocument,"Classification statistics of planting suitability");
BarChart.setPicTitle(docxDocument,"Figure "+(number+20)+" Classification statistics of planting suitability");
BarChart.createParagraphAndInsertWord(docxDocument,"In "+suitability.getZone()+" region, the area of very suitable region was "+suitability.getVerySuitable()+" hm², accounting for "+BarChart.getDoubleNumber((suitability.getVerySuitable()/suitability.getTotalArea())*100)+"%. The area of suitable grade was "+suitability.getSuitable()+" hm², accounting for "+BarChart.getDoubleNumber((suitability.getSuitable()/suitability.getTotalArea())*100)+"%. The area of unsuitable area was "+suitability.getNotSuitable()+" hm², accounting for "+BarChart.getDoubleNumber((suitability.getNotSuitable()/suitability.getTotalArea())*100)+"%.");
number+=20;
}
response.setCharacterEncoding("UTF-8");
response.setContentType("application/msword");
//文件名
@ -669,4 +688,137 @@ public class DateUploadController
//" hm², the vegetation survival area was "+seedingSuccessRate.getSeedingSuccessArea()+" hm², and the seeding success rate was "+seedingSuccessRate.getSeedingSuccess()+"%.");
//}
////第三段的标题
//BarChart.createFirstLevelTopic(docxDocument,"3.Results of remote sensing monitoring of vegetation health");
//BarChart.setPicTitle(docxDocument,"Statistical data on vegetation health");
//BarChart.createParagraphAndInsertWord(docxDocument,""+BarChart.changeDate(vegetationHealth_m.getImageDate())+". Based on the monitoring results of high resolution satellite images, the area of healthy vegetation growth in "+vegetationHealth_m.getZone()+" region was "+vegetationHealth_m.getHealthy()+" hm², accounting for "+BarChart.getDoubleNumber((vegetationHealth_m.getHealthy()/vegetationHealth_m.getTotalArea())*100)+"%. The area with normal vegetation growth was "+vegetationHealth_m.getNormal()+" hm², accounting for "+BarChart.getDoubleNumber((vegetationHealth_m.getNormal()/vegetationHealth_m.getTotalArea())*100)+"%. The area of unhealthy vegetation growth was "+vegetationHealth_m.getNotHealthy()+" hm², accounting for "+BarChart.getDoubleNumber((vegetationHealth_m.getNotHealthy()/vegetationHealth_m.getTotalArea())*100)+"%.");
//}
//}
////第三段的第二个小标题
//BarChart.createSecondLevelTopic(docxDocument,"3.2.Monitoring results of high resolution data");
//BarChart.setPicTitle(docxDocument,"Statistical data on vegetation health");
//BarChart.createParagraphAndInsertWord(docxDocument,""+BarChart.changeDate(vegetationHealth_h.getImageDate())+". Based on the monitoring results of high resolution satellite images, the area of healthy vegetation growth in "+vegetationHealth_h.getZone()+" region was "+vegetationHealth_h.getHealthy()+" hm², accounting for "+BarChart.getDoubleNumber((vegetationHealth_h.getHealthy()/vegetationHealth_h.getTotalArea())*100)+"%. The area with normal vegetation growth was "+vegetationHealth_h.getNormal()+" hm², accounting for "+BarChart.getDoubleNumber((vegetationHealth_h.getNormal()/vegetationHealth_h.getTotalArea())*100)+"%. The area of unhealthy vegetation growth was "+vegetationHealth_h.getNotHealthy()+" hm², accounting for "+BarChart.getDoubleNumber((vegetationHealth_h.getNotHealthy()/vegetationHealth_h.getTotalArea())*100)+"%.");
//BarChart.setPicTitle(docxDocument,"Classification statistics of planting suitability");
//BarChart.createParagraphAndInsertWord(docxDocument,"In "+suitability.getZone()+" region, the area of very suitable region was "+suitability.getVerySuitable()+" hm², accounting for "+BarChart.getDoubleNumber((suitability.getVerySuitable()/suitability.getTotalArea())*100)+"%. The area of suitable grade was "+suitability.getSuitable()+" hm², accounting for "+BarChart.getDoubleNumber((suitability.getSuitable()/suitability.getTotalArea())*100)+"%. The area of unsuitable area was "+suitability.getNotSuitable()+" hm², accounting for "+BarChart.getDoubleNumber((suitability.getNotSuitable()/suitability.getTotalArea())*100)+"%.");
//}
//response.setCharacterEncoding("UTF-8");
//response.setContentType("application/msword");
////文件名
//StringfileName="Evaluation report of planting monitoring in ITBA Nature Reserve - V2.0.docx";
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.