From: AllieH <all...@ll...> - 2010-06-29 14:03:35
|
Arne, I seemed to have made some progress. I commented out the line in geowebcache-servlet.xml so that the configuration is done automatically not with geowebcache.xml. This should be fine since I would like to have the tiles in EPSG:900913. When I click on the localhost:8080/geowebcache/demo links for EPSG:4326 I can view my maps, but not with EPSG:900913. For this projection I get the error: 400: Empty metatile, error message: MimeType mismatch, expected image/png but got application/vnd.ogc.se_xml from http://127.0.0.1/cgi-bin/mapserv?map=/usr/local/apache-tomcat/webapps/robot/ mapFiles/mass30cm.map&?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&LAYERS=LINCO LN_LABS&EXCEPTIONS=application/vnd.ogc.se_xml&STYLES=&TRANSPARENT=TRUE&FORMA T=image/png&SRS=EPSG:900913&WIDTH=256&HEIGHT=768&BBOX=-7827151.6953125,43832 04.949375,-7514065.6274999995,5322463.1528125 null Do you know what is going on? AllieH wrote: > > I'm still having issues with this but it seems to be the same issue > discussed here: > > http://old.nabble.com/GeoWebCache-with-MapServer-with-MimeType-mismatch-td20897360.html > http://old.nabble.com/Re:-GeoWebCachewithMapServerwithMimeTypemismatch--SOLVED--td21188651.html > > Looking at Firebug's output I get the error: "400: Empty metatile, error > message: MimeType mismatch, expected image/png but got text/html from > http://127.0.0.1/cgi-bin/mapserv?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&LAYERS=+LINCOLN_LABS+&EXCEPTIONS=application/vnd.ogc.se_xml&STYLES=&TRANSPARENT=TRUE&BGCOLOR=0xCDCDA5&FORMAT=image/png&SRS=EPSG:900913&WIDTH=512&HEIGHT=512&BBOX=-2.003750834E7,-2.003750834E7,2.003750834E7,2.003750834E7 > > I think the mapserver request needs to be: > > http://127.0.0.1/cgi-bin/mapserv?map=/usr/local/apache-tomcat/webapps/robot/mapFiles/mass30cm.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&LAYERS=+LINCOLN_LABS+&EXCEPTIONS=application/vnd.ogc.se_xml&STYLES=&TRANSPARENT=TRUE&BGCOLOR=0xCDCDA5&FORMAT=image/png&SRS=EPSG:900913&WIDTH=512&HEIGHT=512&BBOX=-2.003750834E7,-2.003750834E7,2.003750834E7,2.003750834E7 > > I do have map=... in the vendorParameters for each layer in > geowebcache.xml but it doesn't seem to be doing anything. I tried making > my wmsUrl in geowebcache.xml > "http://127.0.0.1/cgi-bin/mapserv?map=/usr/local/apache-tomcat/webapps/robot/mapFiles/mass30cm.map. > This almost worked except there was a "?" after the map parameter in the > mapserver request instead of an "&". In one of the previous post I linked > to above, John Westwood said he used SetEnvIfNoCase to fix this problem - > maybe this is the solution? I can't figure out what he did with this > though, plus it seems like there must be a better solution. > > Thanks for helping! > > > Arne Kepp-2 wrote: >> >> Sorry, was blind without my coffee. There needs to be a question mark >> before the query string, like so >> >> http://127.0.0.1/cgi-bin/mapserv?map=something&request=getcapabilities&version=1.1.1 >> >> >> -Arne >> >> >> On 6/28/10 9:25 AM, Arne Kepp wrote: >>> You probably need to add&map=something, e.g. >>> http://127.0.0.1/cgi-bin/mapserv&map=something&request=getcapabilities&version=1.1.1 >>> >>> >>> When you configure layers manually the wmsUrl is >>> http://127.0.0.1/cgi-bin/mapserv and you specify the map parameter as a >>> vendor parameter: >>> <vendorParameters>map=something</vendorParameters> >>> >>> Always check the logfiles, catalina.out if you are running Tomcat. >>> >>> -Arne >>> >>> >>> On 6/25/10 9:01 PM, AllieH wrote: >>>> I am new to GeoWebCache and I am trying to set it up with MapServer. I >>>> get >>>> the demo page to show up listing the 3 demo layers but when I try to >>>> view >>>> them I just get empty tiles. First of all I am confused because it >>>> seems >>>> like in the geowebcache-servlet.xml file I need to specify a .map file >>>> with >>>> these layers. I followed the "quick start" instructions in the >>>> directions >>>> and changed the URL to the WMS GetCapabilities document to be: >>>> <constructor-arg >>>> value="http://127.0.0.1/cgi-bin/mapserv&request=getcapabilities&version=1.1.1"/> >>>> but this doesn't work. >>>> >>>> Also, I don't understand in geowebcache.xml what the wmsUrl is pointing >>>> to. >>>> Should this be the url I use in the geowebcache-servlet.xml file? >>>> >>>> Thank you! >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Sprint >>> What will you do first with EVO, the first 4G phone? >>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> _______________________________________________ >>> Geowebcache-users mailing list >>> Geo...@li... >>> https://lists.sourceforge.net/lists/listinfo/geowebcache-users >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Geowebcache-users mailing list >> Geo...@li... >> https://lists.sourceforge.net/lists/listinfo/geowebcache-users >> >> > > -- View this message in context: http://old.nabble.com/Setting-GeoWebCache-with-MapServer-tp28995530p29023969.html Sent from the GeoWebCache Users mailing list archive at Nabble.com. |