I was trying to generate shapefile from postgis tables using pgsql2shp. Everything is fine except for table with no rows.
When trying to create shapefile from an empty table, an error occurs:
Could not determine table metadata (empty table)
I checked the source code of pgsql2shp in git and it appears that the error is explicitly thrown without checking any of the options provided.
I was expecting that an empty shapefile with a DBF schema the same as the table schema would be generated. Is there a way to get this behavior?
أكثر...
When trying to create shapefile from an empty table, an error occurs:
Could not determine table metadata (empty table)
I checked the source code of pgsql2shp in git and it appears that the error is explicitly thrown without checking any of the options provided.
I was expecting that an empty shapefile with a DBF schema the same as the table schema would be generated. Is there a way to get this behavior?
أكثر...