Hello Robert,

so did Jukka's reply answered your question? If not, would you be a
little more specific about what's not working with the integrated gwc?
paste your geowebcache.xml if you can, and explain what's not working.

TIA,
Gabriel

On Tue, Dec 13, 2011 at 6:19 AM, Rahkonen Jukka
<[email protected]> wrote:
> Hi,
>
> The problem with OpenLayers is that it must be configured to suit exactly
> the corresponding tiles. We have captured the map definitions from the
> automaticly created GWC demos and reused them in our own applications.  This
> is an example of making OpenLayers to use our EPSG:2393 grid set
>
> var mapOptions = {
> resolutions: [2048.0, 1024.0, 512.0, 256.0, 128.0, 64.0, 32.0, 16.0, 8.0,
> 4.0, 2.0, 1.0, 0.5, 0.25],
> projection: new OpenLayers.Projection('EPSG:2393'),
> maxExtent: new
> OpenLayers.Bounds(3050187.8969,6585228.0377,4098763.8969,8158092.0377),
> units: "meters",
> controls: []
> };
> map = new OpenLayers.Map('map', mapOptions );
> map.addControl(new OpenLayers.Control.PanZoomBar({
>   position: new OpenLayers.Pixel(2, 15)
> }));
> map.addControl(new OpenLayers.Control.Navigation());
> map.addControl(new OpenLayers.Control.Scale($('scale')));
> map.addControl(new OpenLayers.Control.MousePosition({element:
> $('location')}));
> var demolayer = new OpenLayers.Layer.WMS(
> "GWC_ilmakuvat","../service/wms",
> {layers: 'GWC_ilmakuvat', format: 'image/png' },
> { tileSize: new OpenLayers.Size(256,256) }
> );
> map.addLayer(demolayer);
>
>
> If EPSG:3067 grid set is used a different mapOptions are needed but all the
> rest is the same
>
> var mapOptions = {
> resolutions: [8192.0, 4096.0, 2048.0, 1024.0, 512.0, 256.0, 128.0, 64.0,
> 32.0, 16.0, 8.0, 4.0, 2.0, 1.0, 0.5, 0.25],
> projection: new OpenLayers.Projection('EPSG:3067'),
> maxExtent: new OpenLayers.Bounds(-548576.0,6291456.0,1548576.0,8388608.0),
> units: "meters",
>
> -Jukka Rahkonen-
>
> ________________________________
> Lähettäjä: Robert Buckley [mailto:[email protected]]
> Lähetetty: 13. joulukuuta 2011 10:54
> Vastaanottaja: [email protected]
> Aihe: Re: [Geoserver-users] Change to external geowebcache and delete
> integrated geowebcache
>
> Hi,
>
> My problem is that I have to use openlayers to display the data.
> I have create gridsets for EPSG:25832 and EPSG:31467 which work in the
> opengeosuite which has an independant Geowebache, but in my geoserver.2.1.2
> the same gridsets are not shown.
>
>
> Udig is a great client. I didn´t realize one could change the srs on cached
> layers or even define your own scales.
>
> yours,
>
> Rob
>
> ________________________________
> Von: Rahkonen Jukka <[email protected]>
> An: 'Robert Buckley' <[email protected]>;
> "'[email protected]'"
> <[email protected]>
> Gesendet: 8:34 Dienstag, 13.Dezember 2011
> Betreff: Re: [Geoserver-users] Change to external geowebcache and delete
> integrated geowebcache
>
> Hi,
>
>
> If you mean self made grid sets using some other SRID than the default sets,
> then for sure they work. Use for example uDig for looking at your GWC WMS-C
> service because it can use it automatically by parsing the GetCapabilities.
> That way you can avoid configuration problems with OpenLayers.
>
> This is what I have on geowebcache for one layer.
> - <gridSubsets>
> - <gridSubset>
>   <gridSetName>EPSG:2393</gridSetName>
>   </gridSubset>
> - <gridSubset>
>   <gridSetName>JHS180:EPSG:3067</gridSetName>
>   </gridSubset>
>   </gridSubsets>
>
> And these are the corresponding grid sets
>
>
>
> - <gridSet>
>   <name>JHS180:EPSG:3067</name>
> - <srs>
>   <number>3067</number>
>   </srs>
> - <extent>
> - <coords>
>   <double>-548576</double>
>   <double>6291456</double>
>   <double>1548576</double>
>   <double>8388608</double>
>   </coords>
>   </extent>
>   <alignTopLeft>false</alignTopLeft>
> - <resolutions>
>   <double>8192</double>
>   <double>4096</double>
>   <double>2048</double>
>   <double>1024</double>
>   <double>512</double>
>   <double>256</double>
>   <double>128</double>
>   <double>64</double>
>   <double>32</double>
>   <double>16</double>
>   <double>8</double>
>   <double>4</double>
>   <double>2</double>
>   <double>1</double>
>   <double>0.5</double>
>   <double>0.25</double>
> - <!--
>
>  define the complete set of resolutions
>
>   -->
>   </resolutions>
>   <tileHeight>256</tileHeight>
>   <tileWidth>256</tileWidth>
>   </gridSet>
> - <gridSet>
>   <name>EPSG:2393</name>
> - <srs>
>   <number>2393</number>
>   </srs>
> - <extent>
> - <coords>
>   <double>3050187.8969</double>
>   <double>6585228.0377</double>
>   <double>3761549.0272</double>
>   <double>7803095.3519</double>
>   </coords>
>   </extent>
>   <alignTopLeft>false</alignTopLeft>
> - <resolutions>
>   <double>2048</double>
>   <double>1024</double>
>   <double>512</double>
>   <double>256</double>
>   <double>128</double>
>   <double>64</double>
>   <double>32</double>
>   <double>16</double>
>   <double>8</double>
>   <double>4</double>
>   <double>2</double>
>   <double>1</double>
>   <double>0.5</double>
>   <double>0.25</double>
> - <!--
>
>  define the complete set of resolutions
>
>   -->
>   </resolutions>
>   <tileHeight>256</tileHeight>
>   <tileWidth>256</tileWidth>
>   </gridSet>
>
> -Jukka Rahkonen-
>
> ________________________________
> Lähettäjä: Robert Buckley [mailto:[email protected]]
> Lähetetty: 13. joulukuuta 2011 9:15
> Vastaanottaja: [email protected]
> Aihe: [Geoserver-users] Change to external geowebcache and delete integrated
> geowebcache
>
> Hi,
>
> I would like to change my geowebcache from integrated to external due to
> problems with custom srs definitions which don´t work with the integrated
> version.
>
> I have already cached some layers in 900913 and 4326.
>
> Is there anything I should consider before doing this? My method is to
> delete the following jars
>
> gwc-2.1.2.jar
> gwc-core-1.3-RC1.jar
> gwc-diskquota-1.3-RC1.jar
> gwc-georss-1.3-RC1.jar
> gwc-gmaps-1.3-RC1.jar
> gwc-kml-1.3-RC1.jar
> gwc-rest-1.3-RC1.jar
> gwc-tms-1.3-RC1.jar
> gwc-ve-1.3-RC1.jar
> gwc-wms-1.3-RC1.jar
> gwc-wmts-1.3-RC1.jar
>
> and copy the precached layers into the new geocache app
>
>
> If anyone has done this successfully before and know of a better way please
> let me know.
>
> thanks,
>
> Rob
>
> System:
> Linux Ubuntu 10.04
> Tomcat6
> Geoserver 2.1.2
>
>
>
>
>
> ------------------------------------------------------------------------------
> Systems Optimization Self Assessment
> Improve efficiency and utilization of IT resources. Drive out cost and
> improve service delivery. Take 5 minutes to use this Systems Optimization
> Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



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

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to