Hi Ville,

Something does not seem to match with gdalinfo and the error message. Data type 
Byte means 8-bit and it should convert fine into jpeg-in-tiff.

-Jukka-
________________________________
Lähettäjä: Ville Koivisto<mailto:ville.koivi...@kuntotekniikka.fi>
Lähetetty: ‎18.‎7.‎2018 12:13
Vastaanottaja: Rahkonen Jukka 
(MML)<mailto:jukka.rahko...@maanmittauslaitos.fi>; 'Joe 
Murphy'<mailto:joseph.b.murp...@gmail.com>
Kopio: 'GeoServer Mailing List 
List'<mailto:geoserver-users@lists.sourceforge.net>
Aihe: RE: [Geoserver-users] Geoserver on Debian: GDAL-libraries

Hi Jukka and others,

Thanks for the advice, that’s how I’ll probably do it since our client won’t 
assumable ever get the license from Hexagon. I read somewhere that usage of ecw 
on a server would be legal for educational purposes (i.e. universities and 
such) and for non-commercial purposes. Unfortunately same source declared that 
government wouldn’t be counted as non-commercial (in my case the client is a 
municipality).

I’m struggling a bit to convert the ecw to geotiff. It seems to be due to 8bit 
data type requirement that JPEG compression has. I get the following error 
message in QGIS (raster --> translate [gdal_translate]):

ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: JPEGSetupEncode:BitsPerSample 32 not allowed for JPEG
ERROR 1: An error occurred while writing a dirty block

My ecw has three bands and according to gdalinfo has data type of byte. I’ve 
asked the same question here:
https://gis.stackexchange.com/questions/289780/how-to-transform-raster-in-ecw-format-to-a-geotiff-with-jpeg-compression-probl

Perhaps you’re more experienced with gdal_translate?

Kind regards,

Ville Koivisto
+35840 701 4283
GIS Expert
Suomen kuntotekniikka Oy
[KUNTO TEKNIIKKA logo transparent FF9900]

From: Rahkonen Jukka (MML) <jukka.rahko...@maanmittauslaitos.fi>
Sent: Wednesday, July 18, 2018 9:37 AM
To: Ville Koivisto <ville.koivi...@kuntotekniikka.fi>; 'Joe Murphy' 
<joseph.b.murp...@gmail.com>
Cc: 'GeoServer Mailing List List' <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Geoserver on Debian: GDAL-libraries


Hi,



Have you considered to convert your ECW files into tiled, JPEG compressed 
GeoTIFF files? That way you could achieve about the same file size with 
slightly decreased quality because of second round of lossy compression. From 
my experience the quality loss is harmless. GeoTIFFs have good native support 
in Geoserver and you would not need to acquire the ECW license from Hexagon 
that is otherwise needed if you want to use ECW files with a server application.



Problems with adding GDAL image formats are quite common. I wonder what should 
be done for making the installation easier. GDAL 1.9 is very old and no 
software should rely on that version while the current version is 2.2.2.



-Jukka Rahkonen-



________________________________
Lähettäjä: Ville Koivisto 
<ville.koivi...@kuntotekniikka.fi<mailto:ville.koivi...@kuntotekniikka.fi>>
Lähetetty: 18. heinäkuuta 2018 8:44
Vastaanottaja: 'Joe Murphy'
Kopio: 'GeoServer Mailing List List'
Aihe: Re: [Geoserver-users] Geoserver on Debian: GDAL-libraries

Good morning,

Thanks for answering. My overall goal is to enable ECW as a file format for my 
geoserver (2.13.1) which installed on a server using Debian 9 as OS. I’m 
following these instructions:
http://docs.geoserver.org/latest/en/user/data/raster/gdal.html

We followed through the tutorial once with my colleague, but no luck. GDAL 
popped up to modules list under server status tab, but it has a warning sign. 
New formats weren’t enabled. Now we’re going through the steps once again 
trying to troubleshoot the problem. I’m still a newbie when it comes to Linux 
and geoserver so it might be something obvious…

Could you point me to source from which you downloaded a proper GDAL library 
for Debian? How did you know to use 1.9.2? As I said below, it seems not to be 
listed here:
https://demo.geo-solutions.it/share/github/imageio-ext/releases/native/gdal/1.9.2/linux/

Kind regards,

Ville Koivisto
+35840 701 4283
GIS Expert
Suomen kuntotekniikka Oy
[KUNTO TEKNIIKKA logo transparent FF9900]

From: Joe Murphy <joseph.b.murp...@gmail.com<mailto:joseph.b.murp...@gmail.com>>
Sent: Wednesday, July 18, 2018 6:27 AM
To: Ville Koivisto 
<ville.koivi...@kuntotekniikka.fi<mailto:ville.koivi...@kuntotekniikka.fi>>
Cc: GeoServer Mailing List List 
<geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>>
Subject: Re: [Geoserver-users] Geoserver on Debian: GDAL-libraries

Hello Sir,

I guess I would need to know more what you're trying to do. I may be able to 
help a bit? My set up is a bit different , as I am running Geoserver in a 
Debian Docker Container, but i am using GDAL 1.9.2 in the container. Maybe i 
can be of some help.

Joe

On Tue, Jul 17, 2018 at 5:11 AM, Ville Koivisto 
<ville.koivi...@kuntotekniikka.fi<mailto:ville.koivi...@kuntotekniikka.fi>> 
wrote:
Hi everyone,

Apologies if my question is obvious, Linux is something new to me. All tips are 
appreciated. I have two questions:

1) I’m looking to install GDAL native libraries for my Linux Debian server. But 
Debian seems not to be listed on this download page 
(https://demo.geo-solutions.it/share/github/imageio-ext/releases/native/gdal/1.9.2/linux/).
 Is Debian not supported for GDAL or what am I missing?

2) A client to whom I’m preparing the Geoserver has handed me some ECW-files 
and as far as I understand this has been debuted a bit concerning it’s license. 
Can anyone elaborate on usage restrictions of ECW-files on a server environment 
as of today? The client is a municipality and intended use is non-commercial 
(different definitions of course exist). Assumable, they don’t have a license, 
but rather a third party data provider has simply handed the data sets in 
ecw-format.

Cheers,

Ville Koivisto
+35840 701 4283
GIS Expert
Suomen kuntotekniikka Oy
[KUNTO TEKNIIKKA logo transparent FF9900]


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

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<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

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

Reply via email to