geobr icon indicating copy to clipboard operation
geobr copied to clipboard

Time for a Julia version? :)

Open juliohm opened this issue 3 years ago • 6 comments

We have developed GeoTables.jl and GADM.jl over the years to download spatial geometries for any place in the world by name. I would be nice to have a GeoBR.jl package in Julia as well. 💯

juliohm avatar Nov 03 '21 13:11 juliohm

Hi Julio. That could be a great idea. Could you please point me to these Julia packages you have created already?

rafapereirabr avatar Nov 04 '21 00:11 rafapereirabr

Here are the two packages I mentioned:

  • https://github.com/JuliaEarth/GeoTables.jl
  • https://github.com/JuliaGeo/GADM.jl

The former uses the latter and you can watch it in action in my JuliaCon 2021 talk:

https://youtu.be/75A6zyn5pIE

A GeoBR.jl would be a nice addition in the sense that it is a data set curated by IBGE specifically for Brazil boundaries, correct? I learned about the project today, didn't have time to investigate it carefully yet.

juliohm avatar Nov 04 '21 01:11 juliohm

Hi @juliohm , thanks for the links. It looks somewhat similar with Python, so assuming it's possible to read spatial data sets in geopackage.gpkg format, building a Julia version of geobr should be relatively simple. We should probably schedule a call to discuss this. Perhps @JoaoCarabetta might wanna join us.

Please mind, however, that geobr is not limited to IBGE data. We cover multiple official spatial data sets from various sources. Naturally, IBGE is the largest producer of spatial data in Brazil but we also cover data from INEP, DataSus, FUNAI, MMA etc.

Another important point you will note in our documentation. geobr does not simply store raw original data sets. One of the most important contributions of geobr is to preprocess the data for various years in order to harmonize attributes, projection and fix eventual topology issues. This is very important to make all data sets in geobr compatible and easy to manipulate for the end user

rafapereirabr avatar Nov 10 '21 14:11 rafapereirabr

That is great @rafapereirabr , let's set a call next week to discuss the most straightforward steps to get geobr working in Julia. We can read gpkg files through GDAL, and that is what GeoTables.jl does behind the scenes. If you store these datasets on a server, we can even setup a GeoBR.jl package that downloads data for specific regions of the world on demand like we did with GADM.jl.

juliohm avatar Nov 10 '21 14:11 juliohm

Hey, let me know when you are meeting, I'll try to fit it into my schedule.

But, developing a Julia package should be quite straightforward if you can read gpkg. Just copying the python package structure might solve it.

JoaoCarabetta avatar Nov 10 '21 19:11 JoaoCarabetta

How does tomorrow morning sound to you? 11am BRT? My email is on my GitHub profile, appreciate if you can send an invitation with a proposal time.

juliohm avatar Nov 11 '21 10:11 juliohm