How to make the y-axis start point at the top of the image when gdal2tiles cuts and outputs the image?

73 views Asked by At

I am developing a web based game map display function, using Leaflet as the framework. The game map resources are self-made 9000 * 6000 png images. I use gdal2Tiles to create tiles that conform to the framework structure,

gdal2Tiles. py - p raster - z 3-7- w none test2. png. 

The output directory structure meets the requirements, but there is a problem. The y-axis of gdal2Tiles starts from the bottom of the image, while the y-axis of leafet starts from the top of the screen, so the displayed image is incorrect. Is there any way to make gdal2Tiles output from the top of the image? It provides some parameters such as - s_ SRS, -- profile, but these parameters are too professional for me to understand. Is there any other good way to output images that meet the requirements.

0

There are 0 answers