[Geoserver-devel] GeoWebcache gmaps gridsubsets problem

Hi All,

Don't know if this is due to the setup of my cache or a problem with gwc but
I can't seems to get a gmaps response if I use gridsubsets in my config
file, but it works if I use the old 'bounds / coords' methos.

The client code is:

var tilelayer = new GTileLayer(null, null, null, {
        tileUrlTemplate:
'http://skrivte58:8080/geowebcache/service/gmaps?layers=topo23&zoom=\{Z\}&x=\{X\}&y=\{Y\}',
               isPng:true,
               opacity:1.0 }
           );

and the geowebcache.xml wms_layer config looks like this:

<wmsLayer>
      <name>topo23</name>
      <mimeFormats>
        <string>image/jpeg</string>
        <string>image/png</string>
      </mimeFormats>
      <formatModifiers>
        <formatModifier>
          <responseFormat>image/jpeg</responseFormat>
          <requestFormat>image/png; mode=24bit</requestFormat>
          <transparent>false</transparent>
          <bgColor>0xFFFFFF</bgColor>
          
          <compressionQuality>0.7</compressionQuality>
        </formatModifier>
      </formatModifiers>
  <gridSubsets>
    <gridSubset>
      <gridSetName>900913</gridSetName>
      <extent>
        <coords>
                      <double>-20037508.34</double>
                      <double>-20037508.34</double>
                      <double>20037508.34</double>
                      <double>20037508.34</double>
                  </coords>
      </extent>
      <zoomStart>0</zoomStart>
               <zoomStop>20</zoomStop>
    </gridSubset>
  </gridSubsets>
        <wmsUrl>
        <string>http://skrivap60/cgi-bin/topo2&lt;/string&gt;
        <string>http://skrivap61/cgi-bin/topo2&lt;/string&gt;
      </wmsUrl>
      <wmsLayers>topo2_WMS</wmsLayers>
      <wmsStyles>default</wmsStyles>
      <metaWidthHeight>
        <int>2</int>
        <int>2</int>
      </metaWidthHeight>
      <gutter>100</gutter>
      <tiled>false</tiled>
      <expireCacheList>
        <expirationRule minZoom="0" expiration="604800"/>
        <expirationRule minZoom="13" expiration="604800"/>
      </expireCacheList>
      <expireClientsList>
        <expirationRule minZoom="0" expiration="604800"/>
      </expireClientsList>
      <transparent>true</transparent>
      <errorMime>application/vnd.ogc.se_xml</errorMime>
      <bgColor/>
      <palette/>
      <vendorParameters/>
    </wmsLayer>
  </layers>

This returns nothing at all to the client. However if I add to the section
with:

<grids>
  <entry>
          <srs>
            <number>900913</number>
          </srs>
          <grid>
            <srs>
              <number>900913</number>
            </srs>
            <dataBounds>
              <coords>
                <double>-20037508.34</double>
                <double>-20037508.34</double>
                <double>20037508.34</double>
                <double>20037508.34</double>
              </coords>
            </dataBounds>
            <gridBounds>
              <coords>
                <double>-20037508.34</double>
                <double>-20037508.34</double>
                <double>20037508.34</double>
                <double>20037508.34</double>
              </coords>
            </gridBounds>
            <zoomStart>0</zoomStart>
            <zoomStop>19</zoomStop>
          </grid>
        </entry>
      </grids>

it works and I get tiles back. Are the grid definitions simply information
that a gmaps request needs?
I'd love any info on this, I've googled the hell out of it but just can't
find an explanation.

best regards

Tom

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GeoWebcache-gmaps-gridsubsets-problem-tp4980782.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

hey, sorry for the late reply, been off for the last couple weeks.

Sounds like a bug to me. Gridsubset should be a complete replacement
for the old config format afaik.
Would you mind creating an issue on the gwc issue tracker?
<https://github.com/GeoWebCache/geowebcache/issues&gt;

Cheers,
Gabriel
On Tue, Jun 12, 2012 at 9:49 AM, tellett <thomas.ellett@...2546...> wrote:

Hi All,

Don't know if this is due to the setup of my cache or a problem with gwc but
I can't seems to get a gmaps response if I use gridsubsets in my config
file, but it works if I use the old 'bounds / coords' methos.

The client code is:

var tilelayer = new GTileLayer(null, null, null, {
tileUrlTemplate:
'http://skrivte58:8080/geowebcache/service/gmaps?layers=topo23&zoom=\{Z\}&amp;x=\{X\}&amp;y=\{Y\}&#39;,
isPng:true,
opacity:1.0 }
);

and the geowebcache.xml wms_layer config looks like this:

