Hello list,
I have had mixed luck with the GDAL plugin in hopes of supporting MrSids in
Geoserver. Sometimes I can get it to load and sometimes not. Most of the
time I cannot get it to work. I have tried both windows xp and server 2003
as well as on a linux box. I have gotten it to work and have utilized it for
projects, but when it comes time to set up production servers, it tends to
fail even when mirroring what i had done to get it to work. I've dug around
the forums/documentation to no avail. My most recent trial was on a windows
server2003 box and below is a detailed description of my trial:
Geoserver Trials on ec-gissrv1 (win)
-Raid10 drive array.
-290 G of drive space.
-4G of RAM
Windows Server 2003 R2 SP2
Started this task to try and establish a stable geoserver install with the
gdal/image plugin, specifically for Dodge county imagery. The current
production geoserver would not accept the gdal plugin, but it was installed
successfully on my local machine(win) and on the development machine
(ec-devgeo1 – linux).
1. Installed JAVA JRE/JDK on server
a. Jdk1.6.0_13(latest)
b. Jre6
2. installed Tomcat (6.0.18)
a. set to :8080
b. used workaround for known issue re:
http://stackoverflow.com/questions/141411/tomcat-6-0-18-service-will-not-start-on-a-windows-server/142190
3. Downloaded geoserver_1.7.2.war.zip
4. Downloaded geoserver_1.7.2-gdal-plugin.zip
5. Deployed .war
6. following readme in gdal-plugin:
a. extracted .jars to WEBINF/lib
b. http://geoserver.org/display/GEOSDOC/ImageIO-ext+GDAL+extensions
"Download the libraries that do suit your GeoServer version and operating
system here:
• GeoServer 1.7.0 onwards:
o windows: windows-gdal-mrsid_1.7.0_onwards.zip
o linux: linux-gdal-mrsid_1.7.0_onwards.zip
o for all platforms: gdal_data_1.7.0_onwards.zip
To use these libs, be sure your JAVA_HOME environment variable is properly
configured. Then:
• On Windows: copy the downloaded DLLs to your $JAVA_HOME/bin
• On Linux: if JAVA_HOME links to a JDK run the following command (requires
superuser privileges): sudo unzip -o linux-gdal-mrsid.zip -d
$JAVA_HOME/jre/lib/i386. In case JAVA_HOME links to a JRE, use the same
command with -d $JAVA_HOME/lib/i386 as destination directory specification.
The unzip command will keep symbolic links.
Then setup the GDAL_DATA directory, that allows to support extra EPSG codes:
• Extract gdal_data.zip somewhere on your machine (as an instance
C:/gdal_data).
• Set a GDAL_DATA environment variable linking to the directory where you
have stored data contained in gdal_data.zip, making sure the web container
running GeoServer will pick it up."
7. set env variables for GDAL_DATA and JAVA_HOME
8. copied DLLs
9. Setup C:\gdal_data
10. Restart Server-Started Tomcat-Geoserver
11. went to verify coverage plugins and…nothing (well, nothing additional)!
After this trial I removed java/tomcat/geoserver/env variables and started
again with 1.7.4
The method for getting GDAL support is way more complex, building and
compiling with subversion/binaries/etc…no time to deal with this so I
removed everything again and went back to working with 1.7.2 following the
same steps.
Things I tried:
Environment variable values for JAVA_HOME
Putting DLLs in jdk and jre /bin
Copy/paste vs. extracting
Restarts, restarts, restarts
Trying to mirror my local webapps/geoserver dir
Mirroring java dirs
Checking logs: (Catalina)
WARNING: Native library load failed.java.lang.UnsatisfiedLinkError:
C:\Program Files\Java\jre6\bin\gdaljni.dll: Can't find dependent libraries
I have a few questions:
am i missing something? how come i can get it to work locally and on a linux
box once or twice, but then have issues elsewhere?
Are there any plans for extending Geoserver out-of-the-box support for the
image types this gdal plugin is needed for? like MrSid?
I appreciate any insight from anyone, it would surely be appreciated!
jeremy holt
GIS Consultant
--
View this message in context: http://www.nabble.com/GDAL-plugin---1.7.2-tp23375086p23375086.html
Sent from the GeoServer - User mailing list archive at Nabble.com.