Skip to content
Browse files

updated municipalitymapper with correct (1099 vs 99) code, and added …

…Greenland as a County

to the property file
  • Loading branch information...
1 parent 5ad31b6 commit 1c817744ad378d6b5e203b68596958eed83d94b7 bbg committed Dec 3, 2012
View
6 nsp/cpr-ws/src/main/java/dk/nsi/stamdata/cpr/mapping/MunicipalityMapper.java
@@ -37,10 +37,10 @@
public String toCountyCode(String municipalityCode) {
String countyCode = municipalityToCounty.getProperty(municipalityCode);
if (countyCode == null) {
- logger.error("Unknown municipality: " + municipalityCode);
- countyCode = "99";
+ logger.warn("Unknown municipality: " + municipalityCode + " setting countyCode to 1099");
+ countyCode = "1099";
}
-
+
return countyCode;
}
View
16 nsp/cpr-ws/src/main/resources/municipalities-internal.properties
@@ -107,11 +107,13 @@
0851=1081
0820=1081
+# Grøndland
+0912=1090
+0955=1090
+0956=1090
+0957=1090
+0958=1090
+0961=1090
+
# Udenfor regioner
-0890=99
-0912=99
-0955=99
-0956=99
-0957=99
-0958=99
-0961=99
+0890=1099

0 comments on commit 1c81774

Please sign in to comment.
Something went wrong with that request. Please try again.