[OSM-newbies] conversion script ....

Keith Ng khensthoth at gmail.com
Mon Oct 8 07:37:15 BST 2007


Yup. I just figured it out and was about to tell you about the problem when
I received your reply. Hope everything is alright now.

Regards,
Keith

On 10/8/07, Francois De Ryckel <francois.deryckel at isdbd.org> wrote:
>
> Keith Thanks so much for having generated me the file.
> The error message was because they were two times way without id just "".
>
> No it seems that everything is working fine :)
>
> When I was trying to generate the file it worked but the new file was
> empty :(
>
> Anyway, thanks so much
>
> Francois
>
>
> Keith Ng wrote:
> > Hi Francois,
> >
> > I have no programming experience and I have only basic experience with
> > cmd,
> > but I would think that it is the problem of the command line itself.
> >
> > Type in this instead (follow exactly, including the space and <>) after
> > you
> > get to C:\xml:
> >
> > perl 04to05.pl <DhakaOSM.osm >DhakaNew.osm
> >
> > You should see a file called DhakaNew.osm generated in C:\xml
> >
> > Also, be sure that the script you downloaded is a Perl Script, not a
> HTML
> > file. If need arises, go to the website just now and right click and
> save
> > the file. It should be 04to05.pl, with the icon of a black and white
> > lizard
> > (or gecko, I have no idea).
> >
> > I have generated the file for you if you do not want to play with it on
> > your
> > own though. However, when I open it with the new JOSM, an error occurs.
> I
> > have no idea what the error means, and what caused it, so you might have
> > to
> > bring it up with other people around here.
> >
> > If you are experienced with IRC, you can connect to the channel and ask
> > the
> > people there for faster response. Alternatively, ask in the official
> Talk
> > list.
> >
> > I am sorry I couldn't be of much help. However, if you still need help I
> > will be glad to guide you.
> >
> > Regards,
> > Keith
> >
> > On 10/8/07, Francois De Ryckel <francois.deryckel at isdbd.org> wrote:
> >>
> >> Hey Keith,
> >>
> >> Thanks for your mail... it was very helpful.
> >>
> >> However, I still experience some difficulties.  Here is the error
> >> message,
> >> I receive from Dos
> >> ----------------------------------------
> >> Microsoft Windows XP [Version 5.1.2600]
> >> (C) Copyright 1985-2001 Microsoft Corp.
> >>
> >> N:\>c:
> >>
> >> C:\>cd xml
> >>
> >> C:\xml>perl 04to05.pl DhakaOSM.osm DhakaNew
> >> <?xml version="1.0"?>
> >> <osm version="0.5" generator="04to05.pl">
> >> Undefined subroutine &HTML::Entities::encode_numeric called at
> 04to05.pl
> >> line 28
> >> .
> >>
> >> ---------------------------------------------------------------
> >>
> >> Thanks for your help.
> >> I'm sending youalso my osm file in case you can figure it out.
> >>
> >> Francois
> >>
> >> Keith Ng wrote:
> >> > ---------- Forwarded message ----------
> >> > From: Keith Ng <khensthoth at gmail.com>
> >> > Date: Oct 8, 2007 2:47 PM
> >> > Subject: Re: [OSM-newbies] conversion script ....
> >> > To: Francois De Ryckel <francois.deryckel at isdbd.org>
> >> >
> >> > Alright. Firstly you will need to get Perl for Windows. The easiest
> >> way
> >> to
> >> > get it is ActivePerl.
> >> >
> >> >
> >>
> http://www.activestate.com/store/download_file.aspx?binGUID=e5c71329-b7a6-4563-8199-e1483f751c4f
> >> >
> >> >
> >> > Click on the link above and you should be able to download it
> >> (hopefully).
> >> >
> >> > Next, install ActivePerl. Then, download the conversion script from
> >> the
> >> > link
> >> > below. If you need to convert data from API 0.4 to 0.5, you will need
> >> > 04to05.pl
> >> >
> >> > http://svn.openstreetmap.org/applications/utils/conv05/
> >> >
> >> > Put this script in the same directory (folder) as your osm data that
> >> you
> >> > want to convert. For example, I have a folder C:\OSM which contains
> >> all
> >> > the
> >> > OSM data and programs. I put 04to05.pl into C:\OSM, and I should have
> >> the
> >> > OSM data (.osm) I want to convert in the same folder.
> >> >
> >> > Next, click on Start, and Run. Type in cmd and a command prompt
> window
> >> > should show up. Go to the aforementioned directory by typing "cd
> >> C:\osm"
> >> > (in
> >> > my example) without the quotes.
> >> >
> >> > Cmd should now show this:
> >> > C:\osm>
> >> >
> >> > Then you type in ths following, substituting (oldfilename) with the
> >> file
> >> > name of the old 0.4 data and (newfilename) with the new file name you
> >> want
> >> > and press enter:
> >> > perl 04to05.pl <(oldfilename).osm >(newfilename).osm
> >> >
> >> > You should now see a new file (newfilename).osm in the said
> directory.
> >> Use
> >> > the newer version of JOSM to open this.
> >> >
> >> > Should you not understand any of the step, let me know. Thanks.
> >> >
> >> > On 10/8/07, Francois De Ryckel <francois.deryckel at isdbd.org> wrote:
> >> >>
> >> >> Hello Keith,
> >> >>
> >> >> Yes I'm running on Windows ...
> >> >> Thanks in advance for your help
> >> >>
> >> >> Francois
> >> >>
> >> >>
> >> >> Keith Ng wrote:
> >> >> > What Operating System are you using? That would help a lot.
> >> >> >
> >> >> > Also, here's the Perl Script.
> >> >> > http://svn.openstreetmap.org/applications/utils/conv05/
> >> >> >
> >> >> > If you are running Windows I can guide you through the process of
> >> >> running
> >> >> > it.
> >> >> >
> >> >> > On 10/8/07, Francois De Ryckel <francois.deryckel at isdbd.org>
> wrote:
> >> >> >>
> >> >> >> Hello,
> >> >> >>
> >> >> >> It is said that there is a script to convert from the 0.4 to
> >> >> 0.5format.
> >> >> >> I went here but didn't find anything I could run (or please tell
> >> how
> >> >> to
> >> >> >> do
> >> >> >> it?) I've worked a lot over the weekend and all my data are in
> the
> >> >> 0.4
> >> >> >> version of osm and there are not uploaded yet to the server - I
> >> >> really
> >> >> >> don't want to loose them :(
> >> >> >>
> >> >> >> Thanks for your help.
> >> >> >>
> >> >> >> Francois
> >> >> >>
> >> >> >>
> >> >> >> Francois De Ryckel wrote:
> >> >> >> > Hello there,
> >> >> >> >
> >> >> >> > Each time, I've tried to uplodad my OSM file to ther server,
> I'm
> >> >> >> getting
> >> >> >> > this error message:
> >> >> >> >
> >> >> >> > "Error while parsing: An error occured: 417 Unknown"
> >> >> >> >
> >> >> >> > I'm working on the Dhaka (Bangladesh) map
> >> >> >> > Does anyone has an explanation?
> >> >> >> >
> >> >> >> > Cheers :)
> >> >> >> >
> >> >> >> >
> >> >> >> > François de Ryckel
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > _______________________________________________
> >> >> >> > newbies mailing list
> >> >> >> > newbies at openstreetmap.org
> >> >> >> > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/newbies
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >> François de Ryckel
> >> >> >>
> >> >> >>
> >> >> >> _______________________________________________
> >> >> >> newbies mailing list
> >> >> >> newbies at openstreetmap.org
> >> >> >> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/newbies
> >> >> >>
> >> >> >
> >> >>
> >> >>
> >> >> François de Ryckel
> >> >>
> >> >>
> >> > _______________________________________________
> >> > newbies mailing list
> >> > newbies at openstreetmap.org
> >> > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/newbies
> >> >
> >>
> >>
> >> François de Ryckel
> >>
> >
>
>
> François de Ryckel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/newbies/attachments/20071008/c1eebb4d/attachment.html>


More information about the newbies mailing list