NYCPlanning / labs-postgis-preview

A lightweight express app and leaflet frontend for previewing PostGIS queries
MIT License
277 stars 57 forks source link

Allow for queries with no geom #33

Closed jimmyrocks closed 8 years ago

jimmyrocks commented 8 years ago

This should fix this issue: https://github.com/NYCPlanning/postgis-preview/issues/32

I allowed the dbGeo function to work without a "geom" column, and I allowed it to pass data through if there are any rows (formerly, it required a geometry column).

The script.js was changed to filter out non-geom containing rows and only pass those to the map. All rows are still passed to the data table.

A message will appear on the right stating that no geometry rows have been returned.

screen shot 2016-05-24 at 12 16 44 pm
chriswhong commented 8 years ago

Thanks!