You are not logged in.

#1 2015-03-16 00:20:10

thexburnsx
Member
Registered: 2015-03-16
Posts: 7

need help with osmconvert

hi all i need your help when i open osmconvert.exe i write osmconvert --help and its just close i've tried some command but always close ( i need convert .osm.xml to osm.pbf )

sorry for my english smile

Offline

#2 2015-03-16 01:59:16

SomeoneElse
Member
Registered: 2010-10-13
Posts: 1,378

Re: need help with osmconvert

Where did you get it from and what OS are you using?

Offline

#3 2015-03-16 02:33:32

thexburnsx
Member
Registered: 2015-03-16
Posts: 7

Re: need help with osmconvert

hi and thanks for reply

i've download osmconvert.exe with the link available in the wiki ( http://wiki.openstreetmap.org/ )

and for my os

Windows 7 64 bits
16gb ram

Offline

#4 2015-03-16 03:46:53

nevw
Member
From: SE Queensland, Australia
Registered: 2013-04-11
Posts: 409

Re: need help with osmconvert

Offline

#5 2015-03-16 04:47:14

thexburnsx
Member
Registered: 2015-03-16
Posts: 7

Re: need help with osmconvert

yes sorry smile and i clicked on this one binary for Windows 32 bit (runs with Win 64 too)

this is strange when he open and i write command it close but i can convert when i press "A" but i need .osm.pbf file so i must use -o= for get it but with it or --help or -h the console just close

Offline

#6 2015-03-16 16:29:12

Marqqs
Member
Registered: 2011-01-01
Posts: 724

Re: need help with osmconvert

thexburnsx wrote:

this is strange when he open and i write command it close but i can convert when i press "A" but i need .osm.pbf file so i must use -o= for get it but with it or --help or -h the console just close

This isn't strange at all. :-)
osmconvert is a command-line tool.
http://en.wikipedia.org/wiki/Command-line_interface

For people who do not have enough experience with commandline-interfaces, there is "Bert". Bert is the name of an interactive text-based menu interface which will help you to use the program's basic functions.
One of these "basic functions" is the conversion between OSM file types. As far as I remember, it's function number 1. So just enter "1" after you have entered the name of the file to be converted.

Or where you looking for a way to write ".osm.pbf"? Please choose the type ".pbf", it's the same as ".osm.pbf".

Offline

#7 2015-03-16 16:50:42

thexburnsx
Member
Registered: 2015-03-16
Posts: 7

Re: need help with osmconvert

Marqqs wrote:
thexburnsx wrote:

this is strange when he open and i write command it close but i can convert when i press "A" but i need .osm.pbf file so i must use -o= for get it but with it or --help or -h the console just close

This isn't strange at all. :-)
osmconvert is a command-line tool.
http://en.wikipedia.org/wiki/Command-line_interface

For people who do not have enough experience with commandline-interfaces, there is "Bert". Bert is the name of an interactive text-based menu interface which will help you to use the program's basic functions.
One of these "basic functions" is the conversion between OSM file types. As far as I remember, it's function number 1. So just enter "1" after you have entered the name of the file to be converted.

Or where you looking for a way to write ".osm.pbf"? Please choose the type ".pbf", it's the same as ".osm.pbf".

Offline

#8 2015-03-16 16:58:05

thexburnsx
Member
Registered: 2015-03-16
Posts: 7

Re: need help with osmconvert

thexburnsx wrote:
Marqqs wrote:
thexburnsx wrote:

this is strange when he open and i write command it close but i can convert when i press "A" but i need .osm.pbf file so i must use -o= for get it but with it or --help or -h the console just close

This isn't strange at all. :-)
osmconvert is a command-line tool.
http://en.wikipedia.org/wiki/Command-line_interface

For people who do not have enough experience with commandline-interfaces, there is "Bert". Bert is the name of an interactive text-based menu interface which will help you to use the program's basic functions.
One of these "basic functions" is the conversion between OSM file types. As far as I remember, it's function number 1. So just enter "1" after you have entered the name of the file to be converted.

