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

I was recently looking at the Indian state of Arunachal Pradesh, and noticed that many rivers had been provided with Chinese names. Soon I found Villages and lakes with Chinese names too.

This state has been administered by India, since India's independence, but is claimed by China, as part of Tibet, and therefore part of China. I suspect that this claim is related to the fact that some Chinese names have ended up on objects here.

I have been working on moving Chinese names to the name:zh tag, but it's hard to find everything. I would like to be able to construct a overpass query that only returned objects that have name tags with characters in unicode's Chinese range (or the CJK range, as this would be accurate enough).

This is way over my head, as I know next to nothing about overpass queries or character encoding. Can someone lend a hand?

asked 12 Jul '17, 08:32

keithonearth's gravatar image

accept rate: 13%

edited 13 Jul '17, 08:19

I don't see anything like that in the Overpass documentation. Could you just download objects with name tags and do the analysis yourself offline?

(12 Jul '17, 15:16) neuhausr

Try to download all names, then sort them. This should lead to all Chinese names being next to each other. Maybe you can use the CSV output to generate a list with name,type,OSM ID or something similar.

(12 Jul '17, 15:36) scai ♦

I guess you could find some of them with a regular expression that tests for some common characters in names of villages.

(12 Jul '17, 16:59) escada

One of the Overpass-API developers runs a server with prototype support for ICU character ranges in regex:

This makes the query straightforward:

permanent link

answered 12 Jul '17, 18:00

maxerickson's gravatar image

accept rate: 32%

Osmose-QA have check for this, look at:

The check matchs the language, or the default for the country for "name" tag, with the content.

permanent link

answered 14 Jul '17, 18:53

frodrigo's gravatar image

accept rate: 13%

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 12 Jul '17, 08:32

question was seen: 2,810 times

last updated: 14 Jul '17, 18:53

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