[kepler-dev] [kepler-users] GDAL format Translator Crashes my workflow
Chad Berkley
berkley at nceas.ucsb.edu
Wed Apr 2 10:03:36 PDT 2008
Hi Niels,
After looking into this more, I think the actor should work as you
describe. When I run your workflow, I get the error:
ERROR 4: `/home/berkley/tmp/gdal_wms.xml' not recognised as a supported
file format.
[java]
[java] GDALOpen failed - 4
[java] `/home/berkley/tmp/gdal_wms.xml' not recognised as a
supported file format.
If I try to run the same command on the command line I get:
berkley at dana:~/project/ptII$ gdal_translate -ot Byte -of GTiff
~/tmp/gdal_wms.xml gdal_wms.tif
ERROR 4: `/home/berkley/tmp/gdal_wms.xml' not recognised as a supported
file format.
GDALOpen failed - 4
`/home/berkley/tmp/gdal_wms.xml' not recognised as a supported file format.
Is it working for you when you run it on the command line? I just
installed the newest version of gdal available for ubuntu and I get that
error when using your input file.
I was able to get the actor to stop crashing the entire workflow by
specifying "No Caching" in the cache options for the gdal_translate actor.
chad
Niels Hoffmann wrote:
> Hi Chad,
>
> Maybe I misunderstood the purpose of the GDAL Format Translator. I
> assumed it was a wrapper around gdal_translate.exe. The way GDAL
> Translate works is you throw any of the supported file types at it
> (including wms) and you specify the output Type and Format (see my
> example C:\FWTools2.1.0>gdal_translate -ot Byte -of GTiff gdal_wms.xml
> gdal_wms.tif)
> Is it true that the GDAL Format Translator actor only accepts GTiff as
> input and converts that into any of the supported output formats?
> In which case it is not usable for my purposes. Can you recommend an
> actor to consume a WMS service to then do image analysis on? I tried
> using the 'Convert URL To Image' actor but I can't seem to get hold of
> the resulting image for analysis purposes.
>
> Cheers,
> Niels Hoffmann
>
> >>> Chad Berkley <berkley at nceas.ucsb.edu> 2/04/2008 7:37 a.m. >>>
> Hi Niels,
>
> I've been looking into this and I think you're sending the GDAL Format
> Translator the wrong file type. It's expecting a GTIFF and you're
> giving it an xml file. Take a look at
> kepler/workflows/test/gdal-test.xml for an example. Let me know if it
> still won't work for you.
>
> The error handling on the JNI connection between the GDAL C code and the
> java interface is not very good. That's why it just crashes when
> something goes wrong. Not optimal, I know but the interface is pretty
> lacking when it comes to error handling.
>
> chad
>
>
> Niels Hoffmann wrote:
> > Hi Chad,
> >
> > Here's the workflow as well as the wms specification file for gdal. The
> > WMS Service is behind our Firewall, so you won't be able to access it.
> > As I explained in the original email, if I run the following on the
> > command prompt I get a valid Tif file.
> > C:\FWTools2.1.0>gdal_translate -ot Byte -of GTiff gdal_wms.xml
> gdal_wms.tif
> >
> > I'm running Kepler 1.0.0rc1 on WinXp sp2.
> > I basically copied part of the workflow from demos\ENM\GDAL_h1K_NS.xml.
> >
> > What I noted is that if I open the GDAL Format Translator actor in that
> > workflow it has dropdowns for 3 of the parameters:
> >
> > If I grab the actor in a new project from the GeometricOperation
> > components it does not have those dropdowns:
> >
> > Might it be that there are 2 different versions installed? I tried both
> > (dragging the one from the components and copying the one out of the
> > sample workflow) and both are crashing.
> > I also have FWTools 2.1 installed (1.6.0dev) as well as the GDAL
> > Binaries in my Python installation (1.5). Is the actor grabbing GDAL
> > from the system path or is it locally to the Kepler install? (I noticed
> > the 1.2 dll sitting in the Kepler\lib folder)
> >
> > Cheers,
> >
> >
> > =============================
> > Hi Niels,
> >
> > I'm looking into this. Could you email me the workflow you are using?
> >
> > thanks,
> > chad
> >
> > niels hoffmann wrote:
> >> Hi,
> >>
> >> I am trying to use a GDAL Format Translator to convert a WMS service
> >> to a GeoTiff.
> >> I created a xml file with my WMS connection settings as specified by
> >> the GDAL Documentation. If I run it from the GDAL Command prompt
> >> (FWTools) I get a proper result.
> >> But if I use the same xml file as input for the GDAL Format Translator
> >> my workflow crashes.
> >> Attached is the dump that gets created.
> >> Anybody knows what my problem is?
> >>
> >> Is there maybe another way to use a WMS service in Kepler?
> >>
> >> Kind regards,
> >> Niels Hoffmann
> >>
> >>
> >> ------------------------------------------------------------------------
> >>
> >> _______________________________________________
> >> Kepler-users mailing list
> >> Kepler-users at ecoinformatics.org
> >>
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users
> >>
> >>
> >> Niels Hoffmann
> >> GIS Specialist
> >>
> >> ph: +64 (0)7 859 3726
> >> fax: +64 (0)7 859 3701
> >> Email: hoffmannN at landcareresearch.co.nz
> >>
> >> Landcare Research
> >> Gate 10
> >> Silverdale Road
> >> Hamilton
>
> Please consider the environment before printing this email
>
> *WARNING* : This email and any attachments may be confidential and/or
> privileged. They are intended for the addressee only and are not to be
> read, used, copied or disseminated by anyone receiving them in error. If
> you are not the intended recipient, please notify the sender by return
> email and delete this message and any attachments.
>
> The views expressed in this email are those of the sender and do not
> necessarily reflect the
> official views of Landcare Research. _ http://www.landcareresearch.co.nz_
>
More information about the Kepler-dev
mailing list