Skip to content
Prev 12777 / 29559 Next

import a jpg/etc. map into R?

On Tue, Sep 13, 2011 at 11:33 AM, Malcolm Fairbrother
<m.fairbrother at bristol.ac.uk> wrote:
Straightforward? No!
Edge-finding is hard - the 1492 map has rivers and text and things to
trap you. You'd have to mask the colours and then do some clever
erosion thing that might take out all the black. Still leaves you with
a raster image though, which you then have to vectorise...
I've just used Quantum GIS (open-source GIS package) to warp the
image and register it to a lat-long map data file.

 QGIS has a georeferencer plugin - you load the image and then click
on the points with known lat-long (you can use your graticule
intersections, or well-known features). Then tell it to warp and
assign coordinates.

 Again this gives you a georeferenced _raster_ which might be no good
to you, but at least then you can put known geographic points on top
of it.

 If you really want a vector shapefile of fairly simple boundaries, it
might be quicker to digitise it using QGIS - you can georeference the
raster and click over it to create the polygons. However it would be
very very useful to know the original projection - for the 1492 map my
money is on some kind of Lambert conical..

Barry