[Geoserver-users] Getting the best results with Raster

Hi folks,

Apologies if this is a basic question – I’m fairly new to GIS data.

I’m using Geoserver 2.18.2 to host historical aerial clips and exporting the rasters with Arc Map 10.6 to Geotiff with a 500m buffer of a property. However I’m finding the quality of the image in Geoserver does not match the quality in Arc Map when zoomed in.

I’ve tried exporting at different DPI but find 300 or above has no discernible improvement. I’m not using any compression when creating the TIFF and using GeoTIFF Tags. I’ve read about resampling and how it can alter the image quality but not sure if that’s it.

Assuming this is not a new challenge, I’m curious what steps others have taken to get raster clips into Geoserver in a way that doesn’t compromise the image quality? I’m using the most detailed historical aerial photography as the use case requires inspection of features at the street level. Any help gratefully received!

Kind Regards,
Neil Saunders
Business Consultant

image001.png

image002.png

···






How was your Lotsearch experience? Click here.

Lotsearch Pty Ltd
Level 3, 68 Alfred Street, Milsons Point, NSW 2061
+61 (0)2 8287 0680



+61 (0) 413 379 883
support@anonymised.com
www.lotsearch.com.au




CONFIDENTIAL INFORMATION
This transmission may be privileged and may contain confidential information intended only for the recipient(s) named above. Any other distribution, re-transmission, copying or disclosure of this message is strictly prohibited.
If you have received this transmission in error, please notify me immediately by telephone or return email, and delete this message from your system. Thank you.



LinkedIn

Hi Neil,

Have you tried changing the Default Interpolation option in the web UI?

This is in Services >> WMS.

https://docs.geoserver.org/stable/en/user/services/wms/webadmin.html

Regards,

John

image005.png

image006.png

···

From: Neil Saunders neil.saunders@anonymised.com
Sent: 21 July 2021 02:25
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Getting the best results with Raster

Hi folks,

Apologies if this is a basic question – I’m fairly new to GIS data.

I’m using Geoserver 2.18.2 to host historical aerial clips and exporting the rasters with Arc Map 10.6 to Geotiff with a 500m buffer of a property. However I’m finding the quality of the image in Geoserver does not match the quality in Arc Map when zoomed in.

I’ve tried exporting at different DPI but find 300 or above has no discernible improvement. I’m not using any compression when creating the TIFF and using GeoTIFF Tags. I’ve read about resampling and how it can alter the image quality but not sure if that’s it.

Assuming this is not a new challenge, I’m curious what steps others have taken to get raster clips into Geoserver in a way that doesn’t compromise the image quality? I’m using the most detailed historical aerial photography as the use case requires inspection of features at the street level. Any help gratefully received!

Kind Regards,
Neil Saunders
Business Consultant







How was your Lotsearch experience? Click here.

Lotsearch Pty Ltd
Level 3, 68 Alfred Street, Milsons Point, NSW 2061
+61 (0)2 8287 0680



+61 (0) 413 379 883
support@anonymised.com
www.lotsearch.com.au




CONFIDENTIAL INFORMATION
This transmission may be privileged and may contain confidential information intended only for the recipient(s) named above. Any other distribution, re-transmission, copying or disclosure of this message is strictly prohibited.
If you have received this transmission in error, please notify me immediately by telephone or return email, and delete this message from your system. Thank you.



LinkedIn

Neil:

Can you describe more in what way the quality is lacking? Is it distorted, or pixelated, or what? Did you do any data prep to your geotiff, say introduce an overview? If so what sampling technique did you use?
What does “gdalinfo” return for your image?

Some general guidance from Paul Ramsey is here https://blog.cleverelephant.ca/2015/02/geotiff-compression-for-dummies.html

image001.png

image002.png

···


Jody Garnett

Hi Jody,

