Hi. I'm using MS4W v.2.3.1 and p.mapper 4.1 to view a map file with two layers: an ECW raster and a shape. I modified the file pmapper_demo map provided with the demo and config_default making necessary changes to see my two layers, but I'm obviously doing something wrong because, in pmapper, only the shape layer appears and not the ECW raster. The strange thing is that the php error log reports no error while the pm_debug.log advises "P. Validation of search.xml MAPPER debug info file succeeded" .. which, I think, isn’t a mistake. Even debugging in Firebug JavaScript does not report errors, everything is OK. I tested the map with shp2img file and it creates the image correctly with the two layers, also correctly displays the mapserver map file with http://localhost/cgi-bin/mapserv.exe?MAP=C:/ms4w/ .. .. In Fusion, I can see perfectly ecw layer ! Does anyone have any suggestions for me? These are the two files I changed:
CONFIG_DEFAULT.XML <pmapper> <ini> <pmapper> <pmTitle>p.mapper - A MapServer PHP/MapScript Framework</pmTitle> <debugLevel>3</debugLevel> <plugins>export</plugins> <plugins>scalebar</plugins> <plugins>transparency</plugins> </pmapper> <config> <pm_config_location>default</pm_config_location> <pm_javascript_location>javascript/src</pm_javascript_location> <pm_print_configfile>common/print.xml</pm_print_configfile> <pm_search_configfile>inline</pm_search_configfile> </config> <map> <mapFile>pmapper_demo.map</mapFile> <tplMapFile>common/template.map</tplMapFile> <categories> <category name="cat_admin"> <group>CTR_512074_pol</group> </category> <category name="cat_raster"> <group>512074</group> </category> </categories> <allGroups> <group>CTR_512074_pol</group> <group>512074</group> </allGroups> <defGroups> <group>CTR_512074_pol</group> <group>512074</group> </defGroups> <layerAutoRefresh>1</layerAutoRefresh> <imgFormat>png</imgFormat> <altImgFormat>jpeg</altImgFormat> <altImgFormatLayers> </altImgFormatLayers> <sliderMax>max</sliderMax> <sliderMin>500</sliderMin> </map> <query> <limitResult>300</limitResult> <highlightColor>0 255 255</highlightColor> <highlightSelected>1</highlightSelected> <autoZoom>nquery</autoZoom> <autoZoom>search</autoZoom> <zoomAll>search</zoomAll> <zoomAll>nquery</zoomAll> <infoWin>dynwin</infoWin> <alignQueryResults>1</alignQueryResults> <pointBuffer>10000</pointBuffer> <shapeQueryBuffer>0.02</shapeQueryBuffer> </query> <ui> <tocStyle>tree</tocStyle> <legendStyle>attached</legendStyle> <useCategories>1</useCategories> <catWithCheckbox>1</catWithCheckbox> <scaleLayers>1</scaleLayers> <icoW>18</icoW> <icoH>14</icoH> </ui> <locale> <defaultLanguage>it</defaultLanguage> <defaultCharset>UTF-8</defaultCharset> <map2unicode>1</map2unicode> </locale> <print> <printImgFormat>png</printImgFormat> <printAltImgFormat>jpeg</printAltImgFormat> <pdfres>2</pdfres> </print> <download> <dpiLevels>150</dpiLevels> <dpiLevels>200</dpiLevels> <dpiLevels>300</dpiLevels> </download> <php> <pearDbClass>MDB2</pearDbClass> <defaultTimeZone>Europe/Vienna</defaultTimeZone> </php> <pluginsConfig> <export> <formats>XLS</formats> <formats>CSV</formats> <formats>PDF</formats> </export> </pluginsConfig> </ini> <searchlist version="1.0"> <dataroot>$</dataroot> <searchitem name="cities" description="City"> <layer type="shape" name="CTR_512074_pol"> <field type="s" name="DESCR" description="DESCRIZIONE" wildcard="0" /> </layer> </searchitem> </searchlist> </pmapper> PMAPPER_DEMO.MAP # # Start of map file # MAP #####EXTENT 1988372 1400000 6411627 5400000 EXTENT 767987.416855 4468458.663478 773427.446243 4471507.085476 UNITS meters #EXTENT -15 30 40 70 #UNITS dd SIZE 600 500 SHAPEPATH "../../../data" SYMBOLSET "../common/symbols/symbols-pmapper.sym" FONTSET "../common/fonts/msfontset.txt" RESOLUTION 96 IMAGETYPE png INTERLACE OFF #CONFIG "PROJ_LIB" "C:/proj/nad/" #####PROJECTION # ETRS-LAEA #"init=epsg:3035" #####"+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +units=m +no_defs no_defs" #####END PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END # # Image formates for GD # OUTPUTFORMAT NAME "png" DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB FORMATOPTION INTERLACE=OFF TRANSPARENT OFF EXTENSION "png" END OUTPUTFORMAT NAME "png8" DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 FORMATOPTION INTERLACE=OFF TRANSPARENT OFF EXTENSION "png" END OUTPUTFORMAT NAME "jpeg" DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB FORMATOPTION "QUALITY=70" EXTENSION "jpg" END # # Image formats for AGG # # OUTPUTFORMAT ### 24 bit PNG # NAME 'agg_png' # DRIVER AGG/PNG # IMAGEMODE RGB # END # OUTPUTFORMAT ### 32 bit PNG with alpha channel from transparency # NAME 'agg_pnga' # DRIVER AGG/PNG # IMAGEMODE RGBA # END # OUTPUTFORMAT ### 8 bit PNG # NAME 'agg_png8' # DRIVER AGG/PNG # IMAGEMODE RGB # FORMATOPTION "QUANTIZE_FORCE=ON" # FORMATOPTION "QUANTIZE_DITHER=OFF" # FORMATOPTION "QUANTIZE_COLORS=256" # END # OUTPUTFORMAT # NAME 'agg_jpeg' # DRIVER AGG/JPEG # IMAGEMODE RGB # END OUTPUTFORMAT NAME GTiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGB #FORMATOPTION "TFW=YES" #FORMATOPTION "COMPRESS=PACKBITS" EXTENSION "tif" END OUTPUTFORMAT NAME imagemap MIMETYPE "text/html" FORMATOPTION SKIPENDTAG=OFF DRIVER imagemap END OUTPUTFORMAT NAME "ECW" DRIVER "GDAL/ECW" MIMETYPE "image/ecw" IMAGEMODE "BYTE" EXTENSION "ecw" END # # Start of web interface definition # WEB TEMPLATE "map.html" IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA #"MAPFILE_ENCODING" "ISO-8859-1" #"ows_title" "WMS Demo Server" #"ows_onlineresource" "http://wms.yourserver.org?owskey=test&" #"ows_srs" "EPSG:3035 EPSG:4326" END # Metadata END # Web # # Start of Reference map definition # REFERENCE #####EXTENT 1496247 1332616 7055632 5502154 #2200000 1400000 8000000 5400000 EXTENT 767987.416855 4468458.663478 773427.446243 4471507.085476 IMAGE "../../images/reference_mio.png" SIZE 199 156 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # Reference LEGEND END # # Start of ScaleBar definition # SCALEBAR STATUS off TRANSPARENT off INTERVALS 4 SIZE 200 3 UNITS meters COLOR 250 250 250 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 100 100 100 STYLE 0 POSTLABELCACHE true LABEL COLOR 0 0 90 #OUTLINECOLOR 200 200 200 SIZE small END # Label END # Reference # SYMBOLS USED IN PMAPPER # - 'circle' always necessary (used e.g. for highlight) # - 'square' used in currecnt map file # Symbols can also be defined via tag SYMBOLSET (see above) Symbol Name 'circle' Type ELLIPSE Filled TRUE Points 1 1 END END Symbol Name 'square' Type VECTOR Filled TRUE Points 0 1 0 0 1 0 1 1 0 1 END END #================== START OF LAYER SECTION =====================# # # LAYER ortofoto # LAYER NAME "512074" TYPE RASTER DUMP true #TEMPLATE void EXTENT 768766.543 4468421.520 772648.043 4471544.020 DATA '512074.ecw' METADATA 'ows_title' '512074' END STATUS ON TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END END # # LAYER CTR # LAYER NAME 'CTR_512074_pol' TYPE POLYGON DUMP true TEMPLATE void EXTENT 767987.416855 4468458.663478 773427.446243 4471507.085476 DATA 'CTR_512074_pol.shp' METADATA 'ows_title' 'CTR_512074_pol' END STATUS ON TRANSPARENCY 50 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME 'CTR_512074_pol' STYLE WIDTH 1 OUTLINECOLOR 0 0 0 COLOR 39 161 117 END END END END #Map -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Problem-with-raster-ECW-in-pmapper-tp2866142p2866142.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users