OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

Announcement

A fix has been applied to the login system for the forums - if you have trouble logging in please contact support@openstreetmap.org with both your forum username and your OpenStreetMap username so we can make sure your accounts are properly linked.

#1 2017-04-26 11:40:36

Shniperson
Member
Registered: 2017-04-21
Posts: 6

JOSM did not opens PBF

I have pbf file downloaded from geofabric.de.
And i want edit it, but cannot open it in JOSM (pbf plugin installed). It outputs "Open file", "Reading OSM data..." but then this window disappear and nothing happen. No layers appears, no error message, nothing at all.
Also i didn't find any JOSM logs to get some information about possible errors.

How can i open PBF file in JOSM?

Thanks in advance.

Offline

#2 2017-04-26 12:21:18

PHerison
Member
From: Oberursel, Germany
Registered: 2008-04-04
Posts: 1,240

Re: JOSM did not opens PBF

Don't know if this will help, but when you launch JOSM from the (Windows) command line (java.exe -jar josm.jar) you can see some messages...

You can also add

to get more information:

C:\Program Files (x86)\JOSM>java -jar josm-tested.jar --debug

Last edited by PHerison (2017-04-26 12:27:15)

Offline

#3 2017-04-26 12:43:01

Shniperson
Member
Registered: 2017-04-21
Posts: 6

Re: JOSM did not opens PBF

I launch it from josm.exe. Will try to run from command line...

Offline

#4 2017-04-26 12:54:03

GerdP
Member
Registered: 2015-12-18
Posts: 66

Re: JOSM did not opens PBF

If that file is large, say > 10 MB, you have to configure JOSM to use more java heap (use -Xmx=2GB or better more)  .
If it is larger than > 50 MB you probably have no chance to edit it because JOSM will be very slow.

Shniperson wrote:

I have pbf file downloaded from geofabric.de.
And i want edit it, but cannot open it in JOSM (pbf plugin installed). It outputs "Open file", "Reading OSM data..." but then this window disappear and nothing happen. No layers appears, no error message, nothing at all.
Also i didn't find any JOSM logs to get some information about possible errors.

How can i open PBF file in JOSM?

Thanks in advance.

Offline

#5 2017-04-26 14:46:33

Shniperson
Member
Registered: 2017-04-21
Posts: 6

Re: JOSM did not opens PBF

GerdP wrote:

If that file is large, say > 10 MB, you have to configure JOSM to use more java heap (use -Xmx=2GB or better more)  .
If it is larger than > 50 MB you probably have no chance to edit it because JOSM will be very slow.

Think it's the answer sad
File is very large - about 2GB. But i run it on powerfull server.
Running java without setting heap size said that limit of 14Gb memory exceeds. Now run it with -Xmx40000M but seems that it with fail to load again...

Offline

#6 2017-04-26 16:27:07

GerdP
Member
Registered: 2015-12-18
Posts: 66

Re: JOSM did not opens PBF

Shniperson wrote:
GerdP wrote:

If that file is large, say > 10 MB, you have to configure JOSM to use more java heap (use -Xmx=2GB or better more)  .
If it is larger than > 50 MB you probably have no chance to edit it because JOSM will be very slow.

Think it's the answer sad
File is very large - about 2GB. But i run it on powerfull server.
Running java without setting heap size said that limit of 14Gb memory exceeds. Now run it with -Xmx40000M but seems that it with fail to load again...

JOSM is not designed to edit such a huge file. I think even 10 MB pbf file is not worth to try, but JOSM can load it.
What do you want to edit in a 2GB extract?

Offline

#7 2017-04-27 08:10:41

Shniperson
Member
Registered: 2017-04-21
Posts: 6

Re: JOSM did not opens PBF

GerdP wrote:

JOSM is not designed to edit such a huge file. I think even 10 MB pbf file is not worth to try, but JOSM can load it.
What do you want to edit in a 2GB extract?

2GB - Russia full map.
We have shapefiles with our custom roads, and we want add our shapefiles to this pbf.
For:
- drawing map with our roads.
- using this pbf in OSRM service.

Offline

#8 2017-04-27 17:29:50

GerdP
Member
Registered: 2015-12-18
Posts: 66

Re: JOSM did not opens PBF

I don't know how to convert shape files to OSM format, but once you have that you can use osmconvert to merge the pbf file
with that.

Gerd

Offline

Board footer

Powered by FluxBB