|
|
@@ -722,6 +722,26 @@ public class CadastreManageServiceImpl implements CadastreManageService {
|
|
|
String fieldName = feature.GetFieldDefnRef(i).GetName();
|
|
|
if (fieldNameAndTypeMap.containsKey(fieldName.toLowerCase())) {
|
|
|
String fieldType = fieldNameAndTypeMap.get(fieldName.toLowerCase());
|
|
|
+
|
|
|
+
|
|
|
+/* if ("dclxtzm".equalsIgnoreCase(fieldName)) {
|
|
|
+ map.put(fieldName, "99");
|
|
|
+ }
|
|
|
+ else if ("fwjg".equalsIgnoreCase(fieldName)) {
|
|
|
+ map.put(fieldName, null);
|
|
|
+ }
|
|
|
+ else if ("jzwgd".equalsIgnoreCase(fieldName)) {
|
|
|
+ map.put(fieldName, 1);
|
|
|
+ }
|
|
|
+ else if ("ycjzmj".equalsIgnoreCase(fieldName)) {
|
|
|
+ map.put(fieldName, 1);
|
|
|
+ }
|
|
|
+ else if ("zts".equalsIgnoreCase(fieldName)) {
|
|
|
+ map.put(fieldName, 1);
|
|
|
+ }
|
|
|
+ else if ("zydmj".equalsIgnoreCase(fieldName)) {
|
|
|
+ map.put(fieldName, null);
|
|
|
+ }*/
|
|
|
if (StringUtils.containsIgnoreCase(fieldType, "character")) {
|
|
|
map.put(fieldName, feature.GetFieldAsString(i));
|
|
|
} else if (StringUtils.containsIgnoreCase(fieldType, "integer") || StringUtils.containsIgnoreCase(fieldType, "smallint") || StringUtils.containsIgnoreCase(fieldType, "int2") || StringUtils.containsIgnoreCase(fieldType, "int4")) {
|
|
|
@@ -751,8 +771,9 @@ public class CadastreManageServiceImpl implements CadastreManageService {
|
|
|
map.put(fieldName, feature.GetFieldAsDouble(i));
|
|
|
}
|
|
|
} else if (StringUtils.containsIgnoreCase(fieldType, "bytea") || StringUtils.containsIgnoreCase(fieldType, "blob") || StringUtils.containsIgnoreCase(fieldType, "binary")) {
|
|
|
- map.put(fieldName, null);
|
|
|
- } else {
|
|
|
+ map.put(fieldName, new byte[0]);
|
|
|
+ }
|
|
|
+ else {
|
|
|
map.put(fieldName, feature.GetFieldAsString(i));
|
|
|
}
|
|
|
} else {
|
|
|
@@ -777,7 +798,6 @@ public class CadastreManageServiceImpl implements CadastreManageService {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 校验当前图层坐标系是否为:CGCS2000
|
|
|
*
|