<html>
<head>
        <title></title>
        
<meta name="GENERATOR" content="MSHTML 8.00.6001.18928"></meta>
</head>

<body>
        
<div align="left">Hallo</div>
        
<div align="left"> </div>
        
<div align="left">I was just sitting struggling to get som wms-services right presented in qgis and a naive question/idea struck me.</div>
        
<div align="left"> </div>
        
<div align="left">Would it be possible to build a function to handle a wms service directly into a query.</div>
        
<div align="left"> </div>
        
<div align="left">I see a lot of issues, but if it would be possible to solve it would be extremly cool.</div>
        
<div align="left"> </div>
        
<div align="left">What i imagine is a function that is used to make a subquery like:</div>
        
<div align="left"> </div>
        
<div align="left">Select * from</div>
        
<div align="left">(Select ST_GetWMS('http://........', some other parameters like the bounding box and epsg) as wms</div>
        
<div align="left"> </div>
        
<div align="left"> </div>
        
<div align="left">It would of course be very slow but maybe the function ST_GetWMS, could split the request and make many smaller requests only asking for the information needed to solve the query.</div>
        
<div align="left"> </div>
        
<div align="left">If the query for instance wants to get how many kilometers of a road is passing through a forest and the forest is in a wms-service, then the function can send several requests with smaller extent instead of one big with mostly uninteresting information.</div>
        
<div align="left"> </div>
        
<div align="left">Maybe also possible with WFS?</div>
        
<div align="left"> </div>
        
<div align="left">hmm, I see the problem to get information about the query information needs into the subquery with the ST_GetWMS-function :-(</div>
        
<div align="left"> </div>
        
<div align="left">but maybe some other design would make it possible</div>
        
<div align="left"> </div>
        
<div align="left"> </div>
        
<div align="left">Just some wild thoughts</div>
        
<div align="left"> </div>
        
<div align="left">Thanks</div>
        
<div align="left">Nicklas</div>
        
<div align="left"> </div>
</body>
</html>