[mapserver-users] How retrieve the maxsize information with an http request

2013-01-29 Thread Andrea Peri
Hi, Some gis software like qgis allow to define the tile size to retrieve a map as a mosaic of tiles from a wms. This is a very good feature. But to use it efficiently is necessary to know the maxsize value applied in the mapfile of the wms server. Is this information retrievable from the

Re: [mapserver-users] I've been accused of not using things the way they were intended, but . . . can a getcapabilities request be run through the MapServer TEMPLATE for output?

2013-01-29 Thread Stephen Woodbridge
Bob, Seems like this is trivial to do with a Perl wrapper. Make a Perl script that makes a mapserver GetCapabilities request and suck that into XML and reformat how you like. -Steve W On 1/28/2013 12:29 PM, Basques, Bob (CI-StPaul) wrote: Brent, Pretty much as you describe . . . I want a

Re: [mapserver-users] I've been accused of not using things the way they were intended, but . . . can a getcapabilities request be run through the MapServer TEMPLATE for output?

2013-01-29 Thread Basques, Bob (CI-StPaul)
Yeah, yeah, I know. Just for some reason seems like it should be doable straight through MapServer with a TEMPLATE . . . Still pondering it, probably go the PERL route though in the end. Thanks for the direction though. :c) Bobb -Original Message- From:

Re: [mapserver-users] I've been accused of not using things the way they were intended, but . . . can a getcapabilities request be run through the MapServer TEMPLATE for output?

2013-01-29 Thread Lime, Steve D (MNIT)
Templates don't expose the layer metadata you'd likely need so transforming normal XML as Steve suggested is a far better option. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul)

Re: [mapserver-users] How retrieve the maxsize information with an http request

2013-01-29 Thread Stephen Woodbridge
On 1/29/2013 1:03 PM, Andrea Peri wrote: Hi, Some gis software like qgis allow to define the tile size to retrieve a map as a mosaic of tiles from a wms. This is a very good feature. But to use it efficiently is necessary to know the maxsize value applied in the mapfile of the wms server. Is

Re: [mapserver-users] I've been accused of not using things the way they were intended, but . . . can a getcapabilities request be run through the MapServer TEMPLATE for output?

2013-01-29 Thread Stephen Woodbridge
Heck if you are going the Perl route, you could use Perl mapscript and build an app where you pass it the mapfile and from that you can return anything you want, in any format and not be limited to whats in the getcapabilities document. This would be more expandable to other information that

Re: [mapserver-users] How retrieve the maxsize information with an httprequest

2013-01-29 Thread Eichner, Andreas - SID-NLKM
But to use it efficiently is necessary to know the maxsize value applied in the mapfile of the wms server. Is this information retrievable from the getcapabilities or there is a differente cgi request to have this information ? Yes and no. From MapServer as

Re: [mapserver-users] How retrieve the maxsize information with an httprequest

2013-01-29 Thread Rahkonen Jukka
Hi, How about making an utility that captures the layer bounds from GetCapabilities, takes the centre point of the bounds, checks the min/max scale limits from the GetCapabilities and then calculates a reasonable BBOX and makes a GetMap query with WIDTH=400 and HEIGTH=400. By increasing the