Skip to main content

A script to select photos from a set, based on geographical location. Either via a decimal latitude/longitude point. Or a photo taken in the desired location, it will look for exif standerized gps lat- and longitude tags.

Installing

Pip

The easiest way is to use pip to download and install the script.

pip install geoselect

Get (latest) source

# clone this repo
clone https://github.com/FreekKalter/geoselect.git
cd geoselect

# initialize virtual environment (optional, but recommended)
virtualenv venv
source venv/bin/activate

# install (--editable to hack on code whithout running pip install again)
pip install --editable .

Using

There are 2 ways to specify the location to select on. LOCATION can be a “latitude,longitude” specified in decimal degrees like: “41.40338, 2.17403”. Or it can be a path to a photo with exif gps coordinates, it will then search for photos taken at the same location. It will search within a specified radius (default: 1 km).

If --path is set, geoselect will look at that location for images with common file extensions (jpg, jpeg, gif, bmp, png). This can be set to something else with the --extensions parameter. If --path is not set, paths to pictures are taken from stdinput. This way it can be used as a stream filter, like most unix/linux commandline utils. For example take the following pipeline: find /home/fkalter/photos -name '*holiday*' | geoselect --radius 10 "40.783068, -73.965350" | wc -l To count the number of pictures taken in/around central park wich have ‘holiday’ in the filename.

A (expiremental) feature uses the time a picture is taken to gues at wich location it is made. Sometimes the device used to make the picture takes a while to get a ‘gps fix’. So it might not register the gps coordinates for the first picture in a series. The -- time-based option looks for any pictures taken in a short time before or after a picture with the specified location is taken. Because it is very likely pictures taken very shortly after each ohter are taken at roughly the same location.

usage: geoselect.py [-h] [--path PATH] [--extentions EXTENTIONS] [--copy-to COPYTO] [--time-based] [--radius RADIUS]
                    [-V]
                    location

A script to select photos from a set, based on geographical location. Either via a decimal latitude/longitude point.
Or a photo taken in the desired location, it will look for exif standerized gps lat- and longitude tags.

positional arguments:
  location              location given in decimal degrees like: "40.783068, -73.965350", or a path to a photo with
                        exif gps info

optional arguments:
  -h, --help            show this help message and exit
  --path PATH           path to look for image files, if not set files will be taken from stdin
  --extentions EXTENTIONS
                        comma separated list of extension to look for in PATH
  --copy-to COPYTO      path where found photos should be copied
  --time-based          also add photos wich themselfs dont have gps information, but are taken in a short time
                        before or after one that has (in the right location)
  --radius RADIUS       radius of area (in kilometers) to select photos from
  -V, --version         show program's version number and exit

Metadata

Release files for geoselect 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geoselect 0.2.2
File Size Uploaded Provenance Actions
geoselect-0.2.2.tar.gz 5.5 kB Without provenance Details for geoselect-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for geoselect 0.2.2
File Interpreter ABI Platform Actions
geoselect-0.2.2-py2.7.egg Legacy Egg format - - Details for geoselect-0.2.2-py2.7.egg

Total release size: 15.4 kB

Release files / geoselect-0.2.2.tar.gz

Download URL geoselect-0.2.2.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fe3d55f349228a781417019b7258489df8453ef868c07e16e7c3f88621bac586
BLAKE2b-256 checksum
How to use checksums
27192f140a0bc33bcc64ee9534fc6713a9b1fd8576525b9c05aa792e3d51b319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / geoselect-0.2.2-py2.7.egg

Download URL geoselect-0.2.2-py2.7.egg
Size 9.8 kB
Tags Egg
SHA-256 checksum
How to use checksums
1ea1152de2137283fc6f2546f6c7113cbafbac8f6ca5789892c13eba00931cb8
BLAKE2b-256 checksum
How to use checksums
0bc2a10cc35a707c860881cee1300279a3e29ce41d8ed3b8dd2186b5f0731f76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for geoselect 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page