Skip to content
Prev 16788 / 29559 Next

readOGR and PostGIS: "Error getting field 0"

On Fri, 30 Nov 2012, Mathieu Basille wrote:

            
Thanks very much, this is the information needed, that there are no 
fields. It appears that at least in this driver, readOGR() needs to be 
able to return a geometry-only object, or to create a GID column in the 
data.frame. I'll let you know when I've committed to R-forge, and will be 
very grateful if you can check out the source package, install, and test 
whether the changes have helped. It may take a little time to get there, 
but I'll give it priority.

Roger