Many thanks for that link – it should prove invaluable once I resolve the primary issue :blush: Thanks to others for suggestions - the primary issue appears to actually be related to the initial export from Arc Map 10.6 e.g. when the GeoTIFF is first created. The issue is a loss of quality (visually in pixellation) in the TIFF when working at a large scale (zoomed in). I’ve been exporting using Arc’s “300 dpi” setting with no compression. This might be off topic now but I wondered if anyone had experience / best practice when preparing GeoTIFF clips from Arc Map? Or perhaps there is a better tool like gdal or QGIS (I haven’t used these before). I’m working with large GeoTIFF “aerial frames” (800Mb) and satellite WMS layers and wish to export clipped GeoTIFF to specific buffers (500m) automatically.

I’ve compared exports against Arc Pro 2.8 which doesn’t have a “DPI” setting per se – only a resolution setting (width x height). When I set the resolution to match the Arc Map export, the resulting GeoTIFF does appear visually better and comparable to the original. All comments welcome!

Kind Regards,
Neil Saunders
Business Consultant

image001.png

image002.png

···






How was your Lotsearch experience? Click here.

Lotsearch Pty Ltd
Level 3, 68 Alfred Street, Milsons Point, NSW 2061
+61 (0)2 8287 0680



+61 (0) 413 379 883
support@…9733…
www.lotsearch.com.au




CONFIDENTIAL INFORMATION
This transmission may be privileged and may contain confidential information intended only for the recipient(s) named above. Any other distribution, re-transmission, copying or disclosure of this message is strictly prohibited.
If you have received this transmission in error, please notify me immediately by telephone or return email, and delete this message from your system. Thank you.



LinkedIn

From: Jody Garnett <jody.garnett@…84…>
Sent: Wednesday, 21 July 2021 4:09 PM
To: Neil Saunders <neil.saunders@…9733…>
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Getting the best results with Raster

Neil:

Can you describe more in what way the quality is lacking? Is it distorted, or pixelated, or what? Did you do any data prep to your geotiff, say introduce an overview? If so what sampling technique did you use?

What does “gdalinfo” return for your image?

Some general guidance from Paul Ramsey is here https://blog.cleverelephant.ca/2015/02/geotiff-compression-for-dummies.html

Jody Garnett

On Tue, 20 Jul 2021 at 19:00, Neil Saunders <neil.saunders@…9733…> wrote:

Hi folks,

Apologies if this is a basic question – I’m fairly new to GIS data.

I’m using Geoserver 2.18.2 to host historical aerial clips and exporting the rasters with Arc Map 10.6 to Geotiff with a 500m buffer of a property. However I’m finding the quality of the image in Geoserver does not match the quality in Arc Map when zoomed in.

I’ve tried exporting at different DPI but find 300 or above has no discernible improvement. I’m not using any compression when creating the TIFF and using GeoTIFF Tags. I’ve read about resampling and how it can alter the image quality but not sure if that’s it.

Assuming this is not a new challenge, I’m curious what steps others have taken to get raster clips into Geoserver in a way that doesn’t compromise the image quality? I’m using the most detailed historical aerial photography as the use case requires inspection of features at the street level. Any help gratefully received!

Kind Regards,
Neil Saunders
Business Consultant







How was your Lotsearch experience? Click here.

Lotsearch Pty Ltd
Level 3, 68 Alfred Street, Milsons Point, NSW 2061
+61 (0)2 8287 0680



+61 (0) 413 379 883
support@…9733…
www.lotsearch.com.au




CONFIDENTIAL INFORMATION
This transmission may be privileged and may contain confidential information intended only for the recipient(s) named above. Any other distribution, re-transmission, copying or disclosure of this message is strictly prohibited.
If you have received this transmission in error, please notify me immediately by telephone or return email, and delete this message from your system. Thank you.



LinkedIn


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi folks,

I’ve been looking at how to best prepare historical aerial photos for Geoserver. I had issues with exporting from ArcMap the individual aerial frames into Geotiffs – losing quality along the way. I’ve since worked that out.

I tried to apply Paul Ramsey’s GDAL steps to the exported files but didn’t get very far as these errors occurred:

C:\Program Files (x86)\GDAL>gdal_translate.exe -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR -co TILED=YES Aerial_1930.tif Aerial_1930-new.tif

Input file size is 3541, 3438

ERROR 1: MissingRequired:TIFF directory is missing required “StripOffsets” field

0ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)

The 1930 aerial frame is black and white (as you would expect for the era). So I think the 2nd error is related to that. I tried removing the PHOTOMETRIC option from the command but…

C:\Program Files (x86)\GDAL>gdal_translate.exe -co COMPRESS=JPEG -co TILED=YES Aerial_1930.tif Aerial_1930-new.tif

Input file size is 3541, 3438

ERROR 1: MissingRequired:TIFF directory is missing required “StripOffsets” field

0…10…20…30…40…50…60…70…80ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG

…ERROR 1: An error occured while writing a dirty block

ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG

I decided to turn to a more recent image:

C:\Program Files (x86)\GDAL>gdal_translate.exe -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR -co TILED=YES Aerial_1994.tif Aerial_1994-new.tif

Input file size is 5521, 5361

0…ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG

ERROR 1: WriteEncodedTile/Strip() failed.

ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG

ERROR 1: WriteEncodedTile/Strip() failed.

ERROR 1: An error occured while writing a dirty block

ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG

ERROR 1: WriteEncodedTile/Strip() failed.

ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG

ERROR 1: WriteEncodedTile/Strip() failed.

ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG

ERROR 1: WriteEncodedTile/Strip() failed.

This is the first workflow I’ve tried and I’m open to any that others on the list might use when preparing Geotiff for Geoserver.

Many thanks and happy Friday (in Australia),

Neil

image001.png

image002.png

···

From: Jody Garnett <jody.garnett@…84…>
Sent: Wednesday, 21 July 2021 4:09 PM
To: Neil Saunders <neil.saunders@…9733…>
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Getting the best results with Raster

Neil:

Can you describe more in what way the quality is lacking? Is it distorted, or pixelated, or what? Did you do any data prep to your geotiff, say introduce an overview? If so what sampling technique did you use?

What does “gdalinfo” return for your image?

Some general guidance from Paul Ramsey is here https://blog.cleverelephant.ca/2015/02/geotiff-compression-for-dummies.html

Jody Garnett

On Tue, 20 Jul 2021 at 19:00, Neil Saunders <neil.saunders@…9733…> wrote:

Hi folks,

Apologies if this is a basic question – I’m fairly new to GIS data.

I’m using Geoserver 2.18.2 to host historical aerial clips and exporting the rasters with Arc Map 10.6 to Geotiff with a 500m buffer of a property. However I’m finding the quality of the image in Geoserver does not match the quality in Arc Map when zoomed in.

I’ve tried exporting at different DPI but find 300 or above has no discernible improvement. I’m not using any compression when creating the TIFF and using GeoTIFF Tags. I’ve read about resampling and how it can alter the image quality but not sure if that’s it.

Assuming this is not a new challenge, I’m curious what steps others have taken to get raster clips into Geoserver in a way that doesn’t compromise the image quality? I’m using the most detailed historical aerial photography as the use case requires inspection of features at the street level. Any help gratefully received!

Kind Regards,
Neil Saunders
Business Consultant







How was your Lotsearch experience? Click here.

Lotsearch Pty Ltd
Level 3, 68 Alfred Street, Milsons Point, NSW 2061
+61 (0)2 8287 0680



+61 (0) 413 379 883
support@…9733…
www.lotsearch.com.au




CONFIDENTIAL INFORMATION
This transmission may be privileged and may contain confidential information intended only for the recipient(s) named above. Any other distribution, re-transmission, copying or disclosure of this message is strictly prohibited.
If you have received this transmission in error, please notify me immediately by telephone or return email, and delete this message from your system. Thank you.



LinkedIn


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users