Or where you looking for a way to write ".osm.pbf"? Please choose the type ".pbf", it's the same as ".osm.pbf".

hi, thanks for your reply

yes i know for "bert" and its "work" i can have my file test.pbf but the software i want use ( world2xplane ) use only osm.pbf file they said use the command test.osm.xml -o=test.osm.pbf but like i said its just close the console but what i dont understand is i can user bert but not the command...  sad

Offline

#9 2015-03-16 17:07:48

Marqqs
Member
Registered: 2011-01-01
Posts: 724

Re: need help with osmconvert

thexburnsx wrote:

yes i know for "bert" and its "work" i can have my file test.pbf but the software i want use ( world2xplane ) use only osm.pbf file they said use the command test.osm.xml -o=test.osm.pbf but like i said its just close the console but what i dont understand is i can user bert but not the command...  sad

Hello again,
I am not sure if I got this right... Bert gives you a file with the name "text.pbf" but you need a file with the name "test.osm.pbf"?
Does it work if you just renamed the file accordingly?

Offline

#10 2015-03-16 17:22:03

thexburnsx
Member
Registered: 2015-03-16
Posts: 7

Re: need help with osmconvert

just test it and not working sad

pointe.osm = 10.5mo
pointe_01.osm.pbf = 426ko

and i put the file in the game for be sure i dont see modification and i dont see it so..

Offline

#11 2015-03-16 17:29:24

Marqqs
Member
Registered: 2011-01-01
Posts: 724

Re: need help with osmconvert

thexburnsx wrote:

just test it and not working sad

pointe.osm = 10.5mo
pointe_01.osm.pbf = 426ko

and i put the file in the game for be sure i dont see modification and i dont see it so..

The relation of the file sizes seem to be ok. Thus I assume the conversion to .pbf (resp. .osm.pbf) went without errors.
Maybe the game (what game is it?) does not recognize the new file...

Of course, you can try the conversion via commandline (in Windows via Windows-R key combination and entering "cmd", I am not sure), however, I guess the result will be the same... :-(

Offline

#12 2015-03-16 17:32:02

thexburnsx
Member
Registered: 2015-03-16
Posts: 7

Re: need help with osmconvert

when i open cmd do i must write osmconvert before  each command?

exemple : osmconvert pointe.osm -o=pointe.osm.pbf?

ps: game is X-Plane 10 and osm.pbf is for import my city with my modification in this game smile

Last edited by thexburnsx (2015-03-16 17:32:54)

Offline

#13 2015-03-16 18:14:32

Marqqs
Member
Registered: 2011-01-01
Posts: 724

Re: need help with osmconvert

thexburnsx wrote:

when i open cmd do i must write osmconvert before  each command?

Yes. And first you need to set the right working directory (command "cd", enter "cd /?" for help).

thexburnsx wrote:

ps: game is X-Plane 10 and osm.pbf is for import my city with my modification in this game smile

I don't know this game, but maybe someone else in this forum does and can help...?

Offline

#14 2020-05-22 12:49:06

bendoSK
New Member
Registered: 2020-05-22
Posts: 1

Re: need help with osmconvert

Special characters handling:
Using
osmconvert output.osm --csv="@id @lon @lat name"  -o=output.csv
and having special characters like &#34 in tags, example from us-latest-osm
    <way id="761486714" version="3" timestamp="2020-03-20T16:40:04Z" changeset="0">
        <tag k="name" v="&#34;Memorial Hall Center for the Arts"/>
        <tag k="screen" v="1"/>
        <tag k="wikidata" v="Q43264191"/>
    </way>
osm convert is not handling this correctly, since &#34 is used as another ", so until next &#34 occurency, everything is handled as one string.  Is it known issue?
Thanks

Offline

Board footer

Powered by FluxBB