[Tilesathome] Another error
Robert Hart
bathterror at gmail.com
Fri Sep 14 01:10:39 BST 2007
On 12/09/2007, Frederik Ramm <frederik at remote.org> wrote:
> Hi,
>
> > [#13 0% jobinit] Doing tileset 2556,2026 (area around
> > 1.889302,44.692383)
> > [#13 0% default] Frolloizing (part I) ...... ERROR
> > The following command produced an error message:
> > nice "xmlstarlet" tr frollo1.xsl data-5574.osm > "temp-5574.osm"
> > Debug output follows:
> > | data-5574.osm:1: parser error : Extra content at the end of the
> > document
> > | <osm version='0.4'></osm></osm>
> > | ^
> > | unable to parse data-5574.osm
Looks like the mergeOsm function fails if either of the files is empty.
Something like:
@@ -1089,7 +1089,8 @@
{
if ($copy)
{
- last if (/^\s*<\/osm>/);
+ print "<osm>" if (/^\s*<osm[^>]*><\/osm>/);
+ last if (/<\/osm>/);
if (/^\s*<(node|segment|way|relation) id="(\d+)".*(.)>/)
{
my ($what, $id, $slash) = ($1, $2, $3);
--
--
Robert Hart
More information about the Tilesathome
mailing list