zhongrj
2024-11-11 774e064befe434f974ae5e9700bd4c2913868fd4
src/main/java/org/springblade/common/utils/ShapeFileUtil.java
@@ -305,10 +305,16 @@
               if (json.getJSONObject("properties").get("Name")!= null) {
                  shpDTO.put("name",json.getJSONObject("properties").getString("Name"));
               }
               if (json.getJSONObject("properties").get("TYPE")!= null) {
                  shpDTO.put("name",json.getJSONObject("properties").getString("TYPE"));
               }
               // 所属公司名称
               if (json.getJSONObject("properties").get("name_1")!= null) {
                  shpDTO.put("firmName",json.getJSONObject("properties").getString("name_1"));
               }
               if (json.getJSONObject("properties").get("QYMC")!= null) {
                  shpDTO.put("firmName",json.getJSONObject("properties").getString("QYMC"));
               }
               dtoList.add(shpDTO);
            } catch (NumberFormatException e) {
               System.err.println("处理单个特征时发生错误:" + e.getMessage());