uint32_t dims = 2;
uint32_t i;
int append_points = 0;
- const POINT3DZ* p3d;
- const POINT2D* p2d;
+ const POINT3DZ* p3d = NULL;
+ const POINT2D* p2d = NULL;
GEOSCoordSeq sq;
if (FLAGS_GET_Z(pa->flags)) dims = 3;
make_strtree(void** geoms, uint32_t num_geoms, char is_lwgeom)
{
struct STRTree tree;
+ tree.envelopes = 0;
+ tree.num_geoms = 0;
+ tree.geom_ids = 0;
+
tree.tree = GEOSSTRtree_create(STRTREE_NODE_CAPACITY);
if (tree.tree == NULL)
{
/* Can only add the M term if both objects have M */
if (lwgeom_has_m(lw1) && lwgeom_has_m(lw2))
{
- double m1, m2;
+ double m1 = 0, m2 = 0;
int usebox = false;
/* Un-sqrt the distance so we can add extra terms */
distance = distance * distance;