<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>Hello Gery,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>Thanks once again for your reply.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
Grande,sans-serif; background-color: transparent; font-style: normal;"><span>I have, through brute force manipulations, gotten TileCache to begin producing usable polar tiles (EPSG:3995) for OpenLayers. The "trick" was to comment out the resolutions line in my tilecache.cfg file.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>I don't know why this worked. The resolutions we had are the ones that we used for EPSG:4326. <br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;
background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>As soon as I commented out that line and ran tilecache_seed.py with the same parameters, I began getting useful tile images instead of blank ones.</span></div><br><span>The problem is not completely solved yet, because we need to specify the resolution values for the map layers in OpenLayers. I have no idea what the default resolutions used by TileCache are, although the documentation has some hints. "</span>The resolutions array defaults
to having resolutions which are equal to the bbox divided by
512" whatever that means :-P<div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">But I am much further along than I was! Perhaps this will help someone else.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"> Scott<br></div><div> </div><div>--<br>Scott
Chilcote<br>scottchilcote@yahoo.com<br>Cary, NC USA</div><div style="display: block;" class="yahoo_quoted"> <br> <br> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Monday, November 11, 2013 2:55 PM, Gery . <gamejihou@hotmail.com> wrote:<br> </font> </div> <div class="y_msg_container"><div id="yiv1433510880"><div><div style="">Hi Scott,</div><div style=""><br></div><div style="">It's funny that doesn't work, it should. I have the same setting but in rhel 5, but never tried a polar projection. Since mapserver works properly, I'd say that either proj is not working (btw, have you copied the EPSG file in /usr/share/proj? if not do it so and copy that path in the mapfile, that works for me but I use rpm, though)
or tilecache has a problem with polar projections.</div><div style=""><br></div><div style="">So, you just add the configuration stuff in the .cfg and <span style="">run the .py file, and that was all, is it right?</span></div><div style=""><span style=""><br></span></div><div style=""><span style="">Cheers,</span></div><div style=""><span style=""><br></span></div><div style=""><span style="">Gery</span></div><div style=""><br></div><div><span style="">Sent from my i386</span></div><div style=""><br>On Nov 11, 2013, at 19:32, "Scott Chilcote" <<a rel="nofollow" ymailto="mailto:scottchilcote@yahoo.com" target="_blank" href="mailto:scottchilcote@yahoo.com">scottchilcote@yahoo.com</a>> wrote:<br><br></div><div style=""><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;">Hello Gery,<br><br>Thanks very much for replying. I am using TileCache
2.11, installed via pip. The host system is RHEL 6.3. I have built Mapserver 6.4 from source with Proj 4.7.<br><br>My Mapserver configuration file (gshhs_polar.map) is available on pastebin, if you'd care to look:<br><a rel="nofollow" target="_blank" href="http://pastebin.com/69rAdCdz">http://pastebin.com/69rAdCdz</a><br><br>I am using <span style="font-weight:bold;">tilecache_seed.py</span> to create the map tiles, as follows: <br><br><span style="font-weight:bold;">tilecache_seed.py gshhspolar 0 3</span><br><br>Just to clarify, the tilecache.cfg I listed previously and this Mapserver map file work effectively with tilecache_seed.py to create the existing EPSG:4326 tile set that we use for OpenLayers. <br><br>I took those same two
files and attempted to modify them to generate Arctic Polar Stereographic tiles (EPSG:3995). As you can see from the image I included, the map file appears to have been correctly configured. Mapserver was able to produce a PNG file that shows EPSG:3995 quite well.<br><br>So the problem at this point is getting TileCache to create the map tile set. My error is probably very simple, as I do not have much experience with these tools. <br><br>Everything I have tried so far produces only blank tiles, or tiles in the color that we designated for "water". If I change the tilecache.cfg projection (srs) back to EPSG:4326, it works fine but the tiles are not polar. If I change to EPSG:3995, they are blank.<br><br>Thanks very much for any pointers.<br><div><span><br></span></div><div>Scott<br></div><div>--<br>Scott Chilcote<br><a rel="nofollow" ymailto="mailto:scottchilcote@yahoo.com" target="_blank"
href="mailto:scottchilcote@yahoo.com">scottchilcote@yahoo.com</a><br>Cary, NC USA</div><div style="display:block;" class="yiv1433510880yahoo_quoted"> <br>
<br> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Saturday, November 9, 2013 4:15 AM, Gery . <<a rel="nofollow" ymailto="mailto:gamejihou@hotmail.com" target="_blank" href="mailto:gamejihou@hotmail.com">gamejihou@hotmail.com</a>> wrote:<br> </font> </div> <div class="yiv1433510880y_msg_container">Hi Scott,<br><br>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.<br><br>Also, posting the main steps of your procedure and some more settings can help to find what your problem is.<br><br>Cheers,<br><br>Gery<br><br><br>Sent from my i386<br><br>On Nov 9, 2013, at 9:43, "ScottCh" <<a
rel="nofollow" ymailto="mailto:scottchilcote@yahoo.com" target="_blank" href="mailto:scottchilcote@yahoo.com">scottchilcote@yahoo.com</a>> wrote:<br><br>Hi
All,<br><br>I am attempting to use tilecache.py, GSHHS shapefiles, and Mapserver to<br>create Arctic polar stereographic tiles for OpenLayers. <br><br>My Mapserver map file appears to work. It displays a polar map image for<br>EPSG:3995 correctly when I create a PNG image on my web browser:<br><br><<a rel="nofollow" target="_blank" href="http://osgeo-org.1560.x6.nabble.com/file/n5088297/maps-r-us.png">http://osgeo-org.1560.x6.nabble.com/file/n5088297/maps-r-us.png</a>> <br><br>I display this via apache using the URL: <br><a rel="nofollow" target="_blank"
href="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">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</a><br><br>Unfortunately this is as far as I have gotten. When I use<br>*tilecache_seed.py* to create tiles, they are all blank. I have read<br>everything I can find including dozens of forum postings. Nothing has<br>helped yet.<br><br>This is my tilecache.cfg
file:<br><br>[gshhspolar]<br>size=256,256<br>type=WMSLayer<br>url=<a rel="nofollow" target="_blank" href="http://localhost/maps/mapserv?MAP=/var/www/maps/gshhs_polar.map">http://localhost/maps/mapserv?MAP=/var/www/maps/gshhs_polar.map</a><br>#layers=GSHHS_f_L1,GSHHS_f_L2, GSHHS_f_L3, GSHHS_f_L4,
WDBII_border_f_L1,<br>WDBII_border_f_L2&STYLES<br>layers=GSHHS_f_L1,GSHHS_f_L2,GSHHS_f_L3,GSHHS_f_L4,WDBII_border_f_L1,WDBII_border_f_L2<br>#bbox=-180,60,180,90<br>#bbox=-6486320.82608643,-6485942.31407885,6486655.95236211,6486510.25174298<br>#bbox=-20037508.342789244,8399737.8898183592,20037508.342789244,238107693.26496765<br>#bbox=-0.0000,0.0000,0.0000,3333134.0276<br>srs=EPSG:3995<br>#projection= +proj=stere +lat_0=90 +lat_ts=-71 +lon_0=0 +k=1 +x_0=0 +y_0=0<br>+ellps=WGS84 +datum=WGS84 +units=m +no_defs<br>extension=png<br>description=GSHHS Polar Stereographic Map<br>extent_type=loose<br>#maxresolution=0.3515625<br>resolutions=0.3515625,0.17578125,0.087890625,0.0439453125<br>#resolutions=0.3515625, 0.17578125, 0.087890625, 0.0439453125,<br>0.02197265625, 0.010986328125, 0.0054931640625, 0.00274658203125,<br>0.001373291015625<br><br>As you can see many lines are commented out. The bounding box changes and<br>other guesses are just some of
the things I have tried, in the hours I have<br>spent attempting to get tiles that are not blank.<br><br>The only thing that has worked is when I change the projection back to<br>EPSG:4326 (WGS 84). My original tile cache for OpenLayers was not polar. <br>That one worked fine.<br><br>Since proj 4's "epsg" file on my system includes a listing for 3995, it<br>seems to me that I should not have to include a separate line to configure<br>it in the tilecache.cfg file. I have it in the listing above but it is<br>commented out. If I uncomment it, it has no effect.<br><br>I have not added my Mapserver map file here since it is rather long, but I<br>can paste it if it will help. <br><br>Gracious thanks for any clues or expertise. As you may have guessed I still<br>have plenty to learn about these tools!<br><br>Scott C.<br>Cary, NC USA<br><br><br><br>--<br>View this message in context: <a rel="nofollow" target="_blank"
href="http://osgeo-org.1560.x6.nabble.com/Clue-Please-TileCache-won-t-make-Polar-Tiles-for-OpenLayers-tp5088297.html">http://osgeo-org.1560.x6.nabble.com/Clue-Please-TileCache-won-t-make-Polar-Tiles-for-OpenLayers-tp5088297.html</a><br>Sent from the TileCache mailing list archive at <a rel="nofollow" target="_blank" href="http://nabble.com/">Nabble.com</a>.<br>_______________________________________________<br>Tilecache mailing list<br><a rel="nofollow" ymailto="mailto:Tilecache@lists.osgeo.org" target="_blank" href="mailto:Tilecache@lists.osgeo.org">Tilecache@lists.osgeo.org</a><br><a rel="nofollow" target="_blank" href="http://lists.osgeo.org/mailman/listinfo/tilecache">http://lists.osgeo.org/mailman/listinfo/tilecache</a><br><br></div> </div> </div> </div> </div></div></div></div><br><br></div> </div> </div> </div> </div></body></html>