Hi,
how are you setting your project's and how are you importing your
dependencies?
I would suggest to use maven when setting it up in order to make sure all
the required dependencies are used.

If you need to access DTED data you still need to:
1) have the imageio-ext-gdal-bindings and imageio-ext-gdal-dted on your
classpath
2) have the GDAL native libraries on your LD_LIBRARY_PATH

For the first point, if you add gt-imageio-ext-gdal as dependency to your
project pom, maven will get all the needed dependencies.
For the second point, you should download the proper set of native libs,
depending on which OS are you using and let them be referred by the
LD_LIBRARY_PATH.
(You may find them here:
http://java.net/projects/imageio-ext/downloads/directory/Releases/Dependencies/GDAL/NativeLibraries/1.7.3
)

Hope this helps.
Daniele




On Tue, Dec 4, 2012 at 8:04 AM, Boided <[email protected]> wrote:

> Hi Daniele ,
>
>              As you said i have included the gt-imageio-ext-gdal plugin
> along with all the dependencies.
> and this is the error i am getting now.
>
> Error while parsing JAI registry file
>
> "file:/D:/geotools-8.3-bin/geotools-8.3/gt-coverage-8.3.jar!/META-INF/registryFile.jai"
> :
> Error in registry file at line number #31
> A descriptor is already registered against the name
> "org.geotools.ColorReduction" under registry mode "rendered"
> Error in registry file at line number #32
> A descriptor is already registered against the name
> "org.geotools.ColorInversion" under registry mode "rendered"
> Error in registry file at line number #33
> A descriptor is already registered against the name "GTCrop" under registry
> mode "rendered"
> Error while parsing JAI registry file
>
> "file:/D:/geotools-8.3-bin/geotools-8.3/jt-zonalstats-1.3.0.jar!/META-INF/registryFile.jai"
> :
> Error in registry file at line number #4
> A descriptor is already registered against the name "ZonalStats" under
> registry mode "rendered"
> Dec 4, 2012 12:17:52 PM it.geosolutions.imageio.gdalframework.GDALUtilities
> loadGDAL
> WARNING: Failed to load the GDAL native libs. This is not a problem unless
> you need to use the GDAL plugins: they won't be enabled.
> java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path
> Exception in thread "main" java.lang.UnsupportedOperationException: Trying
> to get a reader from an unknown format.
>         at
>
> org.geotools.coverage.grid.io.UnknownFormat.getReader(UnknownFormat.java:62)
>
> i have to read both vector and raster data. I am able to read and open a
> shapefile. and geotiff without errors.. but i have to open DTED file also
> now. Below are the dependencies that i have included:
>
>
> commons-codec-1.2.jar
> commons-httpclient-3.1.jar
> commons-logging-1.1.1.jar
> commons-pool-1.5.4.jar
> gt-api-8.3.jar
> gt-coverage-8.3.jar
> gt-cql-8.3.jar
> gt-data-8.3.jar
> gt-epsg-hsql-8.3.jar
> gt-geotiff-8.3.jar
> gt-image-8.3.jar
> gt-imageio-ext-gdal-8.3.jar
> gt-main-8.3.jar
> gt-metadata-8.3.jar
> gt-opengis-8.3.jar
> gt-referencing-8.3.jar
> gt-render-8.3.jar
> gt-shapefile-8.3.jar
> gt-swing-8.3.jar
> gt-wms-8.3.jar
> gt-xml-8.3.jar
> hsqldb-1.8.0.7.jar
> imageio-ext-gdalframework-1.1.5.jar
> imageio-ext-tiff-1.1.5.jar
> imageio-ext-utilities-1.1.5.jar
> jai_codec-1.1.3.jar
> jai_core-1.1.3.jar
> jai_imageio-1.1.jar
> jdom-1.0.jar
> jgridshift-1.0.jar
> jsr-275-1.0-beta-2.jar
> jts-1.12.jar
> jt-utils-1.3.0.jar
> miglayout-3.7-swing.jar
> vecmath-1.3.2.jar
>
> are there any conflicting jar files?
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/Reading-a-DT2-file-tp5020285p5020488.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>



-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it 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

-------------------------------------------------------
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to