Closed intotecho closed 4 years ago
I think this can also be handled by GeoViz when it creates the wrapper query in order to call ST_AsGeoJson(). It can add ' WHERE geo-field IS NOT NULL ' to the wrapper query. This would also avoid transmitting rows that GeoViz has no way to use.
This is fixed now.
The app just hangs as the query doesn't return. I have to reload the page and start over. The app gets to prequery OK.
The issue occurs when the app detects a geometry column, but the geometry of a row evaluates to null.
Console printout:
An error handler here would be a nice enhancement.
The app will guess the geometry column. Usually there will only be one column that is a sensible candidate.
Workaround
By adding a filter to the query, along the lines of gem is not null, the problem is averted and the query renders fine.