<div dir="ltr">Does not reproduce on my 3.2 and 3.1.4 installs:<br><br><span style="font-family:monospace"><span style="color:rgb(178,104,24)">10:17:37</span><span style="color:rgb(0,0,0)"> [</span><span style="font-weight:bold;color:rgb(255,84,84)">gis</span><span style="color:rgb(0,0,0)">] > select postgis_full_version();
</span><br>┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
<br>│                                                                                                                      postgis_full_version                                                                                                                       │
<br>├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
<br>│ POSTGIS="3.2.0dev 3.2.0beta1-23-g94d4588ac" [EXTENSION] PGSQL="140" GEOS="3.10.0dev-CAPI-1.15.0" SFCGAL="1.3.8" PROJ="7.2.1" GDAL="GDAL 3.2.2, released 2021/03/05" LIBXML="2.9.12" LIBJSON="0.15" LIBPROTOBUF="1.3.3" WAGYU="0.5.0 (Internal)" TOPOLOGY RASTER │
<br>└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
<br>(1 row)
<br>
<br>Time: 47,743 ms
<br><span style="color:rgb(178,104,24)">10:17:43</span><span style="color:rgb(0,0,0)"> [</span><span style="font-weight:bold;color:rgb(255,84,84)">gis</span><span style="color:rgb(0,0,0)">] > select ST_SRID(ST_Union(ST_GeomFromText('POLYGON EMPTY', 4283)));
</span><br>┌─────────┐
<br>│ st_srid │
<br>├─────────┤
<br>│    4283 │
<br>└─────────┘
<br>(1 row)
<br>
<br>Time: 1,531 ms<br>
<br></span></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 27, 2021 at 7:34 AM Jonathan Schultz <<a href="mailto:jonathan@schultz.la">jonathan@schultz.la</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I have found with a query that makes a union of geometries which <br>
includes an empty polygon produces a result without an SRID. For a <br>
trivial example:<br>
<br>
 > => select ST_SRID(ST_Union(ST_GeomFromText('POLYGON EMPTY', 4283)));<br>
 >  st_srid ---------<br>
 >        0<br>
<br>
This seems like a bug to me but maybe there is a good explanation?<br>
<br>
Thanks,<br>
Jonathan<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
</blockquote></div>