[mapserver-users] Re: Mapserver + mapcache + Google Map

mkrassovski krassovskimb at ornl.gov
Fri May 18 04:53:23 PDT 2012


Yes, that is definitely wrong. As a client I use Google V3 API example from
Mapcache docs, adopted to what I have. It is quite simple, and it is hard to
mess it up.

var map = new google.maps.Map("map", { myOptions });
var layerOptions = {
  getTileUrl: function(coord, zoom) {
    return "/mapcache/gmaps/test2 at WGS84/" + zoom + "/" + coord.x + "/" +
coord.y + ".png";
  },
  tileSize: new google.maps.Size(256,256)
};
map.overlayMapTypes.insertAt(0, new google.maps.ImageMapType(layerOptions));

If I use 900913 it doesn't work at all. I get only one dot. With 4326 this
is the best result that I could get so far:
http://cdiac3.ornl.gov/waves/img/wms_4326_2.png

Firebug does not show requests with negative y anymore, it  just gives 404
complains like:
"NetworkError: 404 Not Found -
http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test2@WGS84/1/1/2.png"
And each of them has its corresponding entry in apache log:
[Fri May 18 07:21:36 2012] [error] [client ] tile y=-1 not in [0,2[,
referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html

How y becomes negative I can't imagine.
 
Mapserver it self appears to work correctly:
[Fri May 18 07:21:36 2012].581292 CGI Request 1 on process 6111
[Fri May 18 07:21:36 2012].582111 msWMSLoadGetMapParams(): enabling
non-square pixels.
[Fri May 18 07:21:36 2012].588029 msDrawMap(): kicking into non-square pixel
preserving mode.
[Fri May 18 07:21:36 2012].588086 msDrawMap(): rendering using outputformat
named png (AGG/PNG).
[Fri May 18 07:21:36 2012].588119 msDrawMap(): WMS/WFS set-up and query,
0.000s
[Fri May 18 07:21:36 2012].588847 msOGRFileOpen(underway_ai.ovf)...
[Fri May 18 07:21:36 2012].589075
OGROPen(/var/www/html/waves/underway/maps/underway_ai.ovf)
[Fri May 18 07:21:44 2012].856079
msConnPoolRegister(atl_ind,underway_ai.ovf,0x138f0e0)
[Fri May 18 07:22:35 2012].113625 msOGRLayerClose(underway_ai.ovf).
[Fri May 18 07:22:35 2012].113675
msOGRFileClose(/var/www/html/waves/underway/maps/underway_ai.ovf,0).
[Fri May 18 07:22:35 2012].113684
msConnPoolRelease(atl_ind,underway_ai.ovf,0x138f0e0)
[Fri May 18 07:22:35 2012].113695 msConnPoolClose(underway_ai.ovf,0x138f0e0)
[Fri May 18 07:22:35 2012].115077 msDrawMap(): Layer 0 (atl_ind), 58.527s
[Fri May 18 07:22:35 2012].115103 msDrawMap(): Drawing Label Cache, 0.000s
[Fri May 18 07:22:35 2012].115115 msDrawMap() total time: 58.533s
[Fri May 18 07:22:35 2012].219028 msSaveImage(stdout) total time: 0.104s
[Fri May 18 07:22:35 2012].219490 mapserv request processing time (msLoadMap
not incl.): 58.638s
[Fri May 18 07:22:35 2012].219506 msFreeMap(): freeing map at 0x12f39c0.

So, I'm stuck. Don't know where else to dig.
 

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4975582.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list