Skip to main content

GeoJSON from image metadata

Project description

im2geojson

Unittests codecov

im2geojson is a python package for parsing GeoJSON from image metadata.


Installation

The recommended way to install im2geojson is via pip:

pip install im2geojson

Usage

Simply set the input_directory to the path to your image folders:

python -m im2geojson <path-to-image-folders>
  • Image folders are parsed to GeoJSON FeatureCollections

  • Images are parsed to GeoJSON Features.

  • GeoJSON files are saved to output_directory in a folder named geojson

  • The default is ./assets/geojson


Options

Save Images

--save_images or -s will save images stripped of metadata:

python -m im2geojson <path-to-image-folders> -s
  • Images are saved to output_directory in a folder named images

  • The default is ./assets/images/


Save Thumbnails

--save_thumbanails or -t will save image thumbnails:

python -m im2geojson <path-to-image-folders> -t
  • Thumbnails are saved to output_directory in a folder named images

  • The default is ./assets/images/


Output Directory

-o or --output_directory will set the output_directory:

python -m im2geojson <path-to-image-folders> -o <output_directory>

For example, to set the output_directory to ./output:

python -m im2geojson <path-to-image-folders> -o ./output

API Documentation

Take a look at the API Documentation if you would like to use im2geojson in your own code.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

im2geojson-0.1.9.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

im2geojson-0.1.9-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file im2geojson-0.1.9.tar.gz.

File metadata

  • Download URL: im2geojson-0.1.9.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for im2geojson-0.1.9.tar.gz
Algorithm Hash digest
SHA256 983a4c842b89192e9d2c50bd002fcf6ec375289ddf4f8b64f6bd9e7b28aa679f
MD5 e0510beea27e257fa61ec82cadd02a9c
BLAKE2b-256 a1ecd4113c145cf328a8c182e0b5e00b44ac6185951d737e41e2827eb20f2a30

See more details on using hashes here.

File details

Details for the file im2geojson-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: im2geojson-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for im2geojson-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1560909201fe9f37e2fb1930f0f5402fe3657c6b61836b26368a40f84a6b12cd
MD5 2a6a1ceaa9a8c856dd9b8aeea9db4132
BLAKE2b-256 6e17060b2610b47ad71f425d642273d99b0d26dd062086cae37181f1eff6c13c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page