Pitney Bowes MapXtreme User Manual

Page 353

Advertising
background image

Chapter 19: Web Map Service

Setting up a MapXtreme WMS Server

MapXtreme v7.1

360

Developer Guide

<mxp-wms:Title>Blue Fill</mxp-wms:Title>
<mxp-wms:Abstract>This is a blue area fill with a

red border.</mxp-wms:Abstract>

<mxp-wms:LegendURL width="100" height="100">

<mxp-wms:Format>image/gif</mxp-wms:Format>
<mxp-wms:OnlineResource

xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
xlink:href="http://localhost/WMS/legends/1.gif" />

</mxp-wms:LegendURL>
<mxp-wms:LegendURL width="200" height="200">

<mxp-wms:Format>image/gif</mxp-wms:Format>
<mxp-wms:OnlineResource

xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
xlink:href="http://localhost/WMS/legends/2.gif" />

</mxp-wms:LegendURL>
<AreaStyle xmlns="http://www.mapinfo.com/mxp">

<!-- The following defines the red border -->
<LineStyle stroke="red" width="1" width-

unit="mapinfo:imagesize pixel">

<Pen>mapinfo:pen 2</Pen>

</LineStyle>
<!-- The following defines the blue fill -->
<Interior fill-opacity="0" fill="(#id7)">

<Defs>

<Pattern id="id7">

<Bitmap uri="mapinfo:brush 2">

<ColorAdjustmentSet>

<ColorAdjustment color-1="nonWhite"

color-2="blue" opacity="1"/>

<ColorAdjustment color-1="white"

opacity="1"/>

</ColorAdjustmentSet>

</Bitmap>

</Pattern>

</Defs>

</Interior>

</AreaStyle>

</mxp-wms:WmsStyle>

</mxp-wms:WmsStyleSet>
<mxp-wms:MinScaleDenominator>10</mxp-

wms:MinScaleDenominator>

<mxp-wms:MaxScaleDenominator>20</mxp-

wms:MaxScaleDenominator>

<FeatureLayer id="id8" name="STATES" alias="STATES"

volatile="unknown" xmlns="http://www.mapinfo.com/mxp">

<DataSourceRef ref="id1"/>

</FeatureLayer>

</mxp-wms:WmsLayer>

4. Save WMSSample.xml after you are through adding feature layer information.

Register your WMS server with Internet Information Services (IIS) and test your setup. Follow the
instructions for IIS7 or IIS 6.

Advertising