Re: [Geotools-gt2-users] Getting information about ArcGrid Coverage.

2013-03-13 Thread Lauchlin Wilkinson
> I mean, geotools base library should implement the methods getMax, getMin > and getNoDataValue, but not the methods I wrote, because, in fact, these > methods are incomplete and runs well only in a few ways. > > Thanks Andrea. > Just to update this again... Actually this is probably all you nee

[Geotools-gt2-users] Need help fixing non-noded intersections

2013-03-13 Thread GATE User
I'm getting a "found non-noded intersection between LINESTRING ..." error whenever I call union() on a piece of geometry.  How do I fix this?  Here is the error: Caused by: com.vividsolutions.jts.geom.TopologyException: found non-noded intersection between LINESTRING ( 362288.81188113254 357997

Re: [Geotools-gt2-users] Getting information about ArcGrid Coverage.

2013-03-13 Thread PabloDR
El 13/03/13 10:14, Andrea Aime escribió: On Wed, Mar 13, 2013 at 9:47 AM, PabloDR > wrote: I've done something similar to get noData, min and max values: private static SortedSet removeNoDataFromArray(double[] data, Double NoData){

Re: [Geotools-gt2-users] Getting information about ArcGrid Coverage.

2013-03-13 Thread Andrea Aime
On Wed, Mar 13, 2013 at 9:47 AM, PabloDR wrote: > I've done something similar to get noData, min and max values: > > private static SortedSet removeNoDataFromArray(double[] > data, Double NoData){ > SortedSet set = CollectionFactory.sortedSet(); > Double[] array = ArrayUtils

Re: [Geotools-gt2-users] Getting information about ArcGrid Coverage.

2013-03-13 Thread PabloDR
> Just adding that I quickly changed my code example above to this: > > File file = new File("/path/to/vegetation.asc"); > AbstractGridFormat format = GridFormatFinder.findFormat(file); > AbstractGridCoverage2DReader reader = format.getReader(file); > GridCoverage2D

[Geotools-gt2-users] Rotate a map

2013-03-13 Thread Ron Lindhoudt
Hello,   I'm trying to rotate a map using the information in an earlier discussion:       MapContent content = new MapContent();     // add layer(s), then...     ReferencedEnvelope bounds = source.getBounds();     CoordinateReferenceSystem srcCRS =bounds.getCoordinateReferenceSyst

Re: [Geotools-gt2-users] Getting information about ArcGrid Coverage.

2013-03-13 Thread Andrea Aime
On Wed, Mar 13, 2013 at 6:52 AM, Lauchlin Wilkinson wrote: > I couldn't find anything in newer versions that re-implements this so > perhaps you are best off just doing the same reimplementing this code > snippet yourself. > > It would be nice if one of the devs that monitor this mailing list cou

Re: [Geotools-gt2-users] Getting information about ArcGrid Coverage.

2013-03-13 Thread Andrea Aime
On Tue, Mar 12, 2013 at 10:44 AM, PabloDR wrote: > In this repository there is the same version and there isn't the class I > search. The link to the class I like using/implement is this: > > > http://udig.refractions.net/files/docs/api-geotools/org/geotools/gce/arcgrid/ArcGridRaster.html > That