# ArchGDAL error after recent update

**URL:** <https://discourse.julialang.org/t/archgdal-error-after-recent-update/80987>\
**Category:** Geo\
**Created:** [May 13, 2022, 2:27am UTC](https://discourse.julialang.org/t/archgdal-error-after-recent-update/80987 "2022-05-13T02:27:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scotts](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@scotts](https://discourse.julialang.org/u/scotts)\
**Post date:** [May 13, 2022, 2:27am UTC](https://discourse.julialang.org/t/archgdal-error-after-recent-update/80987/1 "2022-05-13T02:27:54Z")

</div>

I had some very basic geocode working for plotting a tif file that has recently stopped working.

It’s very basic, from here: [https://www.acgeospatial.co.uk/julia-prt3/](https://www.acgeospatial.co.uk/julia-prt3/)

```julia
using ArchGDAL, Plots, Colors, Images, GeoData
const AG = ArchGDAL

url = "E:\\Riverina\\Riverina-Cropping2.tif"

LLS = AG.readraster(url)

gt = ArchGDAL.getgeotransform(LLS)
p = ArchGDAL.getproj(LLS)

n_rasters = (ArchGDAL.nraster(LLS))

width = ArchGDAL.width(LLS)

```

Each line runs fine until I get to the last line which produces an error:

`ERROR: cannot assign a value to variable Graphics.width from module Main`

Code worked fine previous to a recent update… Anyone have a clue why???

---

<div class="post-metadata">

**Author:** ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)\
**Post date:** [May 13, 2022, 5:24am UTC](https://discourse.julialang.org/t/archgdal-error-after-recent-update/80987/2 "2022-05-13T05:24:48Z")

</div>

I think it fundamentally comes down to the `Graphics` package exporting a function called `width`, and one of `ArchGDAL, Plots, Colors, Images, GeoData` is re-exporting this when you do `using ArchGDAL, Plots, Colors, Images, GeoData`.

Since you are already adding the namespace (`AG.x` etc.), you can try changing `using` to `import` in the first line.

---

<div class="post-metadata">

**Author:** ![Raf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raf/32/3383_2.png) [@Raf](https://discourse.julialang.org/u/Raf)\
**Post date:** [May 13, 2022, 8:03am UTC](https://discourse.julialang.org/t/archgdal-error-after-recent-update/80987/3 "2022-05-13T08:03:21Z")

</div>

Also, you cant actually update ArchGDAL using GeoData.jl. It was renamed to Rasters.jl.
