Index: applications/editors/josm/plugins/pdfimport/src/pdfimport/OsmBuilder.java
===================================================================
--- applications/editors/josm/plugins/pdfimport/src/pdfimport/OsmBuilder.java	(revision 23905)
+++ applications/editors/josm/plugins/pdfimport/src/pdfimport/OsmBuilder.java	(revision 23907)
@@ -31,4 +31,7 @@
 	public double maxNorth = 10000;
 
+	private final Map<String, String> stringsMap = new HashMap<String, String>();
+
+
 	public OsmBuilder()
 	{
@@ -135,6 +138,9 @@
 		if (full) {
 			keys.put("PDF_nr", "" + path.nr);
-			keys.put("PDF_layer", "" + path.layer.info.nr);
-			keys.put("PDF_closed", "" + path.isClosed());
+			keys.put("PDF_layer", this.getString("" + path.layer.info.nr));
+
+			if (path.isClosed()){
+				keys.put("PDF_closed", "yes");
+			}
 
 			if (path.layer.info.fill){
@@ -160,6 +166,17 @@
 	}
 
+
+	private String getString(String string) {
+		if (this.stringsMap.containsKey(string)) {
+			return this.stringsMap.get(string);
+		} else {
+			this.stringsMap.put(string, string);
+			return string;
+		}
+	}
+
 	private String printColor(Color col){
-		return "#" + Integer.toHexString(col.getRGB() & 0xffffff);
+		String s = "#" + Integer.toHexString(col.getRGB() & 0xffffff);
+		return getString(s);
 	}
 
