Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the best way of converting a gif of a map into a vector format, such as a shapefile? enter image description here

The only relevant parts that I am interested in are the outline of the island so I realize some manual work will be necessary where it is shaded orange; is there a way to handle the rest?

Regarding copyright, it's from the 1980s and it's being used for academic research.

share|improve this question
Here's a good resource for island data collection: – Kirk Kuykendall Jan 28 '11 at 15:33
up vote 21 down vote accepted

GRASS GIS has a tool to convert raster lines to vector. The procedure is:

First open the map in an image editor (GIMP), select by colors with some tolerance and select the black color. Invert selection and delete non-black stuff. Save as Tiff WITH NO COMPRESSION.

Then in GRASS: - import raster
r.thin - Thins non-zero cells that denote linear features in a raster map. - Converts a raster map into a vector map layer.

You will have problem with the texts and the grid. Some cleaning is essential for a good result.

As an example, here is a real screenshot of vector output of your image after the procedure in GRASS: enter image description here

share|improve this answer
example image is missing – matt wilkie Jun 13 '11 at 19:44
This tutorial of mine for Photoshop users might come in useful for preparing the image:… – Mr_Chimp Aug 24 '11 at 8:44

Georeference the image and capture by hand. This is by far the best way as it is less prone to error.

share|improve this answer

I haven't used it, but you may want to try the gdal_polygonize script that comes with GDAL

share|improve this answer

If you have ArcGIS you could use the ArcScan extension if you have the license for it.

share|improve this answer
It depends on the imagery or raster itself, it can go really slow..if it is a small one it should be able to convert quick as long as if you have a powerful computer. – PROBERT Aug 24 '11 at 1:46

Not sure if this is the one you were looking for. Create Raster/Image Index(Raster footprint)

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

You just can open them in Google Earth and digitize them. And save it as KML file. Done!

KML file is a good vector format supported by most GIS software.

share|improve this answer
Hi Zearth - what do you mean 'digitize' them? Can google earth convert an image into a vector? – djq Aug 24 '11 at 13:02
Hi back, celemius. Definitely. Well, I'm not a GIS expert but what I can tell you about digitize is you can upload image above and put coordinates on the map. (I believe that is Singapore map, right?) And figuratively, you can save them as KML or KMZ (compressed KML) files. Click this link: – zearth Aug 26 '11 at 2:22
I understand the principle - I don't believe google earth can convert an image (or raster) into a vector though. – djq Aug 26 '11 at 3:27
See this tutorial: Maybe can ease your work. Good luck! – zearth Oct 6 '11 at 4:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.