SnowEx / snowexsql

A project to access the SnowEx database holding data from the NASA SnowEx campaign
https://snowexsql.readthedocs.io/en/latest/readme.html
GNU General Public License v3.0
23 stars 6 forks source link

Not all querys have a geom column to make a geodataframe #45

Closed micahjohnson150 closed 2 years ago

micahjohnson150 commented 3 years ago

There have been multiple instances of folks wanting a dataframe but do not necessarily have a geom column to use the query_to_geopandas function which requires a resulting column to be name by sql geom to work.

This can be solve with two approaches.

  1. Add a kwarg pass through for the geom column name for columns that geometry but are not named geom
  2. Add in a new function called query_to_pandas to get out a datafram when no geometry is available.