
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 {

Hi Christian, On Fri, Apr 3, 2009 at 1:09 PM, Christian Gawron <christian.gawron@gmx.de> wrote:
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?
Sure, I'll try it out. Is is posted anywhere? Thanks, Ben

On Fri, Apr 3, 2009 at 2:09 PM, Christian Gawron <christian.gawron@gmx.de> wrote:
BTW: I wrote a little Java program to generate contour lines from the CGIAR GeoTIFFs. Is anyone interested in testing it?
I would be interested in testing... the SRTM3 data than srtm2osm uses has a big hole right where I live so SRTM3 is pretty much useless for me. -- Jeff Ollie

Hi!
I would be interested in testing... the SRTM3 data than srtm2osm uses has a big hole right where I live so SRTM3 is pretty much useless for me.
Here is some DEM data for areas that is missed in SRTM http://www.viewfinderpanoramas.org/dem3.html -- С уважением, liosha mailto:xliosha@gmail.com

0> In article <49D65ED5.9090100@gmx.de>, 0> Christian Gawron <URL:mailto:christian.gawron@gmx.de> ("CG") wrote: CG> BTW: I wrote a little Java program to generate contour lines from CG> the CGIAR GeoTIFFs. Is anyone interested in testing it? I've only just noticed this little aside. What does this program do that gdal_contour and friends does not? I'd particularly like something that has more intelligent curve fitting (bicubic, perhaps[1]), and some intelligence to deal with the joins between tiles. Some inbuilt Douglas-Puecker simplification would be nice too. [1] <URL: http://www.geovista.psu.edu/sites/geocomp99/Gc99/082/gc_082.htm >
participants (5)
-
Ben Konrath
-
Christian Gawron
-
Jeffrey Ollie
-
liosha
-
Toby Speight