mapnik / mapnik

Mapnik is an open source toolkit for developing mapping applications

Home Page:http://mapnik.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PGRaster plugin work not correct!

zaa76 opened this issue · comments

commented

Hello!
To create a raster, I used technology
image

photo_2022-09-05_17-32-19

Left in QGIS (Loaded from PostGIS), Right Mapnik

My version Mapnik is 3.0.22

gdalinfo shade.tif

Driver: GTiff/GeoTIFF
Files: ukraine.shade.tif
Size is 105386, 70317
Coordinate System is:
PROJCRS["WGS_1984_Web_Mercator_Auxiliary_Sphere",
BASEGEOGCRS["WGS 84",
DATUM["World Geodetic System 1984",
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1]]],
...
Origin = (2464272.464142868760973,6869089.983875649049878)
Pixel Size = (19.109257071294063,-19.109257071294063)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
COMPRESSION=ZSTD
INTERLEAVE=PIXEL
...
Band 1 Block=105386x1 Type=Byte, ColorInterp=Red
Mask Flags: PER_DATASET ALPHA
Band 2 Block=105386x1 Type=Byte, ColorInterp=Green
Mask Flags: PER_DATASET ALPHA
Band 3 Block=105386x1 Type=Byte, ColorInterp=Blue
Mask Flags: PER_DATASET ALPHA
Band 4 Block=105386x1 Type=Byte, ColorInterp=Alpha

From PostGIS:

Driver: PostGISRaster/PostGIS Raster driver
Files: none associated
Size is 105386, 70317
Coordinate System is:
PROJCRS["WGS 84 / Pseudo-Mercator",
BASEGEOGCRS["WGS 84",
DATUM["World Geodetic System 1984",
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1]]],
PRIMEM["Greenwich",0,
ANGLEUNIT["degree",0.0174532925199433]],
ID["EPSG",4326]],
...
Origin = (2464272.464142868760973,6869089.983875649049878)
Pixel Size = (19.109257071300000,-19.109257071300000)
Corner Coordinates:
...
Band 1 Block=2048x2048 Type=Byte, ColorInterp=Undefined
Overviews: 52693x35158
Band 2 Block=2048x2048 Type=Byte, ColorInterp=Undefined
Overviews: 52693x35158
Band 3 Block=2048x2048 Type=Byte, ColorInterp=Undefined
Overviews: 52693x35158
Band 4 Block=2048x2048 Type=Byte, ColorInterp=Undefined
Overviews: 52693x35158

MAP:
image

Today I'm adding a sample raster and backup from PostGIS:

final.zip

final.dump.zip

Maybe someone will answer?