Hi,
Is it normal that a primary key in postgres is no more accessible with geoserver (and by getFeatureInfo through ftl) by its name ? Has a column a special name when it becomes a PK ?
Cheers
Laurent
Hi,
Is it normal that a primary key in postgres is no more accessible with geoserver (and by getFeatureInfo through ftl) by its name ? Has a column a special name when it becomes a PK ?
Cheers
Laurent
Yes, by default primary keys are not made available via normal attributes, it shows up as the feature id of the feature. In a getFeatureInfo template it should be available via "feature.fid".
-Justin
laurent pierrre wrote:
Hi,
Is it normal that a primary key in postgres is no more accessible with geoserver (and by getFeatureInfo through ftl) by its name ? Has a column a special name when it becomes a PK ?
Cheers
Laurent
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users!DSPAM:4007,4807455c140841012714783!
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com
Thanks, I was trying to get it by 'feature_id' instead of 'fid'.
Cheers
Le 17 avr. 08 à 16:59, Justin Deoliveira a écrit :
Yes, by default primary keys are not made available via normal attributes, it shows up as the feature id of the feature. In a getFeatureInfo template it should be available via "feature.fid".
-Justin
laurent pierrre wrote:
Hi,
Is it normal that a primary key in postgres is no more accessible with geoserver (and by getFeatureInfo through ftl) by its name ? Has a column a special name when it becomes a PK ?
Cheers
Laurent
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,4807455c140841012714783!--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com