FOSS4G 2022 general tracks

krishna lodha

Hi!

I'm krishna, I'm a web GIS Developer focusing on FOSS stack. I help my clients escape the trap of paying $$$ every month for technologies, that are available for free using FOSS.
Apart from development, I also do lot of content creation at https://www.youtube.com/c/krishnalodha related to GIS


Sessions

08-25
16:45
30min
Creating GIS Rest APIS using Geodjango under 30 minutes
krishna lodha

We're living in the world of APIs. CRUD operations are base of lot of operations. Many smart frameworks such as Django, Flask, Laravel provides out of the box solutions to filter the data, which covers almost all needs to separate data based on column values.
When it comes to Geospatial data, we expect to filter data based on their location property instead of metadata. This is where things get complicated, if you are using framework that doesn't have package, library built to handle such use cases, you are likely to be dependent on either database or any external package to handle it.

Fortunately Geodjango[https://docs.djangoproject.com/en/4.0/ref/contrib/gis/] (Django's extension) allows us to create databases which understands geometry and can process it[https://docs.djangoproject.com/en/4.0/ref/contrib/gis/geoquerysets/#gis-queryset-api-reference]. It also provides support to write APIs using Rest Framework extension [https://pypi.org/project/djangorestframework-gis/] which takes this to next level allowing user to output the data in various formats, creating paginations inside geojson, create TMSTileFilters, etc.

In this talk we'll scratch the surface of this python package and see how to build basic CRUD APIs to push, pull GIS data along with filtering it to the PostgreSQL database

Use cases & applications
Room 4