Re: [Geotools-gt2-users] Coverage2D serialization (to byte[])

2009-04-24 Thread Martin Tomko
Dear Simone, I will try to provide a case for JIRA, somewhere around Monday, no time to do it before. In the mean time - it is quite urgent for me to find a solution to pass the GridCoverrage2D around - could you please elaborate how you would serialize the coverage and consequently apply the

Re: [Geotools-gt2-users] Coverage2D serialization (to byte[])

2009-04-24 Thread Christian Müller
Another idea for a quick solution is to serialize a world file as well. A world file has only 6 lines, see here http://en.wikipedia.org/wiki/World_file class TransportImage implements Serializable { SerializabelRenderedImage theImage; Double[] wordlFileLines; } That is all you need

Re: [Geotools-gt2-users] Coverage2D serialization (to byte[])

2009-04-24 Thread Martin Tomko
Even better, if I could serialize a referenced envelope, which should be serializable already, that would be a quick workaround. So in principle I should be able to create a TransportImage as you mention, with the two elements (Rendered Image, ReferencedEnvelope), and then to decode it I will

Re: [Geotools-gt2-users] Coverage2D serialization (to byte[])

2009-04-24 Thread Simone Giannecchini
Ciao MArtin, serializing the envelope would not be generic enough, serializing the grid world instead would be, at least for georectified raster data. I'd would check the WorldFileReader class and the GeoTiffReader in order to understand how to go from raster + world file to a GC2D. Simone.

Re: [Geotools-gt2-users] GeometryBuilder.createPoint

2009-04-24 Thread Joel Odom
Thanks, Michael. Jody wrote back directly. I'll paste his reply here so that it gets archived on the list for future reference. G'Day. On Tue, Apr 21, 2009 at 5:19 AM, Joel Odom joelo...@gmail.com wrote: There was some discussion on the list about a year ago about using GeometryBuilder to

Re: [Geotools-gt2-users] Coverage2D serialization (to byte[])

2009-04-24 Thread Martin Tomko
Hi Simone, thanks for that. Indeed, my preferred use would be to pass around a serialized version of Geotiff - as mentioned. I know how to go from Geotiff reader to coverage and back. But is it possible to send a serialized version of a geotiff around? I have only used the geotiff

[Geotools-gt2-users] GridCoverage2D and irregular gridded dataset

2009-04-24 Thread fred poubelle
Hello ! I'm new to GeoTools. I'd like to create an Geotiff image (and eventually reproject it before saving) from a set of data composed of (lat, lon, value) values. The problem is that these data don't represent a regular grid. Therefore, I don't know whether I have to create a GridCoverage2D

[Geotools-gt2-users] Selecting a feature represented by a symbol

2009-04-24 Thread yako yako
Hello, I am making an application where the user can retrieve information from a feature by clicking on it. To do this, I make a filter to get all features located on the area defined by the projection on the map of a 3x3 pixels square centered on the position of the click. I encouter a

Re: [Geotools-gt2-users] GridCoverage2D and irregular gridded dataset

2009-04-24 Thread Michael Bedward
Hello Fred, It depends on what you want your image and/or coverage to represent. You probably need to be more specific about this so that people here can suggest relevant approaches. For instance, do you want a coverage / image showing values interpolated from your irregularly distributed data ?