Hi Matthias,
first of all, sorry for the late reply.
Do you have any chance to share your sample dataset so we can take a look on
it?
Please, let me know.

Best Regards,
Daniele


On Thu, Jan 21, 2010 at 10:51 AM, Matthias Hofmann <
[email protected]> wrote:

> Hallo,
>
> i have some problems with geotools using the classes "ArcGridWriter" or
> "ArcGridFormat" in order to read an ArcGrid RasterFile. My Rasterfile
> works perfectly with ArcGIS. The exception listed below occurs in the same
> way whether creating an ArcGridFormat OR ArcGridReader object.
>
> Code:
> -----
> ArcGridFormat agf = new ArcGridFormat();
>                ArcGridReader agr2 = (ArcGridReader)
> agf.getReader(RASTERFILE);
>                GridCoverage2D gc2 = (GridCoverage2D) agr2.read(null);
> -------
>
> here the exception:
> ----------
> Exception in thread "main" java.lang.NoSuchFieldError: METER
>        at
>
> org.geotools.referencing.cs.DefaultCoordinateSystemAxis.<clinit>(DefaultCoordinateSystemAxis.java:186)
>        at
>
> org.geotools.referencing.factory.TransformedAuthorityFactory.<clinit>(TransformedAuthorityFactory.java:78)
>        at
>
> org.geotools.referencing.factory.epsg.LongitudeFirstFactory.createBackingStore(LongitudeFirstFactory.java:196)
>        at
>
> org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(DeferredAuthorityFactory.java:132)
>        at
>
> org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable(BufferedAuthorityFactory.java:233)
>        at
>
> org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable(DeferredAuthorityFactory.java:119)
>        at
> org.geotools.factory.FactoryRegistry.isAvailable(FactoryRegistry.java:668)
>        at
> org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:500)
>        at
> org.geotools.factory.FactoryRegistry$1.filter(FactoryRegistry.java:191)
>        at
> javax.imageio.spi.FilterIterator.advance(ServiceRegistry.java:793)
>        at javax.imageio.spi.FilterIterator.<init>(ServiceRegistry.java:787)
>        at
>
> javax.imageio.spi.ServiceRegistry.getServiceProviders(ServiceRegistry.java:491)
>        at
>
> org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:196)
>        at
>
> org.geotools.referencing.ReferencingFactoryFinder.getFactories(ReferencingFactoryFinder.java:176)
>        at
>
> org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactories(ReferencingFactoryFinder.java:451)
>        at
>
> org.geotools.referencing.DefaultAuthorityFactory.getBackingFactory(DefaultAuthorityFactory.java:88)
>        at
>
> org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthorityFactory.java:69)
>        at org.geotools.referencing.CRS.getAuthorityFactory(CRS.java:182)
>        at org.geotools.referencing.CRS.decode(CRS.java:420)
>        at
>
> org.geotools.coverage.grid.io.AbstractGridFormat.<clinit>(AbstractGridFormat.java:97)
> (...my Code)
> ---------
> ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code =
> -2
> JDWP exit error AGENT_ERROR_NO_JNI_ENV(183):
> [../../../src/share/back/util.c:820]
> ------------------------------------------------------------------------
> [ERROR]BUILD ERROR
> ------------------------------------------------------------------------
>
> I looked at the Javadoc and there is indeed no Field "METER".
> So, i think there are possible two reasons for the exception: There is a
> version conflict (i use geotools 2.5.3 with Maven which is quite recent)
> or a bug in my code / geotools.
>
> Can somebody help me figuring out this issue?
>
> Thanks,
>
> Matthias
>
>
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>



-- 
-------------------------------------------------------
Eng. Daniele Romagnoli
Software Engineer

GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax:     +39 0584983027
mob:   +39 328 0559267


http://www.geo-solutions.it

-------------------------------------------------------
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to