Coder Social home page Coder Social logo

davidmerrick / exif-to-geojson Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hallahan/exif-to-geojson

0.0 2.0 0.0 201.36 MB

This takes a directory full of images and makes a GeoJSON file with all of the found GPS points.

Home Page: http://hallahan.github.io/exif-to-geojson

JavaScript 78.62% HTML 21.38%

exif-to-geojson's Introduction

Exif To GeoJSON

This takes a directory full of images and makes a GeoJSON file with all of the found GPS points.

  1. Put the images you want to create a corresponding GeoJSON file with in the img directory.
  2. node exif-to-geojson.js
  3. The output will be written to exif.geojson

Demo: http://hallahan.github.io/exif-to-geojson

After you run the script, you can see the geojson with pop-ups that link to the corresponding images in index.html.

Notes

  1. The decoder does not seem to correctly decode the MakerNote and UserComment fields in the exif object, so I just delete them so that we do not have a bunch of un-decoded bytes wasting space in the JSON.

  2. The GPSTimeStamp array is important, because this is the time stamp of the moment the phone got the actual GPS coordinate that is associated with the image. This is often not the same point in time that the picture itself was taken. This is particularly true with my phone which does not have a very reliable GPS unit.

  3. The test directory is not unit tests, however, it does create json that you can look at to see if you find reasonable results. This should be refactored to produce unit tests.

  4. The demo should be improved so that we can see multiple images where the GPS coordinates are at the same point. This is particularly a problem with images from my phone, because the GPS unit fails often and will tag many images with the same coordinates.

exif-to-geojson's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.