You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Pages: 1
#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: Rhein-Main
- Registered: 2008-04-04
- Posts: 1,770
Re: JOSM did not opens PBF
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: 1,972
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.
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
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 ![]()
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: 1,972
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
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
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: 1,972
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
Pages: 1