[mapserver-users] UTFGrid format in OpenLayers3

Seth G geographika at gmail.com
Fri Mar 18 14:54:07 PDT 2016


Hi list,

I'm looking at trying to set up an OpenLayer3 demo using the UTFGrid 
format provided by MapServer.

http://mapserver.org/development/rfc/ms-rfc-93.html#rfc93
http://mapserver.org/output/utfgrid_output.html

As luck would have it, it appears OpenLayers2 actually has a better 
implementation on the client-side. See links:

http://dev.openlayers.org/examples/utfgrid.html
http://dev.openlayers.org/docs/files/OpenLayers/Layer/UTFGrid-js.html

OL3 seems to require a server-side component to return a callback with 
details on the service. Even if I set this up, it expects the UTFGrid 
service to use a tile grid format ({x}{y}{z}). 
http://openlayers.org/en/v3.14.2/examples/tileutfgrid.html

I can configure MapServer to return UTFGrids using WMS GetMap requests 
(as stated in the RFC), but not when using the tile mode - 
http://mapserver.org/output/tile_mode.html

I can probably hack together a workaround to work out tile numbers from 
BBOXes, but I was wondering if I'm missing something simple to get this 
to work directly.
Has anyone manged to set this up?

Thanks for any advice,

Seth

--
web:http://geographika.co.uk
twitter: @geographika



<http://mapserver.org/output/utfgrid_output.html>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160318/c8128f38/attachment.html>


More information about the mapserver-users mailing list