Giter Site home page Giter Site logo

samthomson / picmap Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 3.26 MB

analyses a group of pictures and extracts their latitude/longitude if set in exif data. It then renders all images on a world map as an image, saving that output as a picture file.

License: MIT License

Python 97.14% Dockerfile 1.69% Shell 1.17%
python image-analysis sql geovisualization

picmap's Introduction

picmap

picmap recursively scans a seed directory and builds up an index of files, noting their latitude/longitude exif tags if set. It then renders a map with a marker for each picture it has a location for.

Note: files must be geotagged (via exif data) for this program to work as expected.

notes

Requires docker and docker-compose.

Makes use of:

  • python 2
  • pil
  • mapnik
  • simplekml

picmap

running

build the image: docker-compose build picmap

replace /home/sam/Dropbox/folder-to-map-into-picmap in docker-compose.yml to a folder on your machine that will map to the seed folder within the container. This should contain the geotagged pictures you want rendered on a map. Pictures can be in nested folders.

run the script: docker-compose run picmap bash "picmap/run.sh"

it will then generate a map here: ./out/GPS_tracking_points.png.

picmap's People

Contributors

samthomson avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

peytondodd

picmap's Issues

run time error:ogrplugin

i get error this sam :
Traceback (most recent call last):
File "./picmap/src/picmap.py", line 131, in
layer.datasource = mapnik.Ogr(file="/picmap/out/kml_geo.kml", layer_by_index=0)
File "/usr/local/lib/python2.7/site-packages/mapnik/init.py", line 589, in Ogr
return CreateDatasource(keywords)
RuntimeError: OGR Plugin: only 0 layer(s) exist, cannot find layer by index '0'

unable to open database

hy thanks for this dockerfile,im ready tested but when run (docker-compose run picmap bash "picmap/run.sh")
i get error
Traceback (most recent call last):
File "./picmap/src/setup.py", line 9, in
db = sqlite3.connect('/picmap/out/files_database')
sqlite3.OperationalError: unable to open database file

picmap :)
Traceback (most recent call last):
File "./picmap/src/picmap.py", line 60, in
db = sqlite3.connect('/picmap/out/files_database')
sqlite3.OperationalError: unable to open database file

can you teach me where im wrong ?

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.