Saving into SRID=-1 field causes st_transform error
|Reported by:||rcoup||Owned by:||jbronn|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||no|
Currently if you define a GeometryField(srid=-1) then save a value with a srid != -1, then Django will attempt to transform the geometry to -1, causing a DB error.
I've attached a simple patch for Postgis but I suspect the same issue will occur in the other backends - is geoapp the best place to add tests for this?
Change History (6)
Changed 8 years ago by rcoup
comment:1 Changed 8 years ago by jbronn
- Needs documentation unset
- Needs tests set
- Patch needs improvement unset
- Status changed from new to assigned
comment:4 Changed 8 years ago by jbronn
- Resolution set to fixed
- Status changed from assigned to closed