GeoTables: "UndefVarError: `load` not defined" but can load with GeoIO

Hi all,

I am new to Julia and is working on a project that uses the GeoTables packages.
However, it gave me the “UndefVarError: load not defined” when GeoTables.load(“xxx.shp”), but, if I do, GeoIO.load(“xxx.shp”), it successfully loaded.

julia> GeoTables.load(“xxx.shp”)
ERROR: UndefVarError: load not defined
[1] getproperty(x::Module, f::Symbol)
@ Base ./Base.jl:31
[2] top-level scope
@ REPL[26]:1

Does anyone have an idea why my GeoTables cannot find the “load” method?

I am using conda environment to install Julia and the following are the versions:
julia version 1.9.3
“GeoTables” => v"1.9.0"
“GeoIO” => v"1.2.0"

Why do you think GeoTables should have a load method? Are there any docs mentioning this? I don’t really know the ecosystem (@juliohm will probably chime in with a better answer), but as far as I can tell GeoTables is a package to work with geo data in a Tables.jl compatible manner, not one for reading/writing data (which is probably what GeoIO is for)?

1 Like

Thank you Nils for helping. We refactored the entire software stack recently and moved functions to their correct modules. GeoIO.jl is the module for loading and saving geotables from disk.

Please check the “Geospatial Data Science with Julia” book for more information on how the project is structured nowadays:

Chapter 3.


@Funsway can you share more details about your setup? You are using Julia just for the GeoStats.jl features?

1 Like

Hi @juliohm and @nilshg ,

Thank you for the information. I was running my ex-colleague’s code and he used the GeoTables.load() in our previous model.

I am using Julia just with the GeoTables feature for the .dbf dataset.