[postgis-devel] Promote Geometry to MultiGeometry on Insert

Martin Davis mtnclimb at gmail.com
Fri Feb 17 09:49:11 PST 2023


I agree with this.  It seems better to provide more appropriate constraints
than to modify data.

Like it or now, we're stuck with the OGC model for the foreseeable future.
But the pain points can be reduced by removing unwanted distinctions
between atomic and Multi-geometries wherever possible.

On Thu, Feb 16, 2023 at 8:43 PM Darafei "Komяpa" Praliaskouski <
me at komzpa.net> wrote:

> I believe that multigeometry constraint is instead a not well-thought
> constraint inherited from very legacy systems.
>
> The useful ones are "is it point/multipoint", "is it line/multiline", "is
> it area/multiarea". With check for the multi- being with options "no" and
> "could be multi, could be single". I don't like us pushing people to
> convert all singles to multi: this may mean that in some time we will not
> have tables with plain polygons anymore.
>
> I'd say that if we implement such a change we also need to have a nice way
> to have "linear" or "areal" dimensionality constraint on the data that will
> check that data is poly/multipoly or line/multiline, so it could be
> recommended as replacement, with simple results being in the table, not
> forcing everything to be more complex.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20230217/ac64a3b8/attachment.htm>


More information about the postgis-devel mailing list