example for getting PostGIS layer fields -- issue #13