Skip to content

fix: skip rows with None coordinates to prevent GeoJSON errors

Some rows in the NocoDB table contain NULL coordinates. Folium/GeoJSON breaks when encountering None values.

This MR proposes skipping rows with missing lat/lng.

Old: features.append(geojson.Feature(geometry=geojson.Point((row['Longitud'],row['Latitud'])), properties=properties))

New: if row['Longitud'] is None or row['Latitud'] is None: continue

features.append(geojson.Feature( geometry=geojson.Point((row['Longitud'], row['Latitud'])), properties=properties))

Merge request reports

Loading