This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

cant download .osm.pbf from geofabrik

0

i want to download from ubuntu the map of specific country. i tried to download it from http://download.geofabrik.de/ by using wget "http://download.geofabrik.de/xxxx.osm.pbf"

but i have got an error say unable to resolve host adress... so how can i download from ubuntu(linux) map?

asked 24 Oct '15, 20:47

elad159's gravatar image

elad159
367710
accept rate: 0%

edited 24 Oct '15, 22:25

meta: please use spaces between your question tags. Update: thanks!

(24 Oct '15, 20:53) aseerel4c26 ♦
1

please post the full command and the error output

(24 Oct '15, 20:54) aseerel4c26 ♦
2

are you able to view http://download.geofabrik.de/ in your browser?

(24 Oct '15, 20:57) aseerel4c26 ♦
1

@aseerecl4c yes i can view the site geofabrik , the full command is : i write in the command line

sudo wget http://download.geofabrik.de/asia/china-latest.osm.pbf

then i get this:

--2015-10-25 00:23:51-- http://www.download.geofabrik.de/asia/china-latest.osm.pbf 
Resolving www.download.geofabrik.de(www.download.geofabrik.de)... failed:Name or service not know.
wget: unable to resolve host adress 'www.download.geofabrik.de'
(24 Oct '15, 22:25) elad159

One Answer:

3

I have no clue why you have a "www" in the wget output... Maybe your ISP / country government is playing bad. Are you in China?

You could try this instead: wget 5.9.155.152/asia/china-latest.osm.pbf - I have replaced the domain by the current IP of the server.

answered 24 Oct '15, 22:34

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

2

well my problem was because of using the "www" as u said.. thnx anyway , i got a new problem if u can help me out there ill be so glad ! :)

(25 Oct '15, 21:00) elad159

Source code available on GitHub .