3050 ArrayIterator iterator;
3053 bool gotsrid =
false;
3056 GEOSGeometry** geos_geoms = palloc(nelems *
sizeof(GEOSGeometry*));
3058 #if POSTGIS_PGSQL_VERSION >= 95 3059 iterator = array_create_iterator(array, 0, NULL);
3061 iterator = array_create_iterator(array, 0);
3064 while(array_iterate(iterator, &value, &isnull))
3079 lwpgerror(
"Geometry could not be converted to GEOS");
3081 for (j = 0; j < i; j++) {
3082 GEOSGeom_destroy(geos_geoms[j]);
3097 for (j = 0; j <= i; j++) {
3098 GEOSGeom_destroy(geos_geoms[j]);
3106 array_free_iterator(iterator);
void error_if_srid_mismatch(int srid1, int srid2)
int gserialized_has_z(const GSERIALIZED *gser)
Check if a GSERIALIZED has a Z ordinate.
GEOSGeometry * POSTGIS2GEOS(GSERIALIZED *pglwgeom)
int32_t gserialized_get_srid(const GSERIALIZED *s)
Extract the SRID from the serialized form (it is packed into three bytes so this is a handy function)...