Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have geotagged photographs and I would like to place a watermark of the photos location on the front for easy reference as well as creating a shapefile from the coordinates. Does anyone know of any open source software which could do this or a python or arcpy script? This link is an example of what Iam trying to acheive

Thanks.

share|improve this question
add comment

1 Answer

you can use python for getting EXIF info:

from PIL import Image
from PIL.ExifTags import TAGS
from pprint import pprint

def getexif(im):
    res = {}
    try:
       img = Image.open(im)
       info = img._getexif()
       for tag, val in info.items():
           dec = TAGS.get(tag, tag)
           res[dec] = val

    except IOError:
       print im
    return res
    pprint res 

then use python ImageDraw module for drawing text or anything.

import ImageFont, ImageDraw

def drawtext(im):
   op = ImageDraw.Draw(im)
   fnt = ImageFont.truetype("tahoma.ttf", 12)
   op.text((5, 5), "YourText", font=fnt)

i hope it helps you...

share|improve this answer
    
Many Thanks Aragon, I'll try it out. –  TsvGis May 20 '13 at 7:37
add comment

Your Answer

 
discard

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.