Opened 7 years ago
Closed 7 years ago
#28383 closed Cleanup/optimization (fixed)
NumPoints should return None for any non-LINESTRING geometry on MySQL as documented
Reported by: | Sergey Fedoseev | Owned by: | Sergey Fedoseev |
---|---|---|---|
Component: | GIS | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Documetation says
On MySQL, returns None for any non-LINESTRING geometry.
, but instead of that TypeError
is raised. IMO we should not check input type here because we can't do it reliably if the input is the output of another GIS function and because wrong input type doesn't lead to some DB level error.
Change History (3)
comment:1 by , 7 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 7 years ago
Has patch: | set |
---|
Note:
See TracTickets
for help on using tickets.
PR