[OSM-dev] java.lang.NumberFormatException: null error with osmosis 0.30.3

Karl Newman siliconfiend at gmail.com
Wed Apr 29 18:32:14 BST 2009


On Wed, Apr 29, 2009 at 9:54 AM, Maarten Deen <mdeen at xs4all.nl> wrote:

> Karl Newman wrote:
> > On Wed, Apr 29, 2009 at 6:32 AM, Maarten Deen <mdeen at xs4all.nl
> > <mailto:mdeen at xs4all.nl>> wrote:
>
> >     Sample file that I try to import is this:
> >
> >     <?xml version='1.0' standalone='no'?>
> >     <osm version='0.6' generator='xapi: OSM Extended API 2.0'
> >     mlns:xapi='http://www.informationfreeway.org/xapi/0.6'
> >     xapi:uri='/api/0.6/node[amenity=atm][bbox=3.4,50.7,7.2,53.6]'
> >     api:planetDate='200904241825' xapi:copyright='2009 OpenStreetMap
> >     contributors'
> >     xapi:instance='zappyHyper'>
> >       <node id='30839681' lat='52.6035219' lon='4.687596' user='Maarten
> >     Deen'xapi:users='florisje,Maarten Deen'
> >     timestamp='2009-03-01T11:48:12Z'>
> >         <tag k='addr:city' v='Heiloo'/>
> >         <tag k='addr:country' v='NL'/>
> >         <tag k='addr:housenumber' v='10-12'/>
> >         <tag k='addr:postcode' v='1852KX'/>
> >         <tag k='addr:street' v='Het Hoekstuk'/>
> >         <tag k='amenity' v='atm'/>
> >         <tag k='name' v='ABN AMRO'/>
> >       </node>
> >     </osm>
> >
> >     Any idea what is going wrong here? The same error pops up with 0.30.
> >
> > Looks like your node element is missing the required (for 0.6 files)
> > "version" attribute.
>
> Ok. I downloaded the node from the api and I see the difference. I got this
> from
> one of the xapi servers. Guess they're not yet fully 0.6 compliant then.
> Or is there a way of getting osmosis to disregard the fact that there is no
> version attribute?
>
> Regards,
> Maarten
>

Well, I know there's currently no way to make Osmosis ignore a missing
version attribute, but it's certainly possible to program that functionality
as an option. It could just create a synthetic version number (0?) for use
in the rest of the pipeline. This would likely prevent it from being
uploaded (without further manipulation, anyway). I'll leave it to others to
debate the wisdom of providing such an option for non-compliant files,
though.

Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090429/a84f5316/attachment.html>


More information about the dev mailing list