<wmsLayer>
<name>topo23</name>
<mimeFormats>
<string>image/jpeg</string>
<string>image/png</string>
</mimeFormats>
<formatModifiers>
<formatModifier>
<responseFormat>image/jpeg</responseFormat>
<requestFormat>image/png; mode=24bit</requestFormat>
<transparent>false</transparent>
<bgColor>0xFFFFFF</bgColor>

     &lt;compressionQuality&gt;0\.7&lt;/compressionQuality&gt;
   &lt;/formatModifier&gt;
 &lt;/formatModifiers&gt;
   &lt;gridSubsets&gt;
           &lt;gridSubset&gt;
                   &lt;gridSetName&gt;900913&lt;/gridSetName&gt;
                   &lt;extent&gt;
                           &lt;coords&gt;
                                   &lt;double&gt;\-20037508\.34&lt;/double&gt;
                                   &lt;double&gt;\-20037508\.34&lt;/double&gt;
                                   &lt;double&gt;20037508\.34&lt;/double&gt;
                                   &lt;double&gt;20037508\.34&lt;/double&gt;
                   &lt;/coords&gt;
                   &lt;/extent&gt;
                   &lt;zoomStart&gt;0&lt;/zoomStart&gt;
                   &lt;zoomStop&gt;20&lt;/zoomStop&gt;
           &lt;/gridSubset&gt;
   &lt;/gridSubsets&gt;
   &lt;wmsUrl&gt;
   &lt;string&gt;http://skrivap60/cgi-bin/topo2&lt;/string&gt;
   &lt;string&gt;http://skrivap61/cgi-bin/topo2&lt;/string&gt;
 &lt;/wmsUrl&gt;
 &lt;wmsLayers&gt;topo2\_WMS&lt;/wmsLayers&gt;
 &lt;wmsStyles&gt;default&lt;/wmsStyles&gt;
 &lt;metaWidthHeight&gt;
   &lt;int&gt;2&lt;/int&gt;
   &lt;int&gt;2&lt;/int&gt;
 &lt;/metaWidthHeight&gt;
 &lt;gutter&gt;100&lt;/gutter&gt;
 &lt;tiled&gt;false&lt;/tiled&gt;
 &lt;expireCacheList&gt;
   &lt;expirationRule minZoom=&quot;0&quot; expiration=&quot;604800&quot;/&gt;
   &lt;expirationRule minZoom=&quot;13&quot; expiration=&quot;604800&quot;/&gt;
 &lt;/expireCacheList&gt;
 &lt;expireClientsList&gt;
   &lt;expirationRule minZoom=&quot;0&quot; expiration=&quot;604800&quot;/&gt;
 &lt;/expireClientsList&gt;
 &lt;transparent&gt;true&lt;/transparent&gt;
 &lt;errorMime&gt;application/vnd\.ogc\.se\_xml&lt;/errorMime&gt;
 &lt;bgColor/&gt;
 &lt;palette/&gt;
 &lt;vendorParameters/&gt;

</wmsLayer>
</layers>

This returns nothing at all to the client. However if I add to the section
with:

<grids>
<entry>
<srs>
<number>900913</number>
</srs>
<grid>
<srs>
<number>900913</number>
</srs>
<dataBounds>
<coords>
<double>-20037508.34</double>
<double>-20037508.34</double>
<double>20037508.34</double>
<double>20037508.34</double>
</coords>
</dataBounds>
<gridBounds>
<coords>
<double>-20037508.34</double>
<double>-20037508.34</double>
<double>20037508.34</double>
<double>20037508.34</double>
</coords>
</gridBounds>
<zoomStart>0</zoomStart>
<zoomStop>19</zoomStop>
</grid>
</entry>
</grids>

it works and I get tiles back. Are the grid definitions simply information
that a gmaps request needs?
I'd love any info on this, I've googled the hell out of it but just can't
find an explanation.

best regards

Tom

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GeoWebcache-gmaps-gridsubsets-problem-tp4980782.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi, its done. The bug report can be found at:
https://github.com/GeoWebCache/geowebcache/issues/124 as yet no takers...

Cheers

Tom

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GeoWebcache-gmaps-gridsubsets-problem-tp4980782p4995860.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

Thanks Tom.
This will help prioritize the fix for upcoming dev cycles.

Cheers,
Gabriel
On Fri, Aug 17, 2012 at 4:45 AM, tellett <thomas.ellett@anonymised.com> wrote:

Hi, its done. The bug report can be found at:
https://github.com/GeoWebCache/geowebcache/issues/124 as yet no takers...

Cheers

Tom

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GeoWebcache-gmaps-gridsubsets-problem-tp4980782p4995860.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.