Skip to content

Commit

Permalink
Fix projection
Browse files Browse the repository at this point in the history
  • Loading branch information
vale95-eng committed May 3, 2024
1 parent 7fd705b commit 6c4c048
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions geokube/core/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -1501,11 +1501,11 @@ def to_image(
f = self.to_regular()
# dpi = plt.rcParams['figure.dpi']
w, h = width / dpi, height / dpi

if projection is not None:
if projection == '3857':
prj = projection
if prj is not None:
if prj == '3857':
airy1830 = GeogCS(6377563.396, 6356256.909)
projection = TransverseMercator(49, -2, 400000, -100000, 0.9996012717, ellipsoid=airy1830)
prj = TransverseMercator(49, -2, 400000, -100000, 0.9996012717, ellipsoid=airy1830)

f.plot(
figsize=(w, h),
Expand All @@ -1519,7 +1519,7 @@ def to_image(
'bbox_inches': 'tight'
},
clean_image=True,
projection=projection
projection=prj
)

def to_geojson(self, target=None):
Expand Down

0 comments on commit 6c4c048

Please sign in to comment.