| | |
| | | } |
| | | public static void semToCityJson() throws Exception { |
| | | //sem转cityjson |
| | | SEM sem2 = new SEM("D:\\城市内涝\\sem\\tongzhou\\tongzhou\\landuse.sem"); |
| | | sem2.writeToCityJSON("D:\\城市内涝\\sem\\tongzhou\\tongzhou\\landuse\\landuse.json"); |
| | | SEM sem2 = new SEM("D:\\uwsolver\\tongzhou\\raingage.sem"); |
| | | sem2.writeToCityJSON("D:\\uwsolver\\tongzhou\\raingage.json"); |
| | | } |
| | | } |
| | |
| | | int rowIndex = 0; |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm"); |
| | | for (StationRainVo record : stationRainVos) { |
| | | long value = sdf.parse(record.getDatetime()).getTime(); |
| | | long value = sdf.parse(record.getDatetime()).getTime()/1000; |
| | | zarrArray.write(value); |
| | | rowIndex++; |
| | | } |