#33274 closed Cleanup/optimization (wontfix)

Point coordinates should accept Decimal

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


This should allow for x/y/z to be Decimal and if needed convert to float inside the init method.

Change History (1)

comment:1 Changed 11 months ago by Carlton Gibson

Resolution: wontfix
Status: newclosed

Hi Iulian. Thanks for the report.

I'm going to say wontfix here initially. Loosening the accepted types adds complexity, and it's not clear that only Point would need to be adjusted.
Rather, I'd suggest casting your data before instantiating the Point (as I presume you're doing).

It may be worth a post on the GeoDjango category of the Forum to discuss your use-case and how best to handle/support Decimal instances.

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