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.2.1.tar.gz (13.9 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.2.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: im2geojson-0.2.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for im2geojson-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7e411701be1157797b0c5ef163c61608caff3e4b34f88239aef98c943be0f51d
MD5 7de59752a5f44c32d9a7da4abb1cdb1e
BLAKE2b-256 f3a879cf12d229df919e0f6ed7ac9dcadf5239256ea06575f2aee301fcedf0da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: im2geojson-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for im2geojson-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c73b6e3c0f4afd5e5812a25501af9dd864990e0f0654057adf53f83c553a75b
MD5 717c074bed9e82bfa23e38111ac02184
BLAKE2b-256 3ad1915e49a050e3c240414d05ba42ada066918066fd2f80ca50c0d3c9c14d23

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