[Tilecache] Clue Please - TileCache won't make Polar Tiles for OpenLayers
Gery .
gamejihou at hotmail.com
Sat Nov 9 01:15:22 PST 2013
Hi Scott,
Which tilecache version are you using? I've never tried polar projections, I don't know if that's an issue with specific versions. However I read that proj should help here.
Also, posting the main steps of your procedure and some more settings can help to find what your problem is.
Cheers,
Gery
Sent from my i386
On Nov 9, 2013, at 9:43, "ScottCh" <scottchilcote at yahoo.com> wrote:
Hi All,
I am attempting to use tilecache.py, GSHHS shapefiles, and Mapserver to
create Arctic polar stereographic tiles for OpenLayers.
My Mapserver map file appears to work. It displays a polar map image for
EPSG:3995 correctly when I create a PNG image on my web browser:
<http://osgeo-org.1560.x6.nabble.com/file/n5088297/maps-r-us.png>
I display this via apache using the URL:
http://localhost/maps/mapserv?MAP=/var/www/maps/gshhs_polar.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=GSHHS_f_L1,GSHHS_f_L2,GSHHS_f_L3,GSHHS_f_L4&STYLES=&BBOX=-6486320.82608643,-6485942.31407885,6486655.95236211,6486510.25174298&SRS=EPSG:3995&WIDTH=800&HEIGHT=800&FORMAT=image/png
Unfortunately this is as far as I have gotten. When I use
*tilecache_seed.py* to create tiles, they are all blank. I have read
everything I can find including dozens of forum postings. Nothing has
helped yet.
This is my tilecache.cfg file:
[gshhspolar]
size=256,256
type=WMSLayer
url=http://localhost/maps/mapserv?MAP=/var/www/maps/gshhs_polar.map
#layers=GSHHS_f_L1,GSHHS_f_L2, GSHHS_f_L3, GSHHS_f_L4, WDBII_border_f_L1,
WDBII_border_f_L2&STYLES
layers=GSHHS_f_L1,GSHHS_f_L2,GSHHS_f_L3,GSHHS_f_L4,WDBII_border_f_L1,WDBII_border_f_L2
#bbox=-180,60,180,90
#bbox=-6486320.82608643,-6485942.31407885,6486655.95236211,6486510.25174298
#bbox=-20037508.342789244,8399737.8898183592,20037508.342789244,238107693.26496765
#bbox=-0.0000,0.0000,0.0000,3333134.0276
srs=EPSG:3995
#projection= +proj=stere +lat_0=90 +lat_ts=-71 +lon_0=0 +k=1 +x_0=0 +y_0=0
+ellps=WGS84 +datum=WGS84 +units=m +no_defs
extension=png
description=GSHHS Polar Stereographic Map
extent_type=loose
#maxresolution=0.3515625
resolutions=0.3515625,0.17578125,0.087890625,0.0439453125
#resolutions=0.3515625, 0.17578125, 0.087890625, 0.0439453125,
0.02197265625, 0.010986328125, 0.0054931640625, 0.00274658203125,
0.001373291015625
As you can see many lines are commented out. The bounding box changes and
other guesses are just some of the things I have tried, in the hours I have
spent attempting to get tiles that are not blank.
The only thing that has worked is when I change the projection back to
EPSG:4326 (WGS 84). My original tile cache for OpenLayers was not polar.
That one worked fine.
Since proj 4's "epsg" file on my system includes a listing for 3995, it
seems to me that I should not have to include a separate line to configure
it in the tilecache.cfg file. I have it in the listing above but it is
commented out. If I uncomment it, it has no effect.
I have not added my Mapserver map file here since it is rather long, but I
can paste it if it will help.
Gracious thanks for any clues or expertise. As you may have guessed I still
have plenty to learn about these tools!
Scott C.
Cary, NC USA
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Clue-Please-TileCache-won-t-make-Polar-Tiles-for-OpenLayers-tp5088297.html
Sent from the TileCache mailing list archive at Nabble.com.
_______________________________________________
Tilecache mailing list
Tilecache at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/tilecache
More information about the Tilecache
mailing list