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

Reply via email to