Description
Hey there,
we are using this API to save/retrieve geo data, especially multipolygons.
I noticed that the API fails when working with multipolygons:
- GETing results in a blank 200 response
- POSTing/PUTting results in an sql error
SQLSTATE[22003]: Numeric value out of range: 1416 Cannot get geometry object from data you send to the GEOMETRY field
Upon further debugging I found out that the multipolygon field is not detected as a geometric field, hence the value is treated as a typical scalar value, doesn't undergo the WKT-parsing and then fails the syntax check upon inserting.
When I add 'multipolygon' => 'geometry'
to the $toJdbc
array
Line 7356 in 9307ae2
Almost all database types (MySQL/MariaDB, PostgreSQL and SQL Server), probably except SQLite (or at least I couldn't find reliable information) seem to support it and the type support for multipolygons seems to be already implemented in
Line 7748 in 9307ae2
Line 10660 in 9307ae2
Is there a specific reason why the multipolygon type is 'deactivated'? Are there any concerns in enabling it (at least in our installation)?