Thomas,
*note I noticed that ArcCatalog reports the LatLongBoundingBox as 0, 0, 0,0.
This is probably important...
I realize that mapcahce does not project. For testing I completely removed my
grid, source, and tileset that is in county coordinates. My other cache is in
UTM 15, The only grid I have advertised is UTM15 such as:
<!--<grid>WGS84</grid>-->
<!--<grid>g</grid>-->
<grid>UTM15</grid>
So here is what I have:
Demo: The demo site works fine. Here is an example request that works
http://10.0.8.116/mapcache/?LAYERS=MNSOUTH11&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A26915&BBOX=438394.0589,4887031.0797,471162.0589,4919799.0797&WIDTH=256&HEIGHT=256
WMS in ArcCatalog: Doesn’t work
The lat long bounding box is 0,0,0,0. Furthermore ArcCatalog advertises EPSG:
26915 (which is correct) , EPSG: 900913, EPSG 26915 again?, EPSG: 3857. How
can I remove the other projections. I only want to serve 26915.
* I did try to change the coordinate system that ArcCatalog / ArcMap requests
to UTM 15. Mapcahce still did not work
WMS in QGIS: Doesn’t work.
In the properties for the service (root layer) I noticed the WGS 84 Bounding
Box is empty. However, the layer MNSOUTH11 does have a valid bounding box
WMTS in QGIS: Works.
When adding the WMS layer in QGIS, I noticed I could switch between layers
(wms) and Tilesets (WMTS?). The tilesets work in QGIS.
********************************************************
When I did have the County Map service configured, nothing worked. Not even
the demo. I didn't even get any pink tiles in the demo, and firebug reported
that it was not even trying to request anything.
Let me know if you have any thoughts as to why the WMS service isn’t working.
Thanks for all your help
Mark Volz
GIS Specialist
Lyon County, MN
-----Original Message-----
From: thomas bonfort [mailto:[email protected]]
Sent: Thursday, May 10, 2012 6:02 AM
To: Mark Volz
Cc: [email protected]
Subject: Re: [mapserver-users] mapcache - working with different grids
Hi,
On Wed, May 9, 2012 at 9:45 PM, Mark Volz <[email protected]> wrote:
> Hello,
>
> I started working with Mapcache. I added a tileset that is in UTM 15
> (26915) and it is working fine on the demo page
> http://localhost/mapcache/demo/wms. However when I add the layer to
> ArcView, I get a warning about inconsistent extents. I noticed the
> service is advertising several extents: EPSG:900913, EPSG:103749,
> EPSG:26915, EPSG:4326, EPSG:3857. So I made sure ArcGIS was
> requesting the correct coordinate system via layer>change coordinate
> system. Even after switching the coordinate system, I still did not
> see anything (even when zoomed into the appropriate area)
I've never tried the wms service in arcgis...
what I do know is that mapcache advertises all known grids in the wms root
layer, however only the actually cached grids are advertised for each
individual layer (that's what the spec requires, although it does not fit very
well with cached layers). I wouldn't be very surprised arcgis chokes on that.
Check your server logs for the requests actually being sent out by arcgis, that
will at least tell you if the correct grid is being used.
>
> I also am trying to get another layer cached, which is in county
> coordinates. I did add a grid for the county coordinates.
> Unfortunately I cannot get that service working in either the demo
> page or the ArcMap. I can get the source of that service (before it
> is cached in MapCache) to work in ArcMap.
need more info... mapcache itself does no projection handling, the grid srs is
only used as a key to lookup which tiles to return, and is forwarded to the wms
server as is. Right clicking on a pink tile in the demo page and opening the
image in a new window might give you more info to help debugging.
--
thomas
>
>
> Questions:
>
>
> Is this the right mailing list, or does mapcache have a separate list?
> How can I limit the grids / spatial references that Mapcache advertises?
> What am I missing that Mapcache works fine in the demo pages, but not
> in ArcMap? - note I set <full_wms>assemble</full_wms> and <service
> type="wms"
> enabled="true">
> Is there anything I need to know about custom spatial references? I
> am guessing that Mapserver itself only needs the grid set.
>
>
>
> Thanks for all the help!
>
>
> Mark Volz
> GIS Specialist
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
<?xml version="1.0" encoding="UTF-8"?>
<!-- see the accompanying mapcache.xml.sample for a fully commented configuration file -->
<mapcache>
<metadata>
<title>Lyon County Mapcache Service</title>
<abstract>Lyon County Mapcache</abstract>
</metadata>
<!-- ######### Begin Grids ################## -->
<grid name="UTM15">
<metadata>
<title>UTM15</title>
</metadata>
<srs>EPSG:26915</srs>
<size>256 256</size>
<extent>176250.0589, 1577463.0797, 823749.9411, 9106037.1690</extent>
<resolutions>4891.96875 2445.984375 1000 550 270 128 64 32 24 16 8 4 1 .5</resolutions>
<units>m</units>
</grid>
<!-- ###### Begin Cache Types ########### -->
<cache name="disk" type="disk">
<base>D:/ms4wCache/tmp/ms_tmp/cache</base>
<!--<symlink_blank/>-->
</cache>
<cache name="tiff" type="tiff">
<template>D:/ms4wCache/tmp/ms_tmp/cache/{tileset}/{grid}/L{z}/R{inv_y}/C{x}.tif</template>
<xcount>64</xcount>
<ycount>64</ycount>
<!-- <format>myjpeg</format> -->
</cache>
<!-- ################### Begin Special Formats ############# -->
<format name="PNGQ_FAST" type ="PNG">
<compression>fast</compression>
<colors>256</colors>
</format>
<format name="myjpeg" type ="JPEG">
<quality>75</quality>
<photometric>RGB</photometric> <!-- RGB | YCBCR -->
</format>
<format name="PNG_Normal" type ="PNG">
<compression>fast</compression>
</format>
<format name="PNG_BEST" type ="PNG">
<compression>best</compression>
</format>
<format name="mixed" type="MIXED">
<transparent>PNG_BEST</transparent>
<opaque>JPEG</opaque>
</format>
<!-- #################Begin Sources############################ -->
<source name="vmap0" type="wms">
<getmap>
<params>
<FORMAT>image/png</FORMAT>
<LAYERS>basic</LAYERS>
</params>
</getmap>
<http>
<url>http://vmap0.tiles.osgeo.org/wms/vmap0</url>
</http>
</source>
<source name="MNWMSSOUTH11Source" type="wms">
<getmap>
<params>
<FORMAT>image/jpeg</FORMAT>
<LAYERS>south11</LAYERS>
</params>
</getmap>
<http>
<url>http://geoint.lmic.state.mn.us/cgi-bin/wms?</url>
</http>
</source>
<source name="FSA2010Source" type="wms">
<getmap>
<params>
<FORMAT>image/jpeg</FORMAT>
<LAYERS>fsa2010</LAYERS>
</params>
</getmap>
<http>
<url>http://geoint.lmic.state.mn.us/cgi-bin/wms?</url>
</http>
</source>
<!-- ##################### Begin Tilesets ########################### -->
<!--
<tileset name="tiff">
<source>vmap0</source>
<metadata>
<title>Tiff</title>
<abstract>blabla</abstract>
</metadata>
<cache>tiff</cache>
<grid>WGS84</grid>
<grid>g</grid>
<format>PNG</format>
<metatile>5 5</metatile>
<metabuffer>10</metabuffer>
<expires>3600</expires>
</tileset>
-->
<tileset name="MNSOUTH11">
<source>MNWMSSOUTH11Source</source>
<cache>disk</cache>
<metadata>
<title>MN SOUTH CACHE</title>
<abstract>blabla</abstract>
</metadata>
<!--<grid>WGS84</grid>-->
<!--<grid>g</grid>-->
<grid>UTM15</grid>
<format>myjpeg</format>
<metatile>5 5</metatile>
<metabuffer>10</metabuffer>
<expires>3600</expires>
</tileset>
<tileset name="FSA2010">
<source>FSA2010Source</source>
<cache>disk</cache>
<metadata>
<title>FSA 2010 CACHE</title>
<abstract>blabla</abstract>
</metadata>
<!--<grid>WGS84</grid>-->
<!--<grid>g</grid>-->
<grid>UTM15</grid>
<format>myjpeg</format>
<metatile>10 10</metatile>
<metabuffer>10</metabuffer>
<expires>3600</expires>
</tileset>
<!-- ################ Defaults ################### -->
<default_format>JPEG</default_format>
<service type="wms" enabled="true">
<!-- full WMS type. We will set to error for testing to make sure that all grids are set up correctly -->
<full_wms>assemble</full_wms>
<!-- <full_wms>error</full_wms> -->
<resample_mode>bilinear</resample_mode>
<format>JPEG</format>
<maxsize>4096</maxsize>
</service>
<service type="wmts" enabled="true"/>
<service type="tms" enabled="true"/>
<service type="kml" enabled="false"/>
<service type="gmaps" enabled="false"/>
<service type="ve" enabled="false"/>
<service type="demo" enabled="true"/>
<errors>report</errors>
<lock_dir>D:/ms4wCache/tmp/ms_tmp</lock_dir>
<!-- use multiple threads when fetching multiple tiles (used for wms tile assembling -->
<threaded_fetching>true</threaded_fetching>
</mapcache>
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users