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.
Trending in Questions
Hello!
Suppose you are building workflow (order / task / payment) processing system with the following requirements:
Each workflow con...
New
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
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
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated!
To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead.
Sta...
New
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app?
Looking for hints regarding:
Addi...
New
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
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
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
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
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
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
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
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
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #phoenix_html
- #iex
- #graphql
- #genstage
- #ai
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #performance










First 4 of 4 Posts
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
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
geopackage shows encoding, decoding of geojson. But it seams to be possible, or does felt use another stack/programming language? Normally I usegeopandasin python, or QGIS for watching the files.Is there a blog or combined reference/resource for geodata projects?
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
Usually I load Shapefiles into PostGIS orchestrated by my Elixir app by running
shp2pgsqlusingSystem.cmdto load the data into PostgreSQL then use it from there. If I need to access the data later in Elixir I would usegeo_postgisand 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
ogr2ogrto 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.