diff --git a/README.md b/README.md index b28d3e3..aaacc59 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,26 @@ __photo-to-kml__ creates a kml file that shows geotagged images in Google Earth. -![Images shwon in Google Earth](doc/google-earth.jpg) +![Images shown in Google Earth](doc/google-earth.jpg) ## Installation ## -`pip install simplekml` +``` +pip install simplekml +``` + +Then + +``` +git clone http://git.wrl.unsw.edu.au:3000/gis-cad/photo-to-kml.git +cd photo-to-kml +python setup.py install +``` ## Usage ## Create a kml for a folder of photos, named 'image_folder': -`python photo_to_kml.py image_folder` +``` +photo_to_kml image_folder +``` diff --git a/photo_to_kml/__init__.py b/photo_to_kml/__init__.py new file mode 100644 index 0000000..728a446 --- /dev/null +++ b/photo_to_kml/__init__.py @@ -0,0 +1 @@ +from .photo_to_kml import main diff --git a/scripts/photo_to_kml.py b/photo_to_kml/photo_to_kml.py similarity index 100% rename from scripts/photo_to_kml.py rename to photo_to_kml/photo_to_kml.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..4232726 --- /dev/null +++ b/setup.py @@ -0,0 +1,10 @@ +from setuptools import setup + +setup( + name='photo_to_kml', + version='0.1.0', + packages=['photo_to_kml'], + entry_points={'console_scripts':['photo_to_kml = photo_to_kml:main']}, + author='Dan Howe', + author_email='d.howe@wrl.unsw.edu.au', + description='Add geotagged images to a kml for viewing in Google Earth')