Hi, Forwarded something more about utilising gdal with Java.
-Jukka- -----Alkuperäinen viesti----- Lähettäjä: [EMAIL PROTECTED] puolesta: SamuelToepke Lähetetty: ti 23.10.2007 18:58 Vastaanottaja: [EMAIL PROTECTED] Aihe: Re: [Geoserver-users] [Geotools-gt2-users] gdal Java bindings Hello, I am currently working on a project that has similar needs to what you stated. I'm using Java for a GeoTIFF pull, and need to reproject as well as place the file in the proper Geoserver folder (data/coverages). A full jgdal would be nice, but until then I'm using the work-around of calling the process from inside Java. Sample code is below: private static void reprojectTIFF() throws IOException { String s = "../webapps/geoserver/data/coverages/FWTools-1.3.9/bin_safe/gdalwarp -t_srs \"+proj=latlong +datum=WGS84\" ../webapps/geoserver/data/coverages/input.tif ../webapps/geoserver/data/coverages/output.tif"; Runtime rt = Runtime.getRuntime(); Process p = rt.exec(s); } Use the following code to reload the catalog: http://docs.codehaus.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog Hopefully this is close to what you were looking for. -Sam aaime wrote: > > gershwinou ha scritto: >> Hi here, >> >> I tried to check some way to handle gdal with java (aka JNI). I have >> seen that there is an existing jgdal in gdal project. How is it working? >> My need is to handle different raster format (satellite imagery) into >> geoserver, or geotools. >> Any hints for that (gdal does not seem really talkative for that) ? >> Maybe there is a complete migration of gdal for java somewhere as well? > > There is an effort undergoing to bridge gdal and jai-image at > https://imageio-ext.dev.java.net/. > > GeoServer will be using this project results in order to read ecw > and other file formats supported by GDAL. > > Unfortunately the whole thing is still not ready for prime time, you > should try to contact the authors (Simone Giannecchini, Daniele > Romagnoli) and eventually collaborate with them. > > Cheers > Andrea > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Geoserver-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > -- View this message in context: http://www.nabble.com/gdal-Java-bindings-tf4675966.html#a13366592 Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Geoserver-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/geoserver-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel