On Wed, Apr 20, 2011 at 5:33 PM, Mark Meany (C) <[email protected]> wrote: > Hi, > > > > I am trying to limit the fields returned by a WFS GetFeature request. This > needs to be an enforced policy. Reading the documentation I found that a > schema document could be prepared and added to the data directory. I > followed the instructions and had some success, a DescribeFeatureType > request did not list the field as present. > > > > Then I ran into problems. If I request the data as ‘gml3’ then the field is > not present, however request ‘csv’, ‘json’ or ‘shape-zip’ and the field is > present.
Expected behavior, schema customization works only on GML output formats. Getting GS to do the kind of customization you want would require something similar to the work I've described on the "Field aliases in wms getfeatureinfo of wfs getfeature" thread today (though in fact just hiding fields would be slightly less work than renaming them). 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 ------------------------------------------------------- ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
