Hi Brett,
I'm using 2.7.4 versión with this maven configuration:
|<!-- GEOTOOLS -->
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-api</artifactId>
<version>2.7.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-main</artifactId>
<version>2.7.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-opengis</artifactId>
<version>2.7.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-coverage</artifactId>
<version>2.7.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-coverageio</artifactId>
<version>2.7.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-arcgrid</artifactId>
<version>2.7.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-render</artifactId>
<version>2.7.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-metadata</artifactId>
<version>2.7.4</version>
<scope>compile</scope>
</dependency>|
Thank you so much!!.
El 14/02/13 01:27, Brett Walker escribió:
Hi Pablo,
I can think of two reasons why this might be occurring:
·You are missing a jar (gt-opengis-x.y.jar), unlikely since it knows
about the class AxisDirection;
·You have a version mismatch between gt-opengis-x.y.jar and
gt-referencing-a.b.jar
If these jar names seems different to your current jar names, it be
because you may have a quite an old version of Geotools.
What version of Geotools are you using?
There may be class loading issues involved here, but these are not
immediately obvious from the stacktrace.
Brett
*From:*PabloDR [mailto:[email protected]]
*Sent:* Thursday, 14 February 2013 4:52 AM
*To:* GeotoolsList
*Subject:* [Geotools-gt2-users] Error no such method
org.opengis.referencing.cs.AxisDirection.absolute() When I try to read
.asc files
Hi,
I get the next error when I try to read .asc files:
|Exception in thread "main" java.lang.NoSuchMethodError:
org.opengis.referencing.cs.AxisDirection.absolute()Lorg/opengis/referencing/cs/AxisDirection;|
| at
org.geotools.referencing.cs.DefaultCoordinateSystemAxis.<init>(DefaultCoordinateSystemAxis.java:730)|
| at
org.geotools.referencing.cs.DefaultCoordinateSystemAxis.<init>(DefaultCoordinateSystemAxis.java:787)|
| at
org.geotools.referencing.cs.DefaultCoordinateSystemAxis.<init>(DefaultCoordinateSystemAxis.java:820)|
| at
org.geotools.referencing.cs.DefaultCoordinateSystemAxis.<clinit>(DefaultCoordinateSystemAxis.java:113)|
| at
org.geotools.referencing.cs.AbstractCS.<clinit>(AbstractCS.java:85)|
| at
org.geotools.referencing.crs.DefaultEngineeringCRS.<clinit>(DefaultEngineeringCRS.java:112)|
| at
org.geotools.coverage.grid.io.AbstractGridFormat.<clinit>(AbstractGridFormat.java:98)|
| at
org.geotools.gce.arcgrid.ArcGridFormatFactory.createFormat(ArcGridFormatFactory.java:75)|
| at
org.geotools.gce.arcgrid.ArcGridFormatFactory.createFormat(ArcGridFormatFactory.java:38)|
| at
org.geotools.coverage.grid.io.GridFormatFinder.findFormats(GridFormatFinder.java:185)|
| at
org.geotools.coverage.grid.io.GridFormatFinder.findFormat(GridFormatFinder.java:241)|
| at
org.geotools.coverage.grid.io.GridFormatFinder.findFormat(GridFormatFinder.java:216)|
I tried two diferent codes, getting the same error:
Code1:
|ArcGridReader asciiReader = new ArcGridReader(file);|
|return asciiReader.read(null);|
Code2:
|AbstractGridFormat format = GridFormatFinder.findFormat(file);|
|AbstractGridCoverage2DReader reader = format.getReader(file);|
|return reader.read(null);|
Somebody can tell me what's is wrong?
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
--
Pablo Díaz Redondo
LaboraTe - USC
http://laborate.usc.es
[email protected] / [email protected]
Telf.: 982823301
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users