sehHeiden

sehHeiden

GeoData in Elixir?

I had a search whether Elixir is able to work with geodata? I currently think, it does not work.

I think mainly about three topics:

  • DB: spartiallite for sqlite, postgis for postgresql
  • vector data: as shape, geopackage, geojson
  • raster data: as geotiff

Perhaps also interesting is whether someone is using web services as wfs, or wms, etc.

Regards.

First 4 of 4 Posts Switch mode

LostKobrakai

LostKobrakai

There’s the geo and geo_postgis libraries, which cover many of the things you mentioned. They were recently taken over by the team behind felt, which I guess should be a great showcase for what you can do with elixir and geodata. Never heared of spartiallite before though. Not sure if there’s existing tooling around that.

sehHeiden

sehHeiden OP

Okay, geo seams to be able to decode. The felt website also shows, the usecase of working with shape files.

But I haven’t found the the function to open shape files. The geo package shows encoding, decoding of geojson. But it seams to be possible, or does felt use another stack/programming language? Normally I use geopandas in python, or QGIS for watching the files.
Is there a blog or combined reference/resource for geodata projects?

davidwebster48

davidwebster48

I have successfully read some shape files using ExShape. It doesn’t work for all shapefiles. For shapefiles where it doesn’t work, I use mapshaper.org to convert the shapefile to geojson, then parse it with Geo.JSON

tme_317

tme_317

Usually I load Shapefiles into PostGIS orchestrated by my Elixir app by running shp2pgsql using System.cmd to load the data into PostgreSQL then use it from there. If I need to access the data later in Elixir I would use geo_postgis and Ecto. Or you can use QGIS or hook up a wms/wfs/tile server directly to PostGIS… PostGIS in Action, 3rd ed is a great book on those topics.

Or if you don’t want to store the data in PostGIS you can use ogr2ogr to convert your Shapefiles into GeoJSON then load into Elixir. Or use it to convert to dozens of other formats you mentioned such as Spatialite, GeoPackage, etc. If dealing with rasters I would use the GDAL tools.

— All posts loaded —

Where Next?

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
silverdr
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated! To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead. Sta...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
michallepicki
I am using Oban and occasionally, shortly after a deployment, a handful of jobs can fail because of dependency on other parts of the syst...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New

We're in Beta

About us Mission Statement