TileCreator.getTile gives a distorted image for a particular size #55
-
Hi, I am using TileCreator.getTile method using boundary box value and particular zoom level. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Like a map server, the requested bounds provided are stretched to the desired width and height. For Web Mercator, the width and height of the bounding box would need to be equal to create a non "distorted" / stretched image. Example:
A web server example with the same bounds: If you want to use a non equal width and height, request a bounding box equal in ratio.
|
Beta Was this translation helpful? Give feedback.
-
After looking, I'm adding some changes in the next release for improved handling when tile width and/or height are not specified. When only one of tile width or height is provided, a determination of the other using the requested bounds aspect ratio. When neither tile width or height are provided, an approximated pixel length based upon the saved tiles is adjusted to the requested bounds aspect ratio. Currently before this change, the tile width and/or height from the tile matrix table is used when not provided. Some examples for version 6.1.2+ No height
No width
No width or height, x=8, y=11-12
No width or height, WGS84, x=8, y=11-12
No width or height, WGS84, WGS84 x=16, y= 7
190 × 190 |
Beta Was this translation helpful? Give feedback.
After looking, I'm adding some changes in the next release for improved handling when tile width and/or height are not specified. When only one of tile width or height is provided, a determination of the other using the requested bounds aspect ratio. When neither tile width or height are provided, an approximated pixel length based upon the saved tiles is adjusted to the requested bounds aspect ratio. Currently before this change, the tile width and/or height from the tile matrix table is used when not provided.
Some examples for version 6.1.2+
, once released.No height