
Hi, the attached patch enables the xinclude feature in the SAX parser. I found this useful to create maps with contour lines without having to merge the osm files: <?xml version='1.0' encoding='UTF-8'?> <osm version='0.5' generator='JOSM'> <xi:include href="contours.osm" xmlns:xi="http://www.w3.org/2001/XInclude"/> ... BTW: I wrote a little Java program to generate contour lines from the CGIAR GeoTIFFs. Is anyone interested in testing it? Best wishes Christian Index: src/uk/me/parabola/mkgmap/reader/osm/xml/Osm5MapDataSource.java =================================================================== --- src/uk/me/parabola/mkgmap/reader/osm/xml/Osm5MapDataSource.java (Revision 991) +++ src/uk/me/parabola/mkgmap/reader/osm/xml/Osm5MapDataSource.java (Arbeitskopie) @@ -63,6 +63,8 @@ try { InputStream is = openFile(name); SAXParserFactory parserFactory = SAXParserFactory.newInstance(); + parserFactory.setXIncludeAware(true); + parserFactory.setNamespaceAware(true); SAXParser parser = parserFactory.newSAXParser(); try {