Commit 610f493
committed
fix(spp_mis_demo_v2): use ORM Shapely geometry for coordinate generation
The _generate_coordinates method tried to read area.geo_polygon.data
and pass it through wkbloads(), but the spp_gis ORM field already
returns a Shapely geometry object which has no .data attribute. This
caused a silent AttributeError for every area, resulting in zero
coordinates generated for any registrant.
Use the Shapely geometry directly instead of trying to re-parse it.1 parent 310f648 commit 610f493
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3811 | 3811 | | |
3812 | 3812 | | |
3813 | 3813 | | |
3814 | | - | |
3815 | 3814 | | |
3816 | 3815 | | |
3817 | 3816 | | |
| |||
3854 | 3853 | | |
3855 | 3854 | | |
3856 | 3855 | | |
3857 | | - | |
3858 | | - | |
| 3856 | + | |
| 3857 | + | |
3859 | 3858 | | |
3860 | 3859 | | |
3861 | 3860 | | |
| |||
0 commit comments