[MS4W-Users] [mapserver-users] Mapcache WMTS - imagery is offset in ArcGIS when using WMTS services.
TC Haddad
tchaddad at gmail.com
Mon Apr 15 16:00:37 EDT 2019
Oops, might need the <grid> definitions from your mapcahe configuration as
well...
On Mon, Apr 15, 2019 at 12:08 PM Mark Volz <MarkVolz at co.lyon.mn.us> wrote:
> Tanya,
>
>
>
> Here is the source, tileset, and layer definitions of my mapcache and
> mapserver file.
>
>
>
> Thank You
>
>
>
> <source name="LQPBaseMapSource" type="wms">
>
> <http>
>
> <url>
> http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=/ms4w/apps/LQPMaps/maps/StandardBackground.map&
> </url>
>
> </http>
>
> <getmap>
>
> <params>
>
> <FORMAT>image/jpeg</FORMAT>
>
> <LAYERS>Cities</LAYERS>
>
> </params>
>
> </getmap>
>
> </source>
>
>
>
>
>
> <tileset name="TestLyonBaseMap">
>
> <source>LyonBaseMapSource</source>
>
> <cache>disk</cache>
>
> <metadata>
>
> <title>Test Lyon County BaseMap</title>
>
> <abstract>Test Lyon County Basemap</abstract>
>
> <wgs84boundingbox>-96.096 44.191 -95.587
> 44.640</wgs84boundingbox>
>
> </metadata>
>
> <grid>WGS84</grid>
>
> <grid>UTM15</grid>
>
> <grid>LyonCC</grid>
>
> <format>myjpeg</format>
>
> <metatile>4 4</metatile>
>
> <metabuffer>0</metabuffer>
>
> <expires>31536000</expires>
>
> </tileset>
>
> ######################
>
> LAYER
>
> NAME 'Cities'
>
> TYPE POLYGON
>
> DATA
> '../../maps/LyonCounty/Boundaries/CityLimits'
>
> MINSCALEDENOM 15000
>
> STATUS DEFAULT
>
> TRANSPARENCY 100
>
> CLASS
>
> NAME 'Cities'
>
> STYLE
>
> #SYMBOL
> 'plainline'
>
> SIZE 2
>
>
> #OUTLINECOLOR 80 80 0
>
> COLOR 255
> 255 220
>
> END
> #STYLEEND
>
> END #class
>
> END # cities layer
>
>
>
> Sincerely,
>
> *Mark Volz, GISP*
>
> *Lyon County GIS Coordinator*
>
>
>
> *From:* MS4W-Users <ms4w-users-bounces at lists.ms4w.com> *On Behalf Of *TC
> Haddad via MS4W-Users
> *Sent:* Monday, April 15, 2019 1:08 PM
> *To:* Discussions for MS4W (MapServer for Windows) <
> ms4w-users at lists.ms4w.com>
> *Cc:* TC Haddad <tchaddad at gmail.com>
> *Subject:* Re: [MS4W-Users] [mapserver-users] Mapcache WMTS - imagery is
> offset in ArcGIS when using WMTS services.
>
>
>
> *SWHHS/LYON/LINCOLN COUNTY SECURITY NOTICE:*
>
> *This email originated from an external sender. Exercise caution before
> clicking on any links or attachments and consider whether you know the
> sender. For more information please contact IT support.*
> ------------------------------
>
>
>
> Hi Mark, can you post the mapcache settings that you are using for the
> WMTS you are setting up?
>
>
>
> Post the <source> block, and the <tileset> blocks of your Mapcache.xml,
> and if you are referencing a Mapserver map file configuration, post the
> LAYER definition.
>
>
>
>
>
>
>
> On Mon, Apr 15, 2019 at 7:59 AM Mark Volz via MS4W-Users <
> ms4w-users at lists.ms4w.com> wrote:
>
> Steve,
>
>
>
> Thank you for your reply. When I changed the Mapcache projection to WGS84
> the basemap did display in the correct location. However, when using UTM
> 15 (SRS 26915), and Lyon County MN Coordinates (103749) the image is still
> offset. What I find unusual is that when using WMS instead of WMTS the
> maps display in the correct location no matter what projection I am using.
>
>
>
> Test Results for the service called “TestLyonBasemap” on
> http://geomoose.lyonco.org/mapcache/wmts/1.0.0/WMTSCapabilities.xml
> <https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fgeomoose.lyonco.org%2fmapcache%2fwmts%2f1.0.0%2fWMTSCapabilities.xml&c=E,1,OuS8GsQ9KQr-29Nykcm9E9ER8Zb8p-PMEeqD405JkFuuufL0zBe5I8ZVZ8yKnfG118-xDGC_qtBg0hXkBBK9CZ6HCwBmm_otKEM7jilJewmTtWgK4pYBuJI,&typo=1>
>
> WMTS: WGS84 – pass, Lyon County Coordinates 103749 – fail, UTM 15 – fail.
>
> WMS: WGS84 – pass, Lyon County Coordinates 103749 – pass, UTM 15 – pass
>
>
>
> I am not sure if I have something configured incorrectly, if there is a
> bug in MS4W 3.3.0, or if there is a limitation in WMTS when using UTM or
> Lyon County projections. Please let me know if you have any thoughts.
>
>
>
> Thank You!
>
>
>
> [image: cid:image001.jpg at 01D4F394.7D622380]
>
>
>
>
>
>
>
>
>
>
>
> Sincerely,
>
> *Mark Volz, GISP*
>
> *Lyon County GIS Coordinator*
>
>
>
> *From:* Lime, Steve D (MNIT) <steve.lime at state.mn.us>
> *Sent:* Friday, April 12, 2019 5:00 PM
> *To:* Mark Volz <MarkVolz at co.lyon.mn.us>; mapserver-users at lists.osgeo.org
> *Subject:* RE: [mapserver-users] Mapcache WMTS - imagery is offset in
> ArcGIS when using WMTS services.
>
>
>
> *SWHHS/LYON/LINCOLN COUNTY SECURITY NOTICE:*
>
> *This email originated from an external sender. Exercise caution before
> clicking on any links or attachments and consider whether you know the
> sender. For more information please contact IT support.*
> ------------------------------
>
> The resolution doesn’t matter. That just impacts scale computations
> internally so when layers/classes are on/off and how symbol/font scaling is
> done.
>
>
>
> I just tried our Compass MapCache/WTMS service overlaid with a shapefile
> in UTM projected appropriately and they line up perfectly in ArcGIS 10.6.
> You can try it too with your data since you’re in MN (
> http://maps1.dnr.state.mn.us/mapcache/wmts/1.0.0/WMTSCapabilities.xml).
> Does it behave any differently for you?
>
>
>
> --Steve
>
>
>
> *From:* mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org
> <mapserver-users-bounces at lists.osgeo.org>] *On Behalf Of *Mark Volz
> *Sent:* Friday, April 12, 2019 12:08 PM
> *To:* mapserver-users at lists.osgeo.org
> *Subject:* [mapserver-users] Mapcache WMTS - imagery is offset in ArcGIS
> when using WMTS services.
>
>
>
> Hello,
>
>
>
> I noticed that WMTS services are extremely fast when using Mapcache to
> serve tiles to ArcGIS clients. However, the imagery appears to be shifted
> down significantly from the actual location. I did notice that Mapserver
> and Mapcache use a 72 DPI while ArcGIS is using a 90.714 DPI. In addition
> the image is the correct width and height. In addition, when I use WMS the
> imagery appears in the correct location, however it is not as fast as WMTS.
>
>
>
> Please let me know if there is a way to get ArcGIS to place imagery in the
> correct location when using WMTS and Mapcache.
>
>
>
> Thanks
>
>
>
> Sincerely,
>
> *Mark Volz, GISP*
>
> *Lyon County GIS Coordinator*
>
>
>
> _______________________________________________
> MS4W-Users mailing list
> MS4W-Users at lists.ms4w.com
> https://lists.ms4w.com/mailman/listinfo/ms4w-users
> <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.ms4w.com%2fmailman%2flistinfo%2fms4w-users&c=E,1,OPa7ZhZR5TbBfVvpV_f3VcLJnHNMOhgwZxP8Xx7rxjLAWjhSbH_Xt3GuOa7Q3YMKrSJgIltZA1nWiTaxSSgN3DYbH2itv3i6lpC239bCcx_P7ICX_A,,&typo=1>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ms4w.com/pipermail/ms4w-users/attachments/20190415/1228ae34/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 28131 bytes
Desc: not available
URL: <https://lists.ms4w.com/pipermail/ms4w-users/attachments/20190415/1228ae34/attachment-0001.jpg>
More information about the MS4W-Users
mailing list