Opened 12 years ago
Last modified 5 years ago
#2174 new defect
GDAL - MapImage with stripes
Reported by: | zspitzer | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 4.0 |
Component: | Rendering Service | Version: | 2.4.0 |
Severity: | major | Keywords: | |
Cc: | warmerdam@… | External ID: |
Description
I'm trying to produce large high quality plots with the GetMapImage-methode. When using the GDAL Raster Provider I get stripes on my image. Source files are either 8 bit or 24 bit. It doesn't matter if it is a raster FeatureSource of type 'single' or 'composite'. I've tested with different raster output formats (PNG/PNG8/JPG) but get always the same result like in this image:
You can test it with the TrueMarble http://129.123.16.127/globe/TrueMarble_GeoTIFF/TrueMarble.8km.5400x2700.tif.gz dataset.
Then create FeatureSource, LayerDefinition and MapDefinition and call the GetMapImage method on MapAgent Test Pages pointing to your MapDefinition. And you can see ...
http://osgeo-org.1560.n6.nabble.com/file/n5016550/italy.png
With the following settings I get the above image:
Format: PNG
View Center X: 0 View Center Y: 0 ViewScale: 10000000
Display Dpi: 75 Display width: 4000 Display height: 4000
(don't forget to adjust the raster settings in serverconfig.ini to allow such high resolution output for GDAL Provider)
Discussion: http://osgeo-org.1560.n6.nabble.com/GDAL-MapImage-with-stripes-td5016254.html#a5016599
Attachments (1)
Change History (6)
by , 12 years ago
comment:1 by , 12 years ago
Cc: | added |
---|
comment:2 by , 12 years ago
Milestone: | → 2.5 |
---|
comment:3 by , 11 years ago
Here's my observations thus far.
The striped effect happens when your MaxRasterImageHeight and MaxRasterImageWidth are greater than the size of the image you are requesting.
This conclusion was made through 5 tests with various serverconfig.ini values using your sample request.
Test case #1:
MaxRasterImageHeight = 2048 (default) MaxRasterImageWidth = 2048 (default)
No stripes
Test case #2:
MaxRasterImageHeight = 3072 (default) MaxRasterImageWidth = 3072 (default)
No stripes
Test case #3:
MaxRasterImageHeight = 4096 (default) MaxRasterImageWidth = 4096 (default)
Striped effect occurs
Test case #4:
MaxRasterImageHeight = 4000 (default) MaxRasterImageWidth = 4000 (default)
No striped effect
Test case #5:
MaxRasterImageHeight = 4001 (default) MaxRasterImageWidth = 4001 (default)
Striped effect occurs.
Zac, I do not have any immediate idea why this might be happening.