NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello,

I have downloaded shapefiles from http://download.geofabrik.de/osm/europe/. I am after Czech and Slovak republic data, when I look into the files with any shapefiles viewer the name values have odd characters instead of diacritics. I would like to know what encoding is the underlying data in so I could transform it to Unicode or the proper character set.

Thanks for any advice.

asked 13 Jan '11, 16:26

Tomas%20Pajonk's gravatar image

Tomas Pajonk
1918817
accept rate: 0%


The shapefiles on http://download.geofabrik.de/ are not an official OSM service, and the general OSM community would not know, nor be able to influence, the process that builds them.

Having said that, however, the shape files use UTF-8 encoding like the rest of OSM does. Depending on what system you are using, you should be able to process them correctly if you add a .cpg file like so:

 echo "UTF-8" > nameofshapefile.cpg
permanent link

answered 13 Jan '11, 16:52

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

This may be a very daft question. Where can I find the official OSM service ?

(13 Jan '11, 18:15) Tomas Pajonk

There is no export of shapefiles made by Openstreetmap.org. There are other ways of solving this e.g. using PostgreSQL + PostGIS, which is as close to a standard way of reading OSM data in GIS applications as you can come.

(14 Jan '11, 00:33) emj

Thanks for this. I got confused by the sentence that geofabrik isn't an official service, thinking there may be one.

(14 Jan '11, 08:06) Tomas Pajonk

Seems like you might use http://osm.kyblsoft.cz/archiv/ for the Czech republic.

Taken from http://wiki.openstreetmap.org/wiki/Planet.osm#Downloading -> Regional extract sources.

permanent link

answered 02 Mar '15, 02:51

mkonecny's gravatar image

mkonecny
1
accept rate: 0%

Openstreetmap uses Unicode in UTF-8 encoding. The shapefiles however are not the native format of Openstreetmap and could be in some other encoding. Either check if they decode correctly using UTF-8 or check with the geofabrik guys.

permanent link

answered 13 Jan '11, 17:12

petschge's gravatar image

petschge
8.3k217398
accept rate: 21%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×8

question asked: 13 Jan '11, 16:26

question was seen: 10,053 times

last updated: 02 Mar '15, 02:51

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum