Skip to main content

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(…….)

Metadata

Release history Release notifications | RSS feed

This release

0.5 This release

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