[fusion-users] Re: Unable to display map using fusion

Badrul badruls007 at yahoo.com
Wed May 2 03:32:46 EDT 2012


Thanks Zac

AS told by you i tried my mapfile outside fusion using below URL and it
displayed the map, I have also included screen shot of the map below.

http://localhost/cgi-bin/mapserv.exe?mode=map&map=C:\ukoutline.map 

http://osgeo-org.1560.n6.nabble.com/file/n4945505/map.jpg 


But when i again tried displaying it using Fusion it gave following errors

[error] [client 127.0.0.1] PHP Fatal error:  Uncaught exception
'MapScriptException' with message 'Property 'imagetype' does not exist in
this object.' in
C:\\ms4w\\apps\\fusion\\layers\\MapServer\\php\\LoadMap.php:133, referer:
http://localhost/fusion/templates/mapserver/standard/index.html

[error] [client 127.0.0.1] Stack trace:, referer:
http://localhost/fusion/templates/mapserver/standard/index.html

[error] [client 127.0.0.1] #0
C:\\ms4w\\apps\\fusion\\layers\\MapServer\\php\\LoadMap.php(133):
mapObj->__get('imagetype'), referer:
http://localhost/fusion/templates/mapserver/standard/index.html


Below I am pasting code of my map file:

MAP
  NAME "uktest2"
  # Map image size
  SIZE 9900 8000
  UNITS meters
  SHAPEPATH "C:\UKBoundary\UKBoundary.shp"
 
    
 EXTENT -689447.628994 -22878.477049 1344447.892830 1250227.410037
 
  FONTSET 'C:\fonts.txt'
  SYMBOLSET 'C:\symbols.txt'

  # Background color for the map canvas -- change as desired
  IMAGECOLOR 240 255 240
  IMAGEQUALITY 95
  IMAGETYPE PNG

  OUTPUTFORMAT
    NAME agg
    DRIVER AGG/PNG
    IMAGEMODE RGB
  END

  LAYER
    NAME "UKBoundary"
    	
    DATA UKBoundary
    STATUS DEFAULT
    TYPE LINE
    CLASS
       NAME 'UKBoundary' 
       STYLE
         WIDTH 4.36 
         COLOR 0 0 0  #255 140 0
        OUTLINECOLOR 94 150 193
       END
    END
  END

  LAYER
    NAME 'LiveSites'
    TYPE POINT
    DUMP true
    EXTENT 492264.819731 239288.251847 568064.802479 287960.850589
    DATA '../../Documents and
Settings/bght1924/Desktop/LiveSites/LiveSites.shp'
    #SHAPEPATH "C:\UKBoundary\LiveSites.shp"
    METADATA
      'ows_title' 'LiveSites'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    CLASS
       NAME 'LiveSites' 
       STYLE
         SYMBOL "circle" 
         SIZE 7.0 
         OUTLINECOLOR 0 0 0
         COLOR 157 88 159
       END
    END
  END
END


Note: Only change that i am doing in AppDef.xml is providing path of mapfile

<MapFile>/ukoutline.map</MapFile>

Any help from you will be really appreciated as you have got vast experience
with this stuff.

-----
Thanks & Regards 
Badrul
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Unable-to-display-map-using-fusion-tp4715312p4945505.html
Sent from the Fusion Users mailing list archive at Nabble.com.


More information about the fusion-users mailing list