Colleagues, can anyone help me with these errors? Why doesn’t my routine work? It reports the following errors below;
“More than two points must be given to form a polygon”,
“Cannot create a polycurve from an empty list”,
and “Dereferencing non-pointer”.
Where did I go wrong? What can I change?
Likely one of the OSM datasets only has two points given; you’d want to review which one is failing and update the dataset or update the content accordingly.
My experience is that these issues are a result of pulling a subtype for which there is no data inside this portion; either be less ‘greedy’ with the gathering, check what has data before passing onto downstream geometry creation, or ignore the warning.
This is usually a null or an empty list in the dataset. Again, sanitize your GIS data or modify the way you collect stuff in advance.

