4

I have a postgres/postgis table with the columns:

  • gid [PK] serial NOT NULL,
  • geom geometry(MultiPolygon,900913),
  • crop text

My layer in Geoserver however only shows me the feature types "geom" and "crop", the "gid" is not listed. Problem is, I need the gid to update data of a particular (the selected) polygon.

Is there a way to get the gid? If not, how do you bypass this problem?

  • 2
    look on the layer page and check the expose primary key box – Ian Turton Dec 14 '12 at 12:02
12

You must to check "expose primary key" in your datastore configuration DataStore configuration

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.