Thanks Rich and Mike, I've done some more local tests and given some much needed love to the mode=tile documentation, so hopefully these questions are prevented in the future. Let me know if you notice anything else. https://mapserver.org/output/tile_mode.html

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
co-founder of FOSS4G
http://gatewaygeo.com/


On 2020-10-24 3:43 p.m., Richard Greenwood wrote:
Thanks Mike!

On Sat, Oct 24, 2020 at 11:35 AM Michael Smith <[email protected] <mailto:[email protected]>> wrote:

    Rich,____

    __ __

    Looking at mode=tile, yes, it sets it to spherical Mercator____

    __ __

    https://github.com/MapServer/MapServer/blob/master/maptile.c#L259____

    __ __

    __ __

    __ __

    *From: *mapserver-users <[email protected]
    <mailto:[email protected]>> on behalf of
    Richard Greenwood <[email protected]
    <mailto:[email protected]>>
    *Date: *Saturday, October 24, 2020 at 1:22 PM
    *To: *mapserver <[email protected]
    <mailto:[email protected]>>
    *Subject: *[mapserver-users] Is mode=tile always epsg:3857?____

    __ __

    I'm trying to generate vector tiles in a non epsg:3857 (web
    mercator) projection but it looks to me like mapserver is treating
    it as 3857 despite passing a srs. ____

    __ __

    My request generated by OpenLayers at the full map extent is:____

/cgi-bin/mapserv?map=mvt.map&SRS=EPSG:3738&mode=tile&tile=0+0+0&layers=ownership&map.imagetype=mvt____

    __ __

    My extents are: 1622000 639000 2308000 1284700____

    __ __

    My mapserver log looks like:____

    [Sat Oct 24 11:10:58 2020].947687 msTileSetParams():
    tile_metatile_level = 0
    [Sat Oct 24 11:10:58 2020].947690 msTileSetExtent(): gmaps coords
    (x: 0, y: 0, z: 0)
    [Sat Oct 24 11:10:58 2020].947692 msTileSetExtent(): gmaps
    metacoords (x: 0, y: 0, z: 0)
    [Sat Oct 24 11:10:58 2020].947695 msTileSetExtent(): base image size
    (256 x 256)
    [Sat Oct 24 11:10:58 2020].947697 msTileSetExtent(): buffered image
    size (256 x 256)
    [Sat Oct 24 11:10:58 2020].947700 msTileSetExtent (-19959236.823047,
    -19959236.823047) (19959236.823047, 19959236.823047)
    ____

    __ __

    There's obviously something that I'm not getting...____

    __ __

    -- ____

    Richard W. Greenwood, PLS
    www.greenwoodmap.com <http://www.greenwoodmap.com>____

_______________________________________________
mapserver-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to