Dear all,
I would like to create an "envelope" object with a specific coordinate
reference system and coordinates, for that I write this code:
GeneralEnvelope envelope = new GeneralEnvelope(
new double[] {-25.6849, 35.314},
new double[] {64.735,70.691});
envelope.setCoordinateReferenceSystem(CRS.decode("EPSG:4326"));
But I get this error:
java.lang.NoSuchFieldError: FORCE_AXIS_ORDER_HONORING
at
org.geotools.referencing.factory.HTTP_AuthorityFactory.defaultAxisOrderHints
(HTTP_AuthorityFactory.java:106)
at
org.geotools.referencing.factory.HTTP_AuthorityFactory.getFactory(HTTP_Autho
rityFactory.java:130)
at
org.geotools.referencing.factory.URN_AuthorityFactory.<init>(URN_AuthorityFa
ctory.java:98)
at
org.geotools.referencing.factory.URN_AuthorityFactory.<init>(URN_AuthorityFa
ctory.java:86)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.misc.Service$LazyIterator.next(Unknown Source)
at
org.geotools.factory.FactoryRegistry.scanForPlugins(FactoryRegistry.java:564
)
at
org.geotools.factory.FactoryRegistry.safeScanForPlugins(FactoryRegistry.java
:540)
at
org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.jav
a:175)
at
org.geotools.referencing.FactoryFinder.getFactories(FactoryFinder.java:195)
at
org.geotools.referencing.FactoryFinder.getCRSAuthorityFactories(FactoryFinde
r.java:520)
at
org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthorityFact
ory.java:59)
at
org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthorityFact
ory.java:51)
at org.geotools.referencing.CRS.getAuthorityFactory(CRS.java:387)
at org.geotools.referencing.CRS.decode(CRS.java:340)
at org.geotools.referencing.CRS.decode(CRS.java:276)
....
Do you know what happens? What can I do? I am using gt2-2.4.2.
Thanks in advance,
Adriana.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users