Hi Mark,
please, read below...

On Mon, Jun 1, 2015 at 3:49 PM, Mark Volz <[email protected]> wrote:

>  Hello,
>
>
>
> I still was not able to get ECW / MRSID working so I decided to try to
> start from the beginning.  I have a couple questions about your steps, and
> I am not sure if I should always use the 64 bit versions to match my OS, or
> if I should use 32 bit versions to match GeoServer.
>
>
>
> Thank You
>
>
>
> #1) Install Java  - Should I install 1.7 or 1.8, and does it matter if I
> install 32 bit or 64 bit?
>
> If you want "fully operate at 64 bits", you should consider deploying
GeoServer into Tomcat (using a 64 bit JRE) instead of using the installer
which setup a 32 bit service to be quickly used as a "DEMO" of GeoServer.
(I was thinking that when running it as a Service, the installer also
allows you to choose for a 64 bit installation but it doesn't seem the
case).
Java 8 isn't officially supported although and we have a Travis instance
building that version. Moreover, nobody reported issues which are specific
for JDK8... Anyway, it isn't officially supported yet.


>  #2) Install GeoServer, make sure it is set to run as a service.
>
Well. There are no explicit instructions saying that you have to run it as
a service (see my previous feedback on Tomcat). I would use Tomcat instead
if you want to operate on a 64 bit machine. Otherwise, you can see errors
like this when loading the DLLs.

*"Can't load IA 32-bit .dll on a AMD 64-bit platform"*

>  #3) Install GDAL extension to C:\Program Files (x86)\GeoServer
> 2.6.3\webapps\geoserver\WEB-INF\lib
>
>
>
> #4) make sure you have no others GDAL versions around on your PATH.
>
>
>
> #5) extract all GDAL DLLs on a folder and set your PATH env variable to
> refer that folder.
>
> *>What exact DLLs are you referring to?*
>
In case you have downloaded the gdal-1.9.2-MSVC2010-x64.zip archive (just
to give you an example), I'm referring to all the files ending with a .dll
extension contained in that zip file.


>  *>What directory should I put these in?  C:\GDAL?*
>
It's up to you... C:\GDAL is a good candidate... something like
c:\programs\mytools\gdal\1.9.2\lib is a good one too (I'm just giving you
another example since you may put them where you want). The important thing
is that the PATH environment variable refers to the specific folder you
used.

>
>
> #6) extract the ECW/MRSID plugins on a folder, then copy them to C:\GDAL
>
> >On this step I assume this should be GDAL-19-1600-x64-ecw.msi and
> GDAL-19-1600-x64-mrsid.msi from
> http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.10/native/gdal/windows/MSVC2010/?
> By default they install to program files.  It sounds like I can copy the
> contents of the folder and place them into the same directory as the
> previous step.
>
 Note that you have to copy the DLLs from gdalplugins. If you put the whole
folder inside the C:\GDAL folder, the loader won't find them since it
doesn't recursively look into subfolders.

>  >Is there a good place to figure out what MSVC version I need for a
> particular OS?  I may also repeat these steps for Windows 7, Windows Server
> 2008.
>
>Does it matter if I install the 32 or 64 bit versions?
>
> I think that this depends on what MSVC libs you have on your machine:
https://www.microsoft.com/en-us/search/result.aspx?q=redistributable&form=DLC



>  #7) extract the gdal_data.zip on a folder and set a GDAL_DATA env var
> against that folder.
>
> >I assume that the contents of
> http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.10/native/gdal/
> should be placed in C:\GDAL_DATA is that correct?
>
Note that the gdal_data.zip already contains a gdal_data folder to allow
you directly extracting on some root path.
So you can extract the zip on c:\ (it should create the gdal_data folder
for you). Note that you could also use
c:\programs\mytools\gdal\1.9.2\, in order to re-use the previous example,
so that it will create a
c:\programs\mytools\gdal\1.9.2\gdal_data folder with the zipped csv files.


>  #8) since you are running GS as a service, check the
> bin/wrapper/wrapper.conf of your GeoServer installation and make sure to
> add a wrapper.java.library.path.2=path/to/the/GDAL/DLLs/folder after the
> path.1 line
>
> > At first this crashed Geoserver.  What folder and format should I map to
> such as wrapper.java.library.path.2=C:\GDAL
>
>
>
> #9) Add path variables PATH=C:\GDAL;C:\GDAL_DATA
>
Nope...
add PATH environment variable: PATH=C:\GDAL
add GDAL_DATA environment variable: GDAL_DATA=C:\GDAL_DATA


