On Fri, Jul 20, 2012 at 3:22 PM, gismgr <[email protected]> wrote:

>  Hello all,****
>
> ** **
>
> Currently using Geoserver 2.1.3 and OpenLayers 2.12****
>
> ** **
>
> Our web map uses OpenLayers WFS calls to get the layers we are hosting on
> our own geoserver. However, we don’t want others to be able to download the
> full number of features in those layers using the “outputformat=SHAPE-ZIP”
> url method.****
>
> ** **
>
> When I go to “Edit Layer Settings” > Publishing > WFS Per Request Feature
> Limit” and change it to anything but 0 (1 for example), only 1 feature will
> display on the map. However, external users are also limited to downloading
> only that number of features. So obviously whatever changes/restrictions I
> make to the WFS settings also affect the layers on our map. Right now
> changing the code to WMS calls is not an option.****
>
> ** **
>
> Is there any way to actually disable the SHAPE-ZIP outputformat option?
> Thanks for any help!
>

There is no configuration to do so.
If you are up for a hack, go into WEB-LIB/lib, look for the wfs jar, open
it, open the applicationContext.xml
file contained in it, and comment out the bean declaration associated to
such output format, that should do it.

Or even better, consider adding support for really configuring the output
format availables  (checklist of
available formats, with a possibility to disable some). This would require
some coding, you can do it
yourself and donate it or look into the "commercial support" section at
geoserver.org and find some
core developer that can do it for you

Cheers
Andrea

-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
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://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to