On Thu, May 12, 2011 at 1:28 PM, Hochmeister Rudolf <[email protected]> wrote: > Hi, > > What ist he correct way to specify the 'fid'-attribute in Geoserver WFS, > WFS-T requests. > WFS-GetFeature only accepts fid='gis.feature.2' (fully qualified) and > complains with 'featuretype not found' > if set to fid='myfeature.2' (schemaname is omited) > > But WFS-T Delete on the other hand accepts both variants. > Is the behaviour datastore specific, for instance I am using ArcSDE > datstore with Oracle geo-db as backend. > What would be the correct way of specifying the filter?
Sounds store specific to me. As far as I know the store should react properly to a fid with the structure <typename>.<key>, but that is most of a common practice than a rule. The official rule is that you have to use the the same feature id as returned by a plain GetFeature, you cannot make assumptions on its contents if the WFS never generated it. With GS we have conventions that allow you to predict the fid based on whatever is used as the primary key in the data storage, but it's just an implementation detail. So the question is, when do you make a GetFeature without filters how do the feature gml:id attributes look like? Cheers Andrea -- ------------------------------------------------------- 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 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 ------------------------------------------------------- ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
