144 | | '''TBD XML document schema''' |
145 | | |
146 | | Example of profiling rendering map process: (Work in progress) |
147 | | {{{ |
148 | | -MapProfileResult |
149 | | -Map Summary |
150 | | Resource Id |
151 | | Resource Id |
152 | | Coordinate System |
153 | | Extents |
154 | | Layer Count |
155 | | Watermark Count |
156 | | Image Format |
157 | | Render Map Time |
158 | | Render Layers Time |
159 | | Render Selection Time |
160 | | Render Watermars Time |
161 | | Render Labels Time |
162 | | Create Image Time |
163 | | -Map Details |
164 | | -LayerProfileResult |
165 | | -Layer(s) Summary |
166 | | Resource Id |
167 | | Schema Name |
168 | | Feature Class Name |
169 | | Scale Ranges |
170 | | Coordinate System |
171 | | Filter |
172 | | Number of Features |
173 | | Render Time |
174 | | Get Idendity Properties Time |
175 | | Coordinate System Transform Time (Only applies if we are profiling a map rendering process.) |
176 | | Query Features Time |
177 | | Stylization Time |
178 | | -Layer(s) Details |
179 | | +Feature Source(s) Summary |
180 | | +Feature Source(s) Details |
181 | | -SelectionProfileResult |
182 | | Layer(s) Summary |
183 | | Layer(s) Details |
184 | | -WatermarkProfileResult |
185 | | -Watermark(s) Summary |
186 | | Resource Id |
187 | | Position Type |
188 | | Stylization Time |
189 | | +Watermark(s) Details |
190 | | -LabelsProfileResult |
191 | | -Labels Summary |
192 | | Label Count |
193 | | Render Labels Time |
194 | | |
| 103 | {{{ |
| 104 | <?xml version="1.0" encoding="UTF-8"?> |
| 105 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0.0"> |
| 106 | <xs:include schemaLocation="PlatformCommon-1.0.0.xsd"/> |
| 107 | <xs:element name="ProfileResult" type="ProfileResultType"></xs:element> |
| 108 | <xs:complexType name="ProfileResultType"> |
| 109 | <xs:choice> |
| 110 | <xs:element name="ProfileRenderMap" type="ProfilerRenderMapType"> |
| 111 | </xs:element> |
| 112 | <xs:element name="ProfileRenderDynamicOverlay" type="ProfilerRenderMapType"> |
| 113 | </xs:element> |
| 114 | <xs:element name="ExtendedData1" type="ExtendedDataType" minOccurs="0"/> |
| 115 | </xs:choice> |
| 116 | </xs:complexType> |
| 117 | <xs:complexType name="ProfilerRenderMapType"> |
| 118 | <xs:sequence> |
| 119 | <xs:element name="ResourceId" type="xs:string"></xs:element> |
| 120 | <xs:element name="CoordinateSystem" type="xs:string"></xs:element> |
| 121 | <xs:element name="Extent" type="xs:string"></xs:element> |
| 122 | <xs:element name="Scale" type="xs:double"></xs:element> |
| 123 | <xs:element name="ImageFormat" type="xs:string"></xs:element> |
| 124 | <xs:element name="RendererType" type="xs:string"></xs:element> |
| 125 | <xs:element name="RenderTime" type="xs:double"></xs:element> |
| 126 | <xs:element name="ProfileRenderLayers" type="ProfileRenderLayersType"></xs:element> |
| 127 | <xs:element name="ProfileRenderSelection" type="ProfileRenderSelectionType"></xs:element> |
| 128 | <xs:element name="ProfileRenderWatermarks" type="ProfileRenderWatermarksType"></xs:element> |
| 129 | <xs:element name="ProfileRenderLabels" type="ProfileRenderLabelsType"></xs:element> |
| 130 | <xs:element name="CreateImageTime" type="xs:double"></xs:element> |
| 131 | <xs:element name="ExtendedData1" type="ExtendedDataType" minOccurs="0"/> |
| 132 | </xs:sequence> |
| 133 | </xs:complexType> |
| 134 | <xs:complexType name="ProfileRenderLayersType"> |
| 135 | <xs:sequence> |
| 136 | <xs:element name="RenderTime" type="xs:double"></xs:element> |
| 137 | <xs:element name="ProfileRenderLayer" type="ProfileRenderLayerType" minOccurs="0" maxOccurs="unbounded"></xs:element> |
| 138 | <xs:element name="ExtendedData1" type="ExtendedDataType" minOccurs="0"/> |
| 139 | </xs:sequence> |
| 140 | </xs:complexType> |
| 141 | <xs:complexType name="ProfileRenderSelectionType"> |
| 142 | <xs:sequence> |
| 143 | <xs:element name="RenderTime" type="xs:double"></xs:element> |
| 144 | <xs:element name="Filter" type="xs:string"></xs:element> |
| 145 | <xs:element name="ProfileRenderSelectedLayer" type="ProfileRenderLayerType" minOccurs="0" maxOccurs="unbounded"></xs:element> |
| 146 | <xs:element name="ExtendedData1" type="ExtendedDataType" minOccurs="0"/> |
| 147 | </xs:sequence> |
| 148 | </xs:complexType> |
| 149 | <xs:complexType name="ProfileRenderWatermarksType"> |
| 150 | <xs:sequence> |
| 151 | <xs:element name="RenderTime" type="xs:double"></xs:element> |
| 152 | <xs:element name="ProfileRenderWatermark" type="ProfileRenderWatermarkType" minOccurs="0" maxOccurs="unbounded"></xs:element> |
| 153 | <xs:element name="ExtendedData1" type="ExtendedDataType" minOccurs="0"/> |
| 154 | </xs:sequence> |
| 155 | </xs:complexType> |
| 156 | <xs:complexType name="ProfileRenderLabelsType"> |
| 157 | <xs:sequence> |
| 158 | <xs:element name="RenderTime" type="xs:double"></xs:element> |
| 159 | <xs:element name="ExtendedData1" type="ExtendedDataType" minOccurs="0"/> |
| 160 | </xs:sequence> |
| 161 | </xs:complexType> |
| 162 | <xs:complexType name="ProfileRenderLayerType"> |
| 163 | <xs:sequence> |
| 164 | <xs:element name="ResourceId" type="xs:string"></xs:element> |
| 165 | <xs:element name="LayerType" type="xs:string"></xs:element> |
| 166 | <xs:element name="CoordinateSystem" type="xs:string"></xs:element> |
| 167 | <xs:element name="ScaleRange" type="xs:string"></xs:element> |
| 168 | <xs:element name="Filter" type="xs:string"></xs:element> |
| 169 | <xs:element name="RenderTime" type="xs:double"></xs:element> |
| 170 | <xs:element name="ExtendedData1" type="ExtendedDataType" minOccurs="0"/> |
| 171 | </xs:sequence> |
| 172 | </xs:complexType> |
| 173 | <xs:complexType name="ProfileRenderWatermarkType"> |
| 174 | <xs:sequence> |
| 175 | <xs:element name="ResourceId" type="xs:string"></xs:element> |
| 176 | <xs:element name="PositionType" type="xs:string"></xs:element> |
| 177 | <xs:element name="RenderTime" type="xs:double"></xs:element> |
| 178 | <xs:element name="ExtendedData1" type="ExtendedDataType" minOccurs="0"/> |
| 179 | </xs:sequence> |
| 180 | </xs:complexType> |
| 181 | </xs:schema> |
| 182 | |
| 183 | }}} |
| 184 | Example of profiling rendering map process: |
| 185 | {{{ |
| 186 | <?xml version="1.0" encoding="utf-8"?> |
| 187 | <ProfileResult> |
| 188 | <ProfileRenderMap> |
| 189 | <ResourceId>Library://Shaboygan.MapDefinition</ResourceId> |
| 190 | <CoordinateSystem>LL84</CoordinateSystem> |
| 191 | <Extent>43.73,-87.73,43.75,-87.72</Extent> |
| 192 | <Scale>10000.00</Scale> |
| 193 | <ImageFormat>PNG</ImageFormat> |
| 194 | <RendererType>AGG</RendererType> |
| 195 | <RenderTime>8.30</RenderTime> |
| 196 | <ProfileRenderLayers> |
| 197 | <RenderTime>5.00</RenderTime> |
| 198 | <ProfileRenderLayer> |
| 199 | <ResourceId>Library://Buildings.LayerDefinition</ResourceId> |
| 200 | <LayerType>Vector</LayerType> |
| 201 | <CoordinateSystem>CA-I</CoordinateSystem> |
| 202 | <ScaleRange>ScaleRange1</ScaleRange> |
| 203 | <Filter>FeatId > 5</Filter> |
| 204 | <RenderTime>3.00</RenderTime> |
| 205 | </ProfileRenderLayer> |
| 206 | <ProfileRenderLayer> |
| 207 | <ResourceId>Library://Districts.LayerDefinition</ResourceId> |
| 208 | <LayerType>Raster</LayerType> |
| 209 | <CoordinateSystem>LL84</CoordinateSystem> |
| 210 | <ScaleRange>ScaleRange2</ScaleRange> |
| 211 | <Filter></Filter> |
| 212 | <RenderTime>2.00</RenderTime> |
| 213 | </ProfileRenderLayer> |
| 214 | </ProfileRenderLayers> |
| 215 | <ProfileRenderSelection> |
| 216 | <RenderTime>0.25</RenderTime> |
| 217 | <Filter>FeatId < 100</Filter> |
| 218 | <ProfileRenderSelectedLayer> |
| 219 | <ResourceId>Library://Trees.LayerDefinition</ResourceId> |
| 220 | <LayerType>Vector</LayerType> |
| 221 | <CoordinateSystem>LL84</CoordinateSystem> |
| 222 | <ScaleRange>ScaleRange1</ScaleRange> |
| 223 | <Filter>FeatId < 200</Filter> |
| 224 | <RenderTime>0.10</RenderTime> |
| 225 | </ProfileRenderSelectedLayer> |
| 226 | <ProfileRenderSelectedLayer> |
| 227 | <ResourceId>Library://Parcels.LayerDefinition</ResourceId> |
| 228 | <LayerType>Vector</LayerType> |
| 229 | <CoordinateSystem>LL84</CoordinateSystem> |
| 230 | <ScaleRange>ScaleRange2</ScaleRange> |
| 231 | <Filter></Filter> |
| 232 | <RenderTime>0.15</RenderTime> |
| 233 | </ProfileRenderSelectedLayer> |
| 234 | </ProfileRenderSelection> |
| 235 | <ProfileRenderWatermarks> |
| 236 | <RenderTime>0.75</RenderTime> |
| 237 | <ProfileRenderWatermark> |
| 238 | <ResourceId>Library://Logo.WatermarkDefinition</ResourceId> |
| 239 | <PositionType>Tile</PositionType> |
| 240 | <RenderTime>0.6</RenderTime> |
| 241 | </ProfileRenderWatermark> |
| 242 | <ProfileRenderWatermark> |
| 243 | <ResourceId>Library://Copyright.WatermarkDefinition</ResourceId> |
| 244 | <PositionType>XY</PositionType> |
| 245 | <RenderTime>0.15</RenderTime> |
| 246 | </ProfileRenderWatermark> |
| 247 | </ProfileRenderWatermarks> |
| 248 | <ProfileRenderLabels> |
| 249 | <RenderTime>1.25</RenderTime> |
| 250 | </ProfileRenderLabels> |
| 251 | <CreateImageTime>1</CreateImageTime> |
| 252 | </ProfileRenderMap> |
| 253 | </ProfileResult> |