[Tilecache] Problems with Tilecache and WMS
"tschobber tschöbbi"
tschobber at gmx.at
Wed Mar 25 08:51:35 EDT 2009
Ok, I solved the problem - the problem was that I had two config files - one in the directory of the cgi file and the other in "/etc" direction - both had the same specs, but when I removed the one in the directory of the cgi file my map got drawn. ;)
regards,
Martin
--------------------------------------------------
Hi Daniel,
thanks alot for this link - you made my day ;)!!
But I have still the problem with the pink broken tiles ... is that due to the postgis database? (my first problem)
Martin
-------- Original-Nachricht --------
> Datum: Wed, 25 Mar 2009 18:08:19 +0900
> Von: Daniel Kastl <orkney at gmx.de>
> An: "tschobber tschöbbi" <tschobber at gmx.at>
> CC: tilecache at openlayers.org
> Betreff: Re: [Tilecache] Problems with Tilecache and WMS
> Hi Martin,
>
> Recently this explanation helped me a lot to get OpenLayers and
> TileCache work together with non-standard scales and resolutions.
> http://code.google.com/p/rcoos/wiki/TileCacheNotes
>
> Maybe this works for you, too.
>
> Daniel
>
>
> tschobber tschöbbi schrieb:
> > Hi,
> >
> > thanks for the answer, but now I get pink broken tiles :( ... why? The
> example is working without Tilecache. Second, a short question concerning my
> second problem (see my last email) - does Tilecache have probelems with
> the Openlayers "scales" attribute, because without this attribute Tilecache
> is working but when I add it I just get nothing.
> >
> > best regards,
> > Martin
> >
> > -------- Original-Nachricht --------
> >
> >> Datum: Wed, 25 Mar 2009 11:02:45 +0900
> >> Von: "joel bandibas" <joel.bandibas at aist.go.jp>
> >> An: "tschobber tschöbbi" <tschobber at gmx.at>, "Linde Ackermans"
> <roselinda.ackermans at ec.europa.eu>
> >> CC: tilecache at openlayers.org
> >> Betreff: Re: [Tilecache] Problems with Tilecache and WMS
> >>
> >
> >
> >> Hello Martin,
> >>
> >> How about replacing the "maxExtent" statement in your tilecache.cfg
> file
> >> to
> >> "bbox".
> >>
> >> Joel
> >> GSJ/AIST
> >>
> >>
> >> ----- Original Message -----
> >> From: ""tschobber tschöbbi"" <tschobber at gmx.at>
> >> To: "Linde Ackermans" <roselinda.ackermans at ec.europa.eu>
> >> Cc: <tilecache at openlayers.org>
> >> Sent: Tuesday, March 24, 2009 8:42 PM
> >> Subject: Re: [Tilecache] Problems with Tilecache and WMS
> >>
> >>
> >> Hi Linde,
> >>
> >> concerning my first problem (I have a new problem described at end of
> mail
> >> :( ) thanks for the answer but now I've defined my layer in the
> >> tilecache.cfg like this:
> >>
> >> [mapserverwms_agg]
> >> type=WMS
> >> url= http://localhost/cgi-bin/mapserv?map=data/wms2.map
> >>
> layers=bezirk_grenzen01,staat01,fluss01,bezirk_grenzen01,stadt01,layer_mapany_080305_3ba6226287c1622
> >> maxResolution = 420
> >> srs=EPSG:31297
> >> maxExtent =
> >> 384619.116883103,467965.222077892,505102.701298797,534231.193506524
> >> ----------------------------------------------------------------------
> >>
> >> The mapfile has the same maxextend and the projection code of wms and
> all
> >> layers is 31297 --> the maxResolution is the same as in the Openlayers
> >> html
> >> file:
> >>
> >> ---------------------------------------------------------------
> >> var mapOptions = {maxExtent: new
> >>
> OpenLayers.Bounds(384619.116883103,467965.222077892,505102.701298797,534231.193506524),
> >> maxResolution:420,numZoomLevels:21,
> >> projection:"EPSG:31297"
> >> };
> >>
> >> function init(){
> >> map = new OpenLayers.Map($('map'),mapOptions);
> >> layer = new OpenLayers.Layer.WMS(
> >> "tiledcache","http://localhost/cgi-bin/tilecache-2.10/tilecache.cgi?",
> >> {layers: 'mapserverwms_agg',format:'image/png'} );
> >> ----------------------------------------------------------------
> >> Here's the beginning of my mapfile (wms2.map) + a layer definition:
> >>
> >> MAP
> >>
> >> NAME "Map Viewer"
> >> STATUS ON
> >> SIZE 2400 1200
> >> EXTENT 384619.116883103 467965.222077892 505102.701298797
> >> 534231.193506524
> >> SHAPEPATH "data/"
> >> IMAGECOLOR 255 255 255
> >> UNITS DD
> >> OUTPUTFORMAT
> >> NAME png
> >> DRIVER "GD/PNG"
> >> MIMETYPE "image/png"
> >> IMAGEMODE RGB
> >> EXTENSION "png"
> >> FORMATOPTION "INTERLACE=OFF"
> >> END
> >> PROJECTION
> >> "init=epsg:31297"
> >> END
> >>
> >> WEB
> >> IMAGEPATH "/tmp/ms_tmp/"
> >> IMAGEURL "/ms_tmp/"
> >> METADATA
> >> "wms_title" "Map Viewer"
> >> "wms_onlineresource"
> >> "http://localhost/cgi-bin/mapserv?map=/srv/www/cgi-bin/data/wms2.map"
> >> "wms_srs" "EPSG:31297"
> >> END
> >> END
> >>
> >> #############################################################
> >>
> >> LAYER
> >> CONNECTION "user=root password=pgsql dbname=ais host=ti.geo.at"
> >> CONNECTIONTYPE POSTGIS
> >> DATA "the_geom from gd_line_001"
> >> METADATA
> >> END
> >> NAME "land_grenzen01"
> >> PROJECTION
> >> "init=epsg:31297"
> >> END
> >> SIZEUNITS PIXELS
> >> STATUS ON
> >> TOLERANCEUNITS PIXELS
> >> TRANSPARENCY 100
> >> TYPE LINE
> >> UNITS METERS
> >> CLASS
> >> NAME "class0"
> >> METADATA
> >> END
> >> STYLE
> >> ANGLE 360
> >> COLOR 99 99 99
> >> # SIZE 2
> >> WIDTH 2
> >> # SYMBOL 1
> >> END
> >> END
> >> END
> >> --------------------------------------------------------------------
> >>
> >> When I try to load this in Openlayers I only get pink tiles with a red
> >> point
> >> in it.
> >>
> >> My Second problem:
> >>
> >> I tried an other example from someone else having problems with
> Tilecache:
> >> The problem is that the map isn't drawn when using the "scales"
> attribute
> >> - here are the mapoptions he's using:
> >>
> >> var mapOptions = { projection: mapProjection,
> >>
> >> scales: [17500000, 14000000, 7000000, 3000000, 2000000, 1000000,
> 400000,
> >> 250000],
> >>
> >> //maxResolution: "auto",
> >> --> commented out, but when he's using this code its working
> >> //maxExtent: mapRestriction,
> >> restrictedExtent: mapRestriction,
> >>
> >> controls: []
> >>
> >> };
> >> In the tilecahce config he has just given the layers, layername and
> url.
> >>
> >> Would be very nice if someone could help us!
> >>
> >> Thanks in advance!
> >>
> >> martin
> >>
> >>
> >>
> >>
> >> -------- Original-Nachricht --------
> >>
> >>> Datum: Tue, 24 Mar 2009 00:49:11 -0700 (PDT)
> >>> Von: Linde Ackermans <roselinda.ackermans at ec.europa.eu>
> >>> An: tilecache at openlayers.org
> >>> Betreff: Re: [Tilecache] Problems with Tilecache and WMS
> >>>
> >>> Hi,
> >>>
> >>> Couldn't it be the famous resolutions problem ? As stated in the
> >>>
> >> tilecache
> >>
> >>> doc, resolutions in the tilecache config and the openlayers map
> >>>
> >> definition
> >>
> >>> must match ....
> >>>
> >>> Linde
> >>>
> >>>
> >>> Hi,
> >>>
> >>> I have the following problem:
> >>>
> >>> I have defined a layer in the /etc/tilecache.cfg like this (my
> >>> tilecache.cgi is in /srv/www/cgi-bin/tilecahce-2.10/):
> >>>
> >>> [mapserverwms_agg]
> >>> type=WMS
> >>> url= http://localhost/cgi-bin/mapserv?map=data/wms2.map
> >>> layers=land_grenzen01,layer_mapany_080305_3ba6226287c1622,
> >>> bezirk_grenzen_01, land_grenzen01,staat01,fluss01, stadt01
> >>> extent_type=loose
> >>>
> >>> -------------------------------------------------------
> >>> The second code shows the code snippet of openlayers.htm
> >>>
> >>> --------------------------------
> >>> var mapOptions = {maxExtent: new
> >>>
> >>>
> >>
> OpenLayers.Bounds(384619.116883103,467965.222077892,505102.701298797,534231.193506524),
> >>
> >>> maxResolution:420,numZoomLevels:21,projection:"EPSG:31297"};
> >>>
> >>>
> >>>
> >>> --
> >>> View this message in context:
> >>>
> >>>
> >>
> http://n2.nabble.com/Problems-with-Tilecache-and-WMS-tp2520724p2525217.html
> >>
> >>> Sent from the TileCache mailing list archive at Nabble.com.
> >>>
> >>> _______________________________________________
> >>> Tilecache mailing list
> >>> Tilecache at openlayers.org
> >>> http://openlayers.org/mailman/listinfo/tilecache
> >>>
> >> --
> >> Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit
> allen:
> >> http://www.gmx.net/de/go/multimessenger01
> >> _______________________________________________
> >> Tilecache mailing list
> >> Tilecache at openlayers.org
> >> http://openlayers.org/mailman/listinfo/tilecache
> >>
> >
> >
--
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
More information about the Tilecache
mailing list