[mapserver-users] Re: Problems with Mapserver as WMS service (jpeg)
Hi, I just checked to be sure, but the status is also set to off in the layers that are working. Perhaps I should point out that the layers that are working is using data from our postgresql db but the layer not working is using a ECW file directly. /Christian -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-Mapserver-as-WMS-service-jpeg-tp6941932p6947905.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Problems with Mapserver as WMS service (jpeg)
Hi, Here is the mapfile we used until we updated into Mapserver 6.0. After the update we are not allowed to use ECW-images as input without paying the ECW JPEG2000 SDK licence fee for Erdas so we converted all the ecw images we had into JPEG compressed geotiffs. LAYER NAME Landsat742 STATUS ON DATA E:\Data\Landsat742.ecw TYPE RASTER # DEBUG 5 METADATA wms_titleLandsat wms_srs EPSG:2393 EPSG:3067 EPSG:4326 EPSG:900913 END PROJECTION init=epsg:2393 END END Your layer definitions look basically similar. First thing, as usual, is to add DEBUG 5 and have a look what you'll get into MS_ERRORFILE. Your mapfile is probably OK but it is a bit hard to read for me. I would suggest you to rip off all the non-compulsory stuff and leave one of your working vector layers to start with. Add then a new geotiff raster layer and make it also to work. After that you can change to mapfile to use your ecw file instead of geotiff. Using STATUS OFF is playing with fire. I suppose that if your layers work with that setting it is close to a bug in Mapserver. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Chrishelring Lähetetty: 31. lokakuuta 2011 13:54 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [mapserver-users] Re: Problems with Mapserver as WMS service (jpeg) Hi, I just checked to be sure, but the status is also set to off in the layers that are working. Perhaps I should point out that the layers that are working is using data from our postgresql db but the layer not working is using a ECW file directly. /Christian -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-Mapserver -as-WMS-service-jpeg-tp6941932p6947905.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: Problems with Mapserver as WMS service (jpeg)
Hi, below is a snipped part of the map file. I´ve removed the layers that is working but kept the one which is not (the orto2011 layer). If you need the complete map file I´ll send it. The layer is a ECW raster file (complete mosaiced ECW of the municipality i´m working in). When I try to use the WMS service in ArcGIS og Mapinfo the layer is just showing white / nothing. The map-file is auto-generated in our webgis solution. map name '' status ON size 830 475 projection init=epsg:25832 end shapepath 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\data\shp' units meters maxsize 1 extent 713000 6173000 72 618 fontset 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\resources/fonts/fontset.txt' symbolset 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\resources/symbols/symbols3_5.txt' imagecolor 255 255 255 datapattern '.*' templatepattern '.*' imagetype png24 outputformat name 'jpeg24' mimetype image/jpeg driver agg/JPEG imagemode RGB extension jpeg formatoption QUALITY=80 INTERLACE=ON end outputformat name 'jpeg24_gd' mimetype image/jpg driver GD/JPEG imagemode RGB extension jpg formatoption QUALITY=90 end outputformat name 'png24' mimetype image/png driver AGG/PNG imagemode RGB extension png end outputformat name 'gif' mimetype image/gif driver GD/GIF imagemode PC256 extension gif transparent ON end outputformat name 'imagemap' mimetype text/html driver imagemap end web template 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\tmp/mapserver.html' minscale 100 imagepath 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\tmp\' log 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\log\mapserver.log' empty '[cbinfo.emptypage]' metadata wms_title Rødovre Kommunes WMS service - Test wms_onlineresource http://test-webgis:9180/wms?servicename=rk-wms; wms_srs epsg:32632 epsg:23032 epsg:25832 wms_feature_info_mime_type text/xml wms_server_version 1.1.1 wms_extent 713000 6173000 72 618 end end querymap status ON style SELECTED end legend status OFF keysize 15 10 position ul imagecolor 255 255 255 label type TRUETYPE antialias true font arial size 8 color 0 0 0 end end reference status OFF size 140 96 #extent708960.416667 6167500.00 720189.58 6175200.00/extent extent 713000 6173000 72 618 color -1 -1 -1 outlinecolor 210 136 0 image 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot/images/custom/test/oversigt1.gif' end scalebar status OFF imagecolor 255 255 255 label type BITMAP outlinecolor 255 255 255 size medium color 0 0 0 end size 200 5 color 255 255 255 backgroundcolor 0 0 0 outlinecolor 0 0 0 intervals 5 position ll transparent false units meters end #Imported from E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\config\themes\custom\theme-orto-2011-gwc.xml layer name 'orto2011' status off type RASTER class name 'Luftfoto 2011' end data 'E:\spatialsuite\data\ortofoto\orto2011\Kommune\Rodovre_2011.ecw' transparency 100 metadata wms_extent 713000 6173000 72 618 wms_title orto2011 wms_group_title orto2011 wms_srs EPSG:25832 end group 'theme-orto-2011-gwc' projection init=EPSG:25832 end end end -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-Mapserver-as-WMS-service-jpeg-tp6941932p6945688.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Problems with Mapserver as WMS service (jpeg)
Hi, perhaps it is the 'status OFF?' Jörg Am 30.10.2011 16:16, schrieb Chrishelring: Hi, below is a snipped part of the map file. I´ve removed the layers that is working but kept the one which is not (the orto2011 layer). If you need the complete map file I´ll send it. The layer is a ECW raster file (complete mosaiced ECW of the municipality i´m working in). When I try to use the WMS service in ArcGIS og Mapinfo the layer is just showing white / nothing. The map-file is auto-generated in our webgis solution. map name '' status ON size 830 475 projection init=epsg:25832 end shapepath 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\data\shp' units meters maxsize 1 extent 713000 6173000 72 618 fontset 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\resources/fonts/fontset.txt' symbolset 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\resources/symbols/symbols3_5.txt' imagecolor 255 255 255 datapattern '.*' templatepattern '.*' imagetype png24 outputformat name 'jpeg24' mimetype image/jpeg driver agg/JPEG imagemode RGB extension jpeg formatoption QUALITY=80 INTERLACE=ON end outputformat name 'jpeg24_gd' mimetype image/jpg driver GD/JPEG imagemode RGB extension jpg formatoption QUALITY=90 end outputformat name 'png24' mimetype image/png driver AGG/PNG imagemode RGB extension png end outputformat name 'gif' mimetype image/gif driver GD/GIF imagemode PC256 extension gif transparent ON end outputformat name 'imagemap' mimetype text/html driver imagemap end web template 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\tmp/mapserver.html' minscale 100 imagepath 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\tmp\' log 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\log\mapserver.log' empty '[cbinfo.emptypage]' metadata wms_title Rødovre Kommunes WMS service - Test wms_onlineresource http://test-webgis:9180/wms?servicename=rk-wms; wms_srs epsg:32632 epsg:23032 epsg:25832 wms_feature_info_mime_type text/xml wms_server_version 1.1.1 wms_extent 713000 6173000 72 618 end end querymap status ON style SELECTED end legend status OFF keysize 15 10 position ul imagecolor 255 255 255 label type TRUETYPE antialias true font arial size 8 color 0 0 0 end end reference status OFF size 140 96 #extent708960.416667 6167500.00 720189.58 6175200.00/extent extent 713000 6173000 72 618 color -1 -1 -1 outlinecolor 210 136 0 image 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot/images/custom/test/oversigt1.gif' end scalebar status OFF imagecolor 255 255 255 label type BITMAP outlinecolor 255 255 255 size medium color 0 0 0 end size 200 5 color 255 255 255 backgroundcolor 0 0 0 outlinecolor 0 0 0 intervals 5 position ll transparent false units meters end #Imported from E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\config\themes\custom\theme-orto-2011-gwc.xml layer name 'orto2011' status off type RASTER class name 'Luftfoto 2011' end data 'E:\spatialsuite\data\ortofoto\orto2011\Kommune\Rodovre_2011.ecw' transparency 100 metadata wms_extent 713000 6173000 72 618 wms_title orto2011 wms_group_title orto2011 wms_srs EPSG:25832 end group 'theme-orto-2011-gwc' projection init=EPSG:25832 end end end -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-Mapserver-as-WMS-service-jpeg-tp6941932p6945688.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~ _ MapMedia Kartographie und raumbezogene Informationssysteme Gillweg 3, 14193 Berlin fon: +49 30 89 06 82-70 fax: +49 30 89 09 53-21 mail: j...@mapmedia.de net: www.mapmedia.de _ Geschäftsführer: G. v. Tschirnhaus, J. Thomsen, P. Stamm Registergericht, Berlin - Amtsgericht Charlottenburg, HRB 89625, Umsatzsteuer-Identnummer: DE 813794062 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users