Thursday, May 28, 2009
Mapping EXIF Images With GPS Info
Was tasked to load an EXIF image with GPS info onto a map using the Flex API for AGS. So I first looked around for existing AS3 libraries and found ExifInfo. Downloaded it and tried it, but somehow it failed loading some EXIF images. Then I remembered a JavaScript library that a colleague pointed it out to me. So I ported the code to AS3 (optimization will come later) and here is the result. I used picasa to load some images and geo-tagged them using Google Earth (that is from the Tools menu BTW) and it worked pretty well. I borrowed some ideas and code from the author of ExifInfo and made my own EXIF mxml enabled class. Like usual here is the source code. BTW - There is a TextInput field at the bottom of the application, enter the url of your image (make sure that you have a crossdomain.xml at the base of your url) and if the image has EXIF GPS info, the map will display it. Try "assets/sample1.jpg" and hit enter.
Subscribe to:
Post Comments (Atom)

3 comments:
Hey,
great sample.
We've taken mapping georeferenced photographs to the next level.
Check out http://photomapperserver.alta4gis.de/ for a demo. Use the guest account and upload your own pictures.
It's all based on ArcGIS Server 9.3.1 and the FLEX API. However we made some heavy adjustments like server side clustering, implemented user authentification and are currently working on roles and organizing photos in albums.
Ole
This is _very_ cool - glad to see how u put all these technologies together. Stay tuned more to come :-)
oh.. cool. I didn't realize what this was doing until looking at the exif library site. it's reading the file tags off the jpg.
Post a Comment