[mapserver-users] Mapserver + mapcache + Google Map
Travis Kirstine
traviskirstine at gmail.com
Mon May 7 12:37:51 PDT 2012
Does apache have permission to write to the mapcache directory
"/var/www/mapcache/cache"?
On 7 May 2012 14:13, Krassovski, Misha B. <krassovskimb at ornl.gov> wrote:
> I work on a project that has 4.5 mil points (each one is a single dot, with lat, lon), that have to be shown on the world map.
> I managed to do it with mapserver (wms) + Google map. It works fine, but very slow, so I decided to add a mapcache caching system.
> Spend already a week but still can't get it work. Please take a look at error messages and my map and mapcache files.
> Thank you in advance for the help!!
>
>
> Here are error messages that I have.
> In Firebug console:
> "NetworkError: 404 Not Found - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/-1/1.png"
> "NetworkError: 404 Not Found - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/-1/2.png"
> "NetworkError: 502 Bad Gateway - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/0/2.png"
> "NetworkError: 500 Internal Server Error - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/0/1.png"
> "NetworkError: 502 Bad Gateway - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/1/1.png"
> "NetworkError: 502 Bad Gateway - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/0/3.png"
> and so on …..
>
> In apache log:
> [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tile x=-1 not in [0,4[, referer: http://cdiac5.ornl.gov/waves/underway/test.html
> [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] mapcache fcgi conf file: /var/www/mapcache/mapcache.xml, referer: http://cdiac5.ornl.gov/waves/underway/test.html
> [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tile x=-1 not in [0,4[, referer: http://cdiac5.ornl.gov/waves/underway/test.html
> [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] curl failed to request url http://localhost/cgi-bin/mapserv?map=/var/www/html/waves/underway/maps/test.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=-20428865.927609,-20428865.927609,20428865.927609,20428865.927609&WIDTH=1044&HEIGHT=1044&FORMAT=image/png&SRS=EPSG:900913&LAYERS=atl_ind&TRANSPARENT=true : Failed to connect to ::1: Permission denied, referer: http://cdiac5.ornl.gov/waves/underway/test.html
> [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tileset test: unknown error (another thread/process failed to create the tile I was waiting for), referer: http://cdiac5.ornl.gov/waves/underway/test.html
> and so on ……
>
> If I run just the failed url from apache log, it creates 1044x1044 image with a single point in the center, and gives no error messages.
>
> My mapfile:
> MAP
> NAME "underway_ai"
> DEBUG ON
> STATUS ON
> SIZE 970 715
> EXTENT -180 -90 180 90
> UNITS DD
> IMAGETYPE GIF
> SHAPEPATH "/var/www/html/waves/underway/images"
>
> WEB
> IMAGEPATH "/var/www/html/waves/tmp"
> IMAGEURL "tmp/"
> METADATA
> "ows_enable_request" "*"
> "wms_title" "Underway_ai"
> "wms_onlineresource" "http://cdiac5.ornl.gov/cgi-bin/mapserv?"
> "wms_srs" "epsg:900913"
> "wms_enable_request" "GetMap"
> END
> END
>
> PROJECTION
> "init=epsg:900913"
> END
>
> SYMBOL
> NAME "Dot"
> TYPE ELLIPSE
> POINTS 1 1 END
> FILLED TRUE
> END
>
> LAYER
> DEBUG ON
> CONNECTION "underway_ai.ovf"
> CONNECTIONTYPE OGR
> DATA "atl_ind"
> METADATA
> "wms_srs" "epsg:900913"
> "wms_title" "atl_ind"
> "wms_group_title" "test_group"
> "wms_exceptions_format" "application/vnd.ogc.se_xml"
> END
> NAME "atl_ind"
>
> PROJECTION
> "init=epsg:900913"
> END
> GROUP "atl_ind"
> SIZEUNITS PIXELS
> TYPE POINT
> STATUS ON
> TOLERANCE 0
> TOLERANCEUNITS PIXELS
> CLASS
> STYLE
> SYMBOL "Dot"
> SIZE 2
> COLOR 255 0 0
> END
> END
> END
>
> END
>
> and my mapcache file:
> <mapcache>
> <cache name="disk" type="disk">
> <base>/var/www/mapcache/cache</base>
> <symlink_blank/>
> </cache>
>
> <source name="vmap0" type="wms">
> <getmap>
> <params>
> <FORMAT>image/png</FORMAT>
> <LAYERS>atl_ind</LAYERS>
> <TRANSPARENT>true</TRANSPARENT>
> </params>
> </getmap>
>
> <http>
> <url>http://localhost/cgi-bin/mapserv?map=/var/www/html/waves/underway/maps/test.map</url>
> </http>
> </source>
> <tileset name="test">
> <source>vmap0</source>
> <cache>disk</cache>
> <grid>WGS84</grid>
> <grid>g</grid>
> <grid>GoogleMapsCompatible</grid>
> <format>PNG</format>
> <metatile>5 5</metatile>
> <metabuffer>10</metabuffer>
> <expires>3600</expires>
> </tileset>
> <tileset name="test1">
> <source>vmap0</source>
> <cache>disk</cache>
> <grid>WGS84</grid>
> <grid>g</grid>
> <grid>GoogleMapsCompatible</grid>
> <format>PNG</format>
> <metatile>5 5</metatile>
> <metabuffer>10</metabuffer>
> <expires>3600</expires>
> </tileset>
> <default_format>JPEG</default_format>
> <service type="wms" enabled="true">
> <full_wms>assemble</full_wms>
> <resample_mode>bilinear</resample_mode>
> <format>JPEG</format>
> <maxsize>4096</maxsize>
> </service>
> <service type="wmts" enabled="true"/>
> <service type="tms" enabled="true"/>
> <service type="kml" enabled="true"/>
> <service type="gmaps" enabled="true"/>
> <service type="ve" enabled="true"/>
> <service type="demo" enabled="true"/>
>
> <errors>report</errors>
> <lock_dir>/var/www/mapcache/cache</lock_dir>
> <log_level>debug</log_level>
>
> </mapcache>
>
>
>
>
> Thank you!
> Misha
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list