On Thu, Jan 12, 2012 at 1:49 PM, Emmanuel Blondel <
[email protected]> wrote:
> Dear all,
>
> I published a PostGIS layer in Geoserver, exposing primary keys, so my
> FeatureID in this layer is built using the primary key I set in the
> PostGIS layer.
> I am now using WFSDatastore and retrieved this layer. For each feature,
> I now I can retrieve the FeatureID.
>
> Is there a way to get the attribute column name used in this FeatureID?
> Can this information be obtained from Geoserver?
>
Nope, I don't believe it's possible, GeoServer definitely does not know
A naming convention on your side is probably the only way, the PostGIS
store itself does not advertise what columns are primary key
in the first place
Cheers
Andrea
>
> Thanks in advance for your answers,
>
> Emmanuel
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Mar 27 - Feb 2
> Save $400 by Jan. 27
> Register now!
> http://p.sf.net/sfu/rsa-sfdev2dev2
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users