Hi Richard, Thanks for the feedback. Going to try everything again today. As far as I remember the PK_POLICY Column I set to "assigned" - that should be correct too.
Does the column "id" have to be named "id" or is it enough to enter the name of the column into PK_COLUMN of the metadata table? As far as I can see the "viewname" (or layername) will always be attached? Or is there a way to get rid of it too? thanks a lot for your help regards Werner On Thu, Jul 9, 2020 at 10:45 PM Richard Duivenvoorde <[email protected]> wrote: > > On 7/9/20 2:53 PM, Werner Macho wrote: > > > Is there a way to exchange the > > "tablename.fid--62217e83_172e54c5422_-5ba2" with the data from the > > attribute "31f78566-75e0-47d6-9a37-a3deef25077e"? > > > > Where is my mind going in the wrong direction here? > > What am I doing wrong (or expecting wrong things to happen)? > > Hi Werner, I think you are just right: > > If you create a table 'gt_pk_metadata' as described in the manual, and you > fill the table_schema, table_name and pk_column then (as I did) then IF you > have a (unique PK) column 'id' then the gml:id > AND/OR the geojson fid's will be have the as value 'viewname.<id-value>' > > So in my view the record with id 39163 has > gml:id="viewname.39163" in the gml > and > "id":"viewname.39163" in the geojson > > So: did you restart you geoserver (or refreshed the definitions)? > Is the table actually readable by the same user your geoservers uses? > > I think there is also something logged in the start of geoserver. > > Anyway: I think you are just right, and some small thing is still playing up. > > Regards, > > Richard Duivenvoorde _______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
