[Tilesathome] Another error

spaetz osm at sspaeth.de
Fri Sep 14 06:54:20 BST 2007


On Fri, Sep 14, 2007 at 01:10:39AM +0100, Robert Hart wrote:
> 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.

Which would be weird, because it's supposed to return if any of the downloaded files is empty, just before it calls mergeOSM:
      DownloadFile($URL, $partialFile, 0);

        if (-s $partialFile == 0)
            {
                printf("No data here...\n");
                # if loop was requested just return  or else exit with an error.
                # (to enable wrappers to better handle this situation
                # i.e. tell the server the job hasn't been done yet)
                PutRequestBackToServer($X,$Y,"NoData");
                foreach my $file(@tempfiles) { killafile($file); }
                return if ($Mode eq "loop");
                exit(1);
            }

Anyway, we should avoid calling mergeOSM if there is only 1 data file (in the case of all z12 tilesets). Thanks for the hint and patch, I'll have a look at it next week.

spaetz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20070914/c17d85ee/attachment.pgp>


More information about the Tilesathome mailing list