[Spanish] TileCache - MapServer - OpenLayer - Windows XP -

Lorenzo Becchi lorenzo at ominiverdi.com
Wed Jul 2 06:50:05 EDT 2008


confirmo WMS layer

pero no he entendido que error da la URL del mosaico que no funciona, me 
he perdido algo?

ciao
Lorenzo




Jorge Gaspar Sanz Salinas wrote:
> 2008/7/1 Guzman Rejon Cabello <drejon at auna.com>:
>   
>> Buenos días.
>>
>>
>>
>> La integración de openLayer con MapServer mediante servicio WMS de un mapa
>> mío local funciona correctamente. El problema lo tengo cuando intento usar
>> el CGI de TileCache para mostrar el mapa anterior.
>>
>>
>>
>> Definición del fichero index.html:
>>
>>
>>
>> ……………
>>
>> var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
>>
>>                     "http://labs.metacarta.com/wms/vmap0",
>>
>>                     {layers: 'basic'} );
>>
>>
>>
>> var jpl_wms = new OpenLayers.Layer.WMS( "Capa de Manzanas", urlArray,
>>
>>
>> {map:'C:/ms4w/apps/ka-map-1.0/gmap/mapaValdilecha/gmap75_wms.map',
>>
>>
>> layers: 'bathymetry,land_fn',format: "image/png"} );
>>
>>
>>
>> var dm_wms = new OpenLayers.Layer.WMS( "Tile Cache",
>> "http://localhost/Openlayer/tilecache/tilecache.cgi?",
>>
>>                     {layers: "Alaska", format: "image/png" });
>>
>> …………..
>>
>>
>>
>>
>>
>> Definición del fichero tilecache.cfg:
>>
>>
>>
>> ……..
>>
>> [Alaska]
>>
>> type=MapServerLayer
>>
>> mapfile=C:/ms4w/apps/ka-map-1.0/gmap/mapaValdilecha/gmap75.map
>>
>> extension=png
>>
>> size=256,256
>>
>> bbox=-2200000, -712631, 3072800, 3840000
>>
>> resolutions=10583.327618336418,5291.663809168209,3527.775872778807,2645.8319045841044,1763.8879363894034,881.9439681947017,529.166380916821,352.7775872778807,264.5831904584105,17.63887936389403,8.819439681947015,5.291663809168209,3.527775872778806,2.6458319045841043,1.763887936389403,0.8819439681947016,0.35277758727788067
>>
>> layers=bathymetry,land_fn
>>
>> srs=EPSG:42304
>>
>> extent_type=loose
>>
>> ………
>>
>>
>>
>> La primera y segunda capa WMS funciona correctamente, la tercera es la que
>> me esta dando problemas.
>>
>> Saludos y muchas gracias por vuestro interés.
>>
>>     
>
> Creo que deberías usar el tipo de capa TileCache, es específica par ese servidor
>
> Es un tipo de capa pensada para servicios de tileado o "slippy maps"
> que dicen los angloparlantes.
>
> [2 minutos después]
>
> Aunque igual me equivoco porque en [2] dice que se debe usar el tipo
> de layer WMS, pero vete a saber si está desfasada....
>
> Un saludo
>
> [1] http://dev.openlayers.org/docs/files/OpenLayers/Layer/TileCache-js.html
> [2] http://tilecache.org/readme.html#using-tilecache-with-openlayers
>   


More information about the Spanish mailing list