[fusion-users] Re: Unable to display map using fusion
Zac Spitzer
zac.spitzer at gmail.com
Wed May 2 07:24:44 EDT 2012
looking at the code, it seems fusion uses the PHP MapScript ms_newMapObj()
to parse your map file, which I think is where it is falling over.
here is some doco
http://www.mapserver.org/mapscript/php/index.html
I'd suggest try googling 'MapScriptException' with message 'Property
'imagetype'
or checking the mapserver mailing list archives
I am part of the MapGuide Team and have zero experience with mapserver stuff
z
On Wed, May 2, 2012 at 8:43 PM, Badrul <badruls007 at yahoo.com> wrote:
> 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.
> _______________________________________________
> fusion-users mailing list
> fusion-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fusion-users
--
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
http://zacster.blogspot.com
+61 405 847 168
More information about the fusion-users
mailing list