<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
<!--
.EmailQuote
        {margin-left:1pt;
        padding-left:4pt;
        border-left:#800000 2px solid}
-->
</style><style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>I believe you can already do map.scaledenom=10000 or map.scale=10000 to explicitly set a scale for use with queries. Might check to see if a scale has been explicitly set and then on compute if necessary. --Steve</div>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF623085" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> mapserver-dev-bounces@lists.osgeo.org [mapserver-dev-bounces@lists.osgeo.org] on behalf of Rahkonen Jukka (MML) [jukka.rahkonen@maanmittauslaitos.fi]<br>
<b>Sent:</b> Monday, September 14, 2015 11:14 AM<br>
<b>To:</b> Even Rouault; mapserver-dev@lists.osgeo.org<br>
<b>Subject:</b> Re: [mapserver-dev] Vector Tile Production...<br>
</font><br>
</div>
<div></div>
<div>
<div>
<div>
<div style="font-family:Calibri,sans-serif; font-size:11pt">Hi,<br>
<br>
Call the vendor option as "scaledenom" so it would be easy to connect with the settings in the mapfile. Width+Height is not so good because vectors do not need non-rectangular pixels.<br>
<br>
-Jukka Rahkonen-<br>
<br>
</div>
</div>
<div dir="ltr">
<hr>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Lähettäjä:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:even.rouault@spatialys.com" target="_blank">Even Rouault</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Lähetetty:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">‎14.‎9.‎2015 15:42</span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Vastaanottaja:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Aihe:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">Re: [mapserver-dev] Vector Tile Production...</span><br>
<br>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div class="PlainText">Le lundi 14 septembre 2015 14:10:27, thomas bonfort a écrit :<br>
> Hi all,<br>
> <br>
> I have  a mostly functional and fully untested (on the client side)<br>
> branch that implements vector tile rendering for mapserver:<br>
> <a href="https://github.com/tbonfort/mapserver/tree/vector-tiles" target="_blank">
https://github.com/tbonfort/mapserver/tree/vector-tiles</a> .<br>
<br>
Thumbs up!<br>
<br>
> It relies on<br>
> mapserver's WFS implementation, so we'll need to also adapt mapcache<br>
> to handle these WFS queries in order to present  x/y/z style URLS so<br>
> it becomes actually usable.<br>
> <br>
> Given that we're using WFS, we actually don't care about projections,<br>
> you can request a vector tile for any extent/projection combo,<br>
> although that isn't going to be supported by any client (yet?). I did<br>
> have to fiddle around with handling scale computations as there's no<br>
> concept of scale in traditional getfeature queries<br>
> (<a href="UrlBlockedError.aspx" target="_blank"></a>https://github.com/tbonfort/mapserver/commit/50c3a44ddd3c182ca0e1a16a6e5a1<br>
> c5c20675768) => Steve or Even could you have a glance?<br>
<br>
That should be fine I think.<br>
<br>
It raises a few interesting ideas for having a more generic scale-aware WFS <br>
mode. Perhaps we could have vendor WFS options WIDTH and HEIGHT that, if set, <br>
would trigger the msCalculateScale() call. So that could also potentially be <br>
used to have scale-aware shapezip output ("give me features in this AOI <br>
appropriate for a 1024x1024 rendering")<br>
And the clipping to the BBOX could also potentially be a CLIPPED=YES vendor <br>
option (but you have to do it anyway for MVT output due to the way coordinates <br>
are encoded).<br>
<br>
Even<br>
<br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
_______________________________________________<br>
mapserver-dev mailing list<br>
mapserver-dev@lists.osgeo.org<br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a></div>
</span></font></div>
</div>
</div>
</body>
</html>