On Thu, 8 Sep 2022 02:52:30 -0700 (PDT), Filip Arlet wrote:
> I think there is a problem with GeomFromEWKB function. It converts
> MultiPolygons to Polygons when there is only one polygon in
> definition. But I cannot insert that Polygon into table defined with
> MultiPolygon geom type (geom-type or SRID not allowed).
>
Hi Filip,
the safest and simplest way in SpatiaLite for avoiding any
simple/multi issue when inserting into a multi<something>
column is to always explicitly call a cast function,
as e.g.
SELECT CastToMulti(GeomFromEWKB(....))
bye Sandro