Hello, I would like to restrict output file formats (WMS) to only : - JPEG - GIF - PNG - PNG8
Anyone has an example how to use urlrewrite with GeoServer ? Thanks for any help. Robin Mister Anonyme wrote: > > > > > Thanks so much... It works flawlessly with urlrewrite! > > > >> Date: Tue, 14 Jul 2009 11:23:28 -0600 >> Subject: Re: [Geoserver-users] WMS output format restrictions >> From: [email protected] >> To: [email protected] >> CC: [email protected]; [email protected]; >> [email protected] >> >> Hi >> >> Would you guys want to use something similar to mod_rewrite, but for >> Tomcat, for changing the output format from an incoming GetMap request >> to png8? >> >> Something like this: >> http://tuckey.org/urlrewrite/ >> >> Alex >> >> >> On Tue, Jul 14, 2009 at 11:13 AM, Mister Anonyme<[email protected]> >> wrote: >> > >> > Exactly, same with us. >> > >> > Static page... I don't like it, because some clients will try it anyway >> > (custom code). >> > >> > I can see that I have only two options left: modify source code or >> create a >> > proxy that will validate the format before forwarding the request to >> the >> > geoserver. >> > >> > I think it would be a nice feature to be able to activate/deactivate >> some >> > output formats. PNG8 is much smaller than PNG and is nicer than JPG. >> > >> > Thanks guys! >> > >> > >> >> From: [email protected] >> >> To: [email protected]; [email protected] >> >> CC: [email protected] >> >> Subject: RE: [Geoserver-users] WMS output format restrictions >> >> Date: Tue, 14 Jul 2009 12:38:42 -0400 >> >> >> >> Hi All, >> >> I posted a similar question a while back. The reason for us, Ian, >> >> is that we are very heavily limited from a network traffic standpoint >> at >> >> one >> >> of our remote facilities. We require the ability to constrain requests >> to, >> >> e.g. png8 so that maps will be pulled up in thick clients in seconds, >> not >> >> minutes. ArcGIS is our thick client that was limiting us, which we >> >> couldn't >> >> figure out how to force a png8 request without having the server >> appear to >> >> only offer that as an option. >> >> When I posted the question, the best suggestion I got was to save >> >> the WMS capabilites document, modify it, and post it on a static >> server. >> >> If >> >> you still wanted it to be dynamic, you could combine a cron job with >> cURL >> >> and some awk or perl to periodically update the static capabilities >> >> document >> >> for you. If I weren't running a Windows server, I would have already >> done >> >> this for us in house... . >> >> >> >> See conversation below: >> >> >> >> Steve >> >> >> >> Stephen Mather, GIS Manager >> >> Cleveland Metroparks >> >> 4101 Fulton Pkwy >> >> Cleveland, OH 44144 >> >> [email protected] >> >> Phone: (216) 635-3243 >> >> FAX: (216) 635-3286 >> >> >> >> >> >> >> >> Stephen V. Mather ha scritto: >> >> >> Hi All. >> >> >> Is there any way to control the default image type for a given >> >> >> service? We've got some remote users with a slow network using a >> thick >> >> >> client to access our GeoServer WMS. I'd like to force it to serve >> PNG8 >> >> >> to reduce the network traffic, and I don't see anything on the >> client >> >> >> side that allows me to do that (thick in two ways, I suppose). I'm >> >> >> hoping I can limit the capabilities for the service of images, in >> the >> >> >> same way that I can reduce the number of coordinate systems served. >> >> >> >> >> >> Any ideas? >> >> >> >> >> >> > We have no switch to control the default wms output format... >> Actually >> >> > there is no such a thing as a "default format", format=xxx is >> required >> >> > by WMS. But I guess the client would end up requesting only png8 if >> that >> >> > was the only format provided to it? >> >> >> >> > A quick way to test it is to save the wms capabilities output, hand >> edit >> >> > it, and publish it again using some static file publishing tool >> (e.g., >> >> > you can put it into the www directory of your GeoServer data dir and >> >> > reach >> >> > it at .../geoserver/www/myAmendedCapsFile.xml) >> >> >> >> Cheers >> >> Andrea >> >> >> >> >> >> >> >> -----Original Message----- >> >> From: Ian Turton [mailto:[email protected]] >> >> Sent: Tuesday, July 14, 2009 9:59 AM >> >> To: Mister Anonyme >> >> Cc: [email protected] >> >> Subject: Re: [Geoserver-users] WMS output format restrictions >> >> >> >> >> >> On Tue, Jul 14, 2009 at 7:57 AM, Mister Anonyme<[email protected]> >> >> wrote: >> >> > Hi! >> >> > >> >> > Is there a way to restrict output formats in WMS mode ? For >> example, >> >> > I want to block jpeg and png output and allow, let's say, png8 and >> >> > svg. >> >> >> >> I don't know if this is possible, but why would you want to do this? >> As a >> >> server owner I want as many clients as possible to connect to my maps, >> >> otherwise why use an open standard at all? >> >> >> >> Ian >> >> -- >> >> >> >> Ian Turton >> >> http://www.geotools.org >> >> http://pennspace.blogspot.com/ >> >> >> >> >> >> >> ---------------------------------------------------------------------------- >> >> -- >> >> Enter the BlackBerry Developer Challenge >> >> This is your chance to win up to $100,000 in prizes! For a limited >> time, >> >> vendors submitting new applications to BlackBerry App World(TM) will >> have >> >> the opportunity to enter the BlackBerry Developer Challenge. See full >> >> prize >> >> >> >> details at: http://p.sf.net/sfu/Challenge >> >> _______________________________________________ >> >> Geoserver-users mailing list [email protected] >> >> https://lists.sourceforge.net/lists/listinfo/geoserver-users >> >> >> >> >> >> >> > >> > ________________________________ >> > We are your photos. Share us now with Windows Live Photos. >> > >> ------------------------------------------------------------------------------ >> > Enter the BlackBerry Developer Challenge >> > This is your chance to win up to $100,000 in prizes! For a limited >> time, >> > vendors submitting new applications to BlackBerry App World(TM) will >> have >> > the opportunity to enter the BlackBerry Developer Challenge. See full >> prize >> > details at: http://p.sf.net/sfu/Challenge >> > _______________________________________________ >> > Geoserver-users mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/geoserver-users >> > >> > > > _________________________________________________________________ > Create a cool, new character for your Windows Live⢠Messenger. > http://go.microsoft.com/?linkid=9656621 > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > -- View this message in context: http://old.nabble.com/WMS-output-format-restrictions-tp24478077p29601227.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