>
>
> #10) set an environment variable GDAL_DRIVER_PATH=C:\GDAL…
>


>   Is this redundant to step #9?
>
Nope. This is mandatory since GDAL will internally looks for external
plugins within an external folder. Without this variable being specified it
will not look for more drivers so it won't be able to load ECW and MrSID
plugins so you need to add that too.

Hope this helps.
Please, let me know if you need more assistance.

Cheers,
Daniele


>
>
>
> Sincerely,
>
> *Mark Volz, GISP*
>
> *Lyon County GIS Coordinator*
>
>
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Daniele Romagnoli
> *Sent:* Thursday, May 28, 2015 3:37 AM
> *To:* Per Söderström
> *Cc:* [email protected]; Mark Volz
> *Subject:* Re: [Geoserver-users] MrSID and ECW files in GeoServer -
> Issues installing GDAL in Windows
>
>
>
> Hi Mark,
>
> I think the crucial steps are:
>
>
>
> #1) make sure you have no others GDAL versions around on your PATH.
>
> #2) extract all GDAL DLLs on a folder and set your PATH env variable to
> refer that folder.
>
> #3) extract the ECW/MRSID plugins on a folder and set a GDAL_DRIVER_PATH
> env variable to refer that folder. (if you prefer, you can extract these
> libs on same place as #2 but you need to specify GDAL_DRIVER_PATH in any
> case).
>
> #4) extract the gdal_data.zip on a folder and set a GDAL_DATA env var
> against that folder.
>
> #5) since you are running GS as a service, check the
> bin/wrapper/wrapper.conf of your GeoServer installation and make sure to
> add a
>
>  wrapper.java.library.path.2=path/to/the/GDAL/DLLs/folder after the path.1
> line
>
>
>
> Even before starting GS, I would also run the javainfo/gdalinfo.bat script
> against one of your sample files to check if everything is properly
> configured. (That script is available in the GDAL zip archive you
> downloaded).
>
>
>
> Hope this helps.
>
> Cheers,
>
> Daniele
>
>
>
>
>
> On Thu, May 28, 2015 at 8:48 AM, Per Söderström <
> [email protected]> wrote:
>
> Hi,
>
>
>
> See post from Apr 30, 2013 in
> http://osgeo-org.1560.x6.nabble.com/GeoServer-2-3-0-GDAL-native-libraries-Windows-td5047711.html.
> That helped me.
>
>
>
> Comment on point 4:
>
>
>
> After installing .msi, copy all the files from C:\ProgramFiles\GDAL\* to
> C:\GDAL
>
> I also coiped gdal_ECW_JP2ECW.dll from C:\GDAL\gdalplugins to C:\GDAL
>
>
>
> Hope it helps!
>
>
>
> Regards,
>
> Per
>
>
>
>
>
> *Från:* Mark Volz [mailto:[email protected]]
> *Skickat:* den 27 maj 2015 15:18
> *Till:* [email protected]
> *Ämne:* [Geoserver-users] MrSID and ECW files in GeoServer - Issues
> installing GDAL in Windows
>
>
>
> Hello,
>
>
>
> I am trying to enable MrSID and ECW for GeoServer on a Windows 8 64 bit
> machine.  I thought that I followed all the steps on
> http://docs.geoserver.org/stable/en/user/data/raster/gdal.html, but the
> new formats are not appearing.  I was not exactly clear as to if I should
> install the 32 or 64 bit version of GDAL, or what GDAL DLL files I need to
> include in my path.   It may be possible that I missed a step or two.
>
>
>
> If anyone has any more verbatim instructions for installing MrSID, ECW,
> and perhaps the other GDAL formats in GeoServer please share.  I am running
> GeoServer as a service.
>
>
>
> Thank You!
>
>
>
> Sincerely,
>
> *Mark Volz, GISP*
>
> *Lyon County GIS Coordinator*
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
>
>
>
> --
>
> ==
> Meet us at the INSPIRE Conference in Lisbon 25-29 May 2015! Visit
> http://goo.gl/WHKDXT for more information.
> ==
>
> Ing. Daniele Romagnoli
> Senior Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax:      +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility  for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
>
>



-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to