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

Badrul badruls007 at yahoo.com
Wed May 2 06:43:32 EDT 2012


Hi zac

As told by you on twitter to have look at source code, as you can see above
i have included my map file source code and here i am doing it again

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


Since error is related to imagetype property i am not getting where problem
lies in my map file as i have written following code 

IMAGECOLOR 240 255 240
  IMAGEQUALITY 95
  IMAGETYPE PNG

  OUTPUTFORMAT
    NAME agg
    DRIVER AGG/PNG
    IMAGEMODE RGB
  END

I am not able to understand what is problem with it.


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


More information about the fusion-users mailing list