[fusion-users] Re: Unable to display map using fusion
Michael Adair
madair at dmsolutions.ca
Tue Apr 10 09:50:30 EDT 2012
Your first error is because at some point, MapServer changed the mapfile
format so a MAP token must be the first token (it used to be assumed) so
just put 'MAP' as the first line of your mapfile.
The other errors are for resolving paths. If it works with the
MapServer CGI URL as:
http://localhost/cgi-bin/mapserv.exe?mode=map&map=C:\ukoutline.map
then in the ApplicationDefinition.xml file should be:
<MapFile>/ukoutline.map</MapFile>
ie. use the same path that you would in the CGI URL.
Mike
On 10/04/2012 5:54 AM, badrul wrote:
> HI zac, here it the ApplicationDefinition.xml that i am using
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ApplicationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xsi:noNamespaceSchemaLocation="ApplicationDefinition-1.0.0.xsd">
>
>
>
> <MapSet xsi:type="MapSetType">
> <MapGroup id="groups" xsi:type="MapType">
> <Map xsi:type="MapLayerType">
> <Type>MapServer</Type>
> <SingleTile>true</SingleTile>
> <Extension>
> <MapFile>/ms4w/Apache/htdocs/ukoutline.map</MapFile>
> </Extension>
> </Map>
> </MapGroup>
> </MapSet>
>
>
>
> <WidgetSet xsi:type="WidgetSetType">
>
>
>
> <Container xsi:type="UiItemContainerType">
> <Name>TaskContextMenu</Name>
> <Type>ContextMenu</Type>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>menuMeasure</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>menuBuffer</Widget>
> </Item>
> </Container>
>
>
>
> Below this are toolbar widgets, context menu etc
>
> I have made a mapfile named ukoutline.map. It basically is outline of united
> kingdom and has some associated data, i am able to view the outline map
> using following URL:
>
> http://localhost/cgi-bin/mapserv.exe?mode=map&map=C:\ukoutline.map
>
> http://osgeo-org.1560.n6.nabble.com/file/n4736022/map.jpg
>
> -----
> Thanks& Regards
> Badrul
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/Unable-to-display-map-using-fusion-tp4715312p4736022.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
More information about the fusion-users
mailing list