techmatters / terraso-backend

A Django project that powers the backend of Terraso platform.
GNU Affero General Public License v3.0
21 stars 4 forks source link

Use GeoDjango for storing geographic data #791

Open david-code opened 1 year ago

david-code commented 1 year ago

Description

We currently store information about Site as two separate latitude/longitude columns. It would be better to store the information using the GeoDjango PointField type. Because we don't currently use GeoDjango, it would be good to follow any parts of the GeoDjango Tutorial that are necessary for setting up the plugin. (We already include postgis in our database, so that part is not necessary).

For the purpose of doing only one thing at a time, the GraphQL Site Node endpoints should continue serving latitude, longitude fields on the Site so we do not have to update the front end (we might want to change this later).

Tasks

shrouxm commented 8 months ago

i'm removing the lpks label/project and backlogging this as there's not much immediate benefit and there might be different ways of achieving future potential benefits of doing this. but there's no downside besides the work to make it happen and it comes with minor benefits so i won't close it