Hi.
If You have decided to work with
raw.file. The first, it is necessary to divide Map into two Layers. One Layer - Water, another - the Earth. When you will have an exact border you can safely work. In this file Water - a gradient from Black to Grey, and the earth - a gradient from Grey to White.
It is important not to confuse it. The difference between Water and the Earth makes
one Grey pixel. It is difficult for finding, but it is possible...

Introduced "MQK".