mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-23 16:42:35 +00:00
#3480, copy input geometries to ST_ClusterDBSCAN
git-svn-id: http://svn.osgeo.org/postgis/trunk@14745 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
477d9231bc
commit
39d2c1dc56
|
@ -69,13 +69,13 @@ read_lwgeom_from_partition(WindowObject win_obj, uint32_t i, bool* is_null)
|
|||
|
||||
if (*is_null) {
|
||||
/* So that the indexes in our clustering input array can match our partition positions,
|
||||
* * toss an empty point into the clustering inputs, as a pass-through.
|
||||
* * NOTE: this will cause gaps in the output cluster id sequence.
|
||||
* */
|
||||
* toss an empty point into the clustering inputs, as a pass-through.
|
||||
* NOTE: this will cause gaps in the output cluster id sequence.
|
||||
* */
|
||||
return lwpoint_as_lwgeom(lwpoint_construct_empty(0, 0, 0));
|
||||
}
|
||||
|
||||
g = (GSERIALIZED*) PG_DETOAST_DATUM(arg);
|
||||
g = (GSERIALIZED*) PG_DETOAST_DATUM_COPY(arg);
|
||||
return lwgeom_from_gserialized(g);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue