Skip to main content

No project description provided

Project description

# GeoLocateImage

geoimage associates an image with latitude and longitude coordinates.

most useful application of this utility is to crop images at requested latitude-longitude bounding box

nterlon,centerlat,deltalat=latdeltavalue,deltalon=londeltavalue):

from geoimage import GeoLocateImage geoimg=GeoLocateImage(urlorfile,leftlon=0,rightlon=360,toplat=90,bottomlat=-90) geoimg.image #contains the image

a useful methods are

geoimg.crop_at_llbox(leftlon,rightlon,toplat,bottomlat) geoimg.crop_at_llpoint(centerlon,centerlat,deltalatlon) or alternatively geoimg.crop_at_llpoint(centerlon,centerlat,deltalat=latdeltavalue,deltalon=londeltavalue) #import geoimage also extends PIL.Image methods and IPython.core.display.Image methods import geoimage from PIL import Image Image.geolocate(urlorfile,leftlon=0,rightlon=360,toplat=90,bottomlat=-90) Image.crop_at_llbox(…….)

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

geoimage-0.5.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

geoimage-0.5-py2.py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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