GSE3022N Representation too long (append-length vs. written-length bytes).
Explanation
The representation of the geometry in Geographic Markup Language (GML), well-known text (WKT), well-known binary (WKB), or the shape representation would be too long. From append-length bytes, only written-length bytes could be appended to the encoding. A representation of the geometry cannot be created.
User response
Simplify the geometry by omitting points that are not essential for the geometry. You can use the ST_Generalize function for this procedure. Alternatively, break down the geometry into several smaller geometries.
msgcode: -3022
sqlstate: 38SUJ