Changes between Version 5 and Version 6 of MapGuideRfc170
- Timestamp:
- 05/21/19 05:34:58 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc170
v5 v6 64 64 ... 65 65 EXTERNAL_API: 66 66 67 ///////////////////////////////////////////////////////////////// 67 68 /// \brief … … 106 107 /// \param metaTilingFactor 107 108 /// Input 108 /// The meta-tiling factor, If less than or equal to 1 no meta-tiling is done. If greater than 1, a tile m times the original requested 109 /// size is rendered instead (where m is the specified factor) 109 /// The meta-tiling factor. If less than or equal to 1, no meta-tiling is done and the returned meta-tile can be extracted 110 /// as the orignally requested tile image. If greater than 1, a tile that is m times bigger than the requested tile is rendered 111 /// (where m is the specified tiling factor) and the raw image frame buffer of this meta-tile is returned instead. 110 112 /// 111 113 /// \return 112 /// A byte reader containing the rendered tile image. If metaTilingFactor is greater than 1, then a raw image frame buffer is returned 113 /// instead. This raw image frame buffer is not intended to be used by MapGuide applications and is reserved for the rendering infrastructre 114 /// to sub-divide back into tiles of the original requested size. 114 /// A meta-tile with sufficient information for the consumer to properly sub-divide this back into sub-tiles of the 115 /// originally requested size. 115 116 /// 116 117 /// \since 3.3 117 virtual Mg ByteReader* RenderTile(118 virtual MgMetatile* RenderMetatile( 118 119 MgMap* map, 119 120 CREFSTRING baseMapLayerGroupName, … … 125 126 CREFSTRING tileImageFormat, 126 127 double tileExtentOffset, 127 INT32 metaTil eFactor) = 0;128 INT32 metaTilingFactor) = 0; 128 129 129 130 ///////////////////////////////////////////////////////////////// … … 161 162 /// \param metaTilingFactor 162 163 /// Input 163 /// The meta-tiling factor, If less than or equal to 1 no meta-tiling is done. If greater than 1, a tile m times the original requested 164 /// size is rendered instead (where m is the specified factor) 164 /// The meta-tiling factor. If less than or equal to 1, no meta-tiling is done and the returned meta-tile can be extracted 165 /// as the orignally requested tile image. If greater than 1, a tile that is m times bigger than the requested tile is rendered 166 /// (where m is the specified tiling factor) and the raw image frame buffer of this meta-tile is returned instead. 165 167 /// 166 168 /// \return 167 /// A byte reader containing the rendered tile image. If metaTilingFactor is greater than 1, then a raw image frame buffer is returned 168 /// instead. This raw image frame buffer is not intended to be used by MapGuide applications and is reserved for the rendering infrastructre 169 /// to sub-divide back into tiles of the original requested size. 169 /// A meta-tile with sufficient information for the consumer to properly sub-divide this back into sub-tiles of the 170 /// originally requested size. 170 171 /// 171 172 /// \since 3.3 172 virtual Mg ByteReader* RenderTileXYZ(173 virtual MgMetatile* RenderMetatileXYZ( 173 174 MgMap* map, 174 175 CREFSTRING baseMapLayerGroupName, … … 180 181 double tileExtentOffset, 181 182 INT32 metaTilingFactor) = 0; 183 184 185 ///////////////////////////////////////////////////////////////// 186 /// \brief 187 /// Returns the requested sub-tile from the given metatile 188 /// 189 /// \param map 190 /// Input 191 /// map object containing current state of map. 192 /// \param metaTile 193 /// Input 194 /// The meta-tile from which a subtile is being requested for 195 /// \param rendererName 196 /// Input 197 /// The name of the renderer to create for sub-tile slicing 198 /// \param subTileX 199 /// Input 200 /// The x sub-tile coordinate of the meta-tile to request 201 /// \param subTileY 202 /// Input 203 /// The y sub-tile coordinate of the meta-tile to request 204 /// 205 /// \return 206 /// The requested sub-tile 207 /// 208 /// \since 3.3 209 virtual MgByteReader* RenderTileFromMetaTile(MgMap* map, MgMetatile* metaTile, CREFSTRING rendererName, INT32 subTileX, INT32 subTileY) = 0; 182 210 }; 183 211 }}} 184 212 185 These new overloads are designated {{{EXTERNAL_API}}} because meta-tiles are not intended to be consumed by regular MapGuide applications. They are raw image frame buffers that the rendering infrastructure will use to sub-divide back into tiles of the original requested size. But at the same time, these overloads have to be present in the {{{MgRenderingService}}} contract to allow a server-based tile service to still request meta-tiles through a proxy instance (should a server-based instance not be available) hence the {{{EXTERNAL_API}}} designation.213 These new overloads are designated {{{EXTERNAL_API}}} because meta-tiles are not intended to be consumed by regular MapGuide applications. They are raw image frame buffers that the rendering infrastructure will use to sub-divide back into tiles of the original requested size. But at the same time, these overloads have to be present in the {{{MgRenderingService}}} contract to allow a server-based tile service to still request meta-tiles through a proxy instance (should a server-based instance not be available). 186 214 187 215 If applications do take advantage of these new overloads, it is expected they will always pass a {{{metaTilingFactor}}} of {{{0}}} when calling these new overloads or they know how to process and sub-divide the raw image frame buffer back into tile images of the original tile size.