Skip to content
Prev 16793 / 29559 Next

readOGR and PostGIS: "Error getting field 0"

Roger,

It works beautifully! Checkout and compilation went successfully without 
any problem, and now readOGR can read layers with no field. As a matter of 
fact, it doesn't even need a primary key, just the geometry field. If there 
is a primary key, it is used as 'FID', if there is no primary key, a 'FID' 
field is created starting at 0.

This is perfect, thanks a lot!

Mathieu.


Le 30/11/2012 11:56, Roger Bivand a ?crit :