[Tilecache] RV: Newbie question
David Alda Fernandez de Lezea
dalda at ikt.es
Thu Jan 21 05:22:41 EST 2010
Thanks for your response Tobias.
According to that, what I would do is:
My Mapfile
NAME "WMSSERVER"
STATUS ON
EXTENT 460000 4710000 610000 4820000 # Euskadi
----- Layer definition -----
...
Question: Do I have to specify an wms_extent tag at LAYER LEVEL?
----------------------------
END
My tilecache.cfg
[recintos]
type=WMSLayer
layers=RecintosSigpac,orto1
srs=EPSG:23030
maxResolution=292.96875
bbox=460000, 4710000, 610000, 4820000
url=http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wms.map
extent_type=loose
And finally my Openlayer app:
function init(){
map = new OpenLayers.Map( $('map'), {projection: new OpenLayers.Projection("EPSG:23030"), units: 'm'});
layer = new OpenLayers.Layer.WMS( "recintos","http://192.168.1.65/cgi-bin/tilecache-2.10/tilecache.py?",
{layers: 'recintos'},{isBaseLayer: true,transparent: true, visibility: false,units: 'm', maxExtent: new OpenLayers.Bounds(460000, 4710000, 610000, 4820000),maxResolution: 292.96875} );
map.addLayer(layer);
map.addControl(new OpenLayers.Control.Permalink());
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.zoomToExtent(new OpenLayers.Bounds(460000, 4710000, 610000, 4820000));
}
And the test fails. There are a lot of pink squares. Any ides??
When you talk about '... making the two layers to have the same bounding box ...' this bounding box is refered to the MAPFILE's MAP EXTENT or LAYER's MAP EXTENT, i.e., wms_extent??
Thanks.
Un saludo,
··················································································
David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)
··················································································
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··················································································
email: dalda at ikt.es web: www.ikt.es
··················································································
-----Mensaje original-----
De: tilecache-bounces at openlayers.org [mailto:tilecache-bounces at openlayers.org] En nombre de joel bandibas
Enviado el: jueves, 21 de enero de 2010 10:44
Para: tilecache at openlayers.org
Asunto: Re: [Tilecache] RV: Newbie question
Hello David,
If you successfully used Tilecache with one WMS layer, I think combining two layers would almost follow the same procedure if your Mapserver layers are defined in one Mapfile, thus making the two layers to have the same bounding box and other settings.
In your tilecache config, you could combine the two layers with the lines like
[two_layers_name]
Layers=layer1,layer2
Good Day.
Joel
GSJ
----- Original Message -----
From: "David Alda Fernandez de Lezea" <dalda at ikt.es>
To: <tilecache at openlayers.org>
Sent: Thursday, January 21, 2010 5:57 PM
Subject: [Tilecache] RV: Newbie question
Sorry, my fault. Here is my question again.
Hello list,
I'm quite new in Tilecache, and I have some questions to which I don't find
any answer anywhere. As I posted yesterday, I'm developing a GIS Viewer
based on MapServer + Openlayers + Tilecache. I've managed to use tilecache
with a WMS layer, but now I want to combine two WMS layer to be tiled
together (an ortophoto and some parcels). Is this possible?? If it's
possible, what are the steps to get it work together??
Thanks in advance.
Un saludo,
··················································································
David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)
··················································································
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··················································································
email: dalda at ikt.es web: www.ikt.es
<http://www.ikt.es/>
··················································································
--------------------------------------------------------------------------------
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
--------------------------------------------------------------------------------
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
_______________________________________________
Tilecache mailing list
Tilecache at openlayers.org
http://openlayers.org/mailman/listinfo/tilecache
More information about the Tilecache
mailing list