Opened 4 years ago

Closed 4 years ago

#32071 closed Cleanup/optimization (wontfix)

Django Point requires GDAL on Windows

Reported by: Jef D Owned by: nobody
Component: GIS Version: 3.1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Jef D)

I'm currently trying to include a leaflet map in Django. For this I'm using the Point class included in Django that requires the GDAL library in turn.

So far this process (documented [here](https://docs.djangoproject.com/en/3.1/ref/contrib/gis/install/#windows)) has been quite painful. Installing the GDAL library requires installing it via OSgeo4W, setting up the paths and installing some additional libraries. However, small differences in versions or multiple versions installed all cause troubles (currently I'm still facing a "OSError: [WinError 127] The specified procedure could not be found" error; OSgeo4W only supports GDAL 3.0.4 while there are no more wheels for this GDAL library and newer Python versions).

In the end, I'm not even using any advanced functionality, so I was wondering if those necessary GDAL libraries could only be loaded when needed instead of when Point is imported. I'm happy to assist in any work that could make the use of these GIS libraries more convenient on Windows.

Change History (2)

comment:1 by Jef D, 4 years ago

Description: modified (diff)

comment:2 by Mariusz Felisiak, 4 years ago

Resolution: wontfix
Status: newclosed

In the end, I'm not even using any advanced functionality, so I was wondering if those necessary GDAL libraries could only be loaded when needed instead of when Point is imported. I'm happy to assist in any work that could make the use of these GIS libraries more convenient on Windows.

We decided to make it a hard dependency in #26753, and I don't think we should change this. It's not worth the extra complexity.

Installing the GDAL library requires installing it via OSgeo4W, setting up the paths and installing some additional libraries. However, small differences in versions or multiple versions installed all cause troubles (currently I'm still facing a "OSError: [WinError 127] The specified procedure could not be found" error; OSgeo4W only supports GDAL 3.0.4 while there are no more wheels for this GDAL library and newer Python versions).

Please use one of support channels. You can also always ask on the geodjango mailing list.

Note: See TracTickets for help on using tickets.
Back to Top