I pulled the latest source from GeoServer master because I was going to look into fixing some of the bugs dealing with the GDAL Rest issues but do not know how to run GeoServer in debug with the extension enabled. I followed the steps for getting extensions and building using the following command mvn -Dskiptests -P allExtensions install and can run but do not see the GDAL raster types available when I run… Just the default types appear available. How do I get GDAL types available when debugging?
Hi Ben,
did you also properly install the native libraries part?
GDAL extension work on top of imageio-ext which also has modules working “as a bridge” between GeoTools/GeoServer Java code and GDAL C/C++ library (.DLL on windows, .SO on linux).
More info are available here:
http://docs.geoserver.org/stable/en/user/data/raster/gdal.html
Please, let us know.
Best Regards,
Daniele
···
On Fri, Feb 6, 2015 at 12:45 AM, Ben Johnson <weagle08@anonymised.com> wrote:
I pulled the latest source from GeoServer master because I was going to look into fixing some of the bugs dealing with the GDAL Rest issues but do not know how to run GeoServer in debug with the extension enabled. I followed the steps for getting extensions and building using the following command mvn -Dskiptests -P allExtensions install and can run but do not see the GDAL raster types available when I run… Just the default types appear available. How do I get GDAL types available when debugging?
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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.
Ben,
the trick when debugging GeoServer in Eclipse is to ensure that extensions of interest are on the classpath of the main application. The supported way of doing this is by enabling the Maven profiles of these extensions to add them as dependencies when generating the Eclipse project files for gs-web-app. In your case I think you need the -Pgdal flag.
Always generate Eclipse project files from the top level src directory to ensure correct inter-module workspace dependencies are generated. In your case the command will be something like:
mvn -PallExtensions -Pgdal eclipse:clean eclipse:eclipse
This will create Eclipse projects for all modules. (You can see the names of other profiles in src/web/app/pom.xml.) Add
You should then be able to refresh your Eclipse projects and launch GeoServer using one of the standard methods; for example using the embedded Jetty-based launcher by running this gs-web-app class as a Java Application:
src/test/java/org/geoserver/web/Start.java
Also try building with -Prelease to have the release demo data present in GeoServer at run time in Eclipse. This should have the same effect as these instructions:
http://docs.geoserver.org/latest/en/developer/maven-guide/index.html#building-the-web-module
Kind regards,
Ben.
On 06/02/15 12:45, Ben Johnson wrote:
I pulled the latest source from GeoServer master because I was going to
look into fixing some of the bugs dealing with the GDAL Rest issues but do
not know how to run GeoServer in debug with the extension enabled. I
followed the steps for getting extensions and building using the following
command mvn -Dskiptests -P allExtensions install and can run but do not see
the GDAL raster types available when I run... Just the default types appear
available. How do I get GDAL types available when debugging?------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Ben Caradoc-Davies <ben@anonymised.com>
Software Engineer
Transient Software <http://transient.nz>
New Zealand
I also had some issues with GDAL native lib loading.
At the end I just dropped gdal libs to Windows/System32. It is not clean
solution but it worked for me. I never know from where java is gonna read
libs. Some times is root from where you start, sometimes from jdk location,
then LD_LIB_PATH, or PATH...
I have following gdal libs:
gdalconstjni.dll
gdaljni.dll
gdal19.dll
osrjni.dll
ogrjni.dll
I think just first three are mandatory.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Building-and-Debugging-GeoServer-with-extensions-tp5185868p5185985.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Your suggestion worked Ben! Thanks!! Now to figure out the rest services in GeoServer… I’m not a Java dev… mostly C++ and C#.
···
On Fri, Feb 6, 2015 at 8:11 AM, uros <uros.mesaric-kunst@anonymised.com> wrote:
I also had some issues with GDAL native lib loading.
At the end I just dropped gdal libs to Windows/System32. It is not clean
solution but it worked for me. I never know from where java is gonna read
libs. Some times is root from where you start, sometimes from jdk location,
then LD_LIB_PATH, or PATH…I have following gdal libs:
gdalconstjni.dll
gdaljni.dll
gdal19.dll
osrjni.dll
ogrjni.dllI think just first three are mandatory.
–
View this message in context: http://osgeo-org.1560.x6.nabble.com/Building-and-Debugging-GeoServer-with-extensions-tp5185868p5185985.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users