Re: [Geotools-devel] GeoTiffReader / Writer different bounds

2021-01-07 Thread Lorenzo Di Giacomo
Thanks Ian, yeah i removed the print on the awt rectangles that i get from ( getGridGeometry().getGridRange2D().getBounds() ). Also, that difference is visible in plannarImage. I was wondering if that difference in data after serialization / deserialization is "normal" and could affect the writing

Re: [Geotools-devel] GeoTiffReader / Writer different bounds

2021-01-07 Thread Ian Turton
and now without a zip file! Ian On Thu, 7 Jan 2021 at 17:05, Ian Turton wrote: > and here are my input png files (you'll need to add gt-image to read them) > > Ian > > On Thu, 7 Jan 2021 at 17:02, Ian Turton wrote: > >> It seems odd that you are dealing with java.awt.Rectangles - I'm not sure

Re: [Geotools-devel] GeoTiffReader / Writer different bounds

2021-01-07 Thread Ian Turton
It seems odd that you are dealing with java.awt.Rectangles - I'm not sure where you are getting them from as there is no mention in the code. I modified your code to this: public static void main(String[] args) throws IOException { File input = new File("/home/ian/code/geotools-cookbook/code/m

Re: [Geotools-devel] gt-http and gt-http-components proposal

2021-01-07 Thread Roar Brænden
Hi, I tried your suggestion to extend the old interfaces. Everything compiles and seems to work fine, but GitHub Job Linux GitHub CI -> QA fails because of some warnings for usage of deprecated classes. How can I avoid those warnings? Here is one of the line it complines about: public interface

Re: [Geotools-devel] GeoTiffReader / Writer different bounds

2021-01-07 Thread Lorenzo Di Giacomo
Both X and Y are set to 0, in every GridCoverage2D deserialized. I think that maybe some READ_GRIDCOVERAGE2D parameters are needed (?) Original: java.awt.Rectangle[x=209,y=333,width=334,height=148] After serialization / deserialization: java.awt.Rectangle[x=0,y=0,width=334,height=148] Serializatio

Re: [Geotools-devel] GeoTiffReader / Writer different bounds

2021-01-07 Thread Ian Turton
How different are we talking about here? You'll probably need to share some code and example data to allow anyone to look into this. Ian On Thu, 7 Jan 2021 at 11:58, Lorenzo Di Giacomo wrote: > Hello, i'm try to serialize a GridCoverage2D using GeoTiffWriter > writing in a ByteArrayOutputStrea

[Geotools-devel] GeoTiffReader / Writer different bounds

2021-01-07 Thread Lorenzo Di Giacomo
Hello, i'm try to serialize a GridCoverage2D using GeoTiffWriter writing in a ByteArrayOutputStream and deserializing using GeoTiffReader from the ByteArrayInputStream... The problem is that the Bounds (Rectangle object) of the deserialized GridCoverage2D has different X,Y then the original (the wi

Re: [Geotools-devel] remove validation extension

2021-01-07 Thread Andrea Aime
Hi Jody, if you don't mind, I'll remove the validation extension as part of the PMD check fixes on the test sources currently having like 120 failures in that module, it's a good way to get rid of them :-D Cheers Andrea On Mon, Jan 4, 2021 at 7:38 PM Jody Garnett wrote: > While reviewing A

Re: [Geotools-devel] remove validation extension

2021-01-07 Thread Simone Giannecchini
+1 Regards, Simone Giannecchini == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services for more information. == Ing. Simone Giannecchini @simogeo Founder/Director GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +3

Re: [Geotools-devel] remove validation extension

2021-01-07 Thread Nuno Oliveira
+1 On Tue, Jan 5, 2021 at 4:11 PM Andrea Aime wrote: > Hi Jody, > +1 for removing it > > Cheers > Andrea > > > On Mon, Jan 4, 2021 at 7:38 PM Jody Garnett > wrote: > >> While reviewing Andrea's junit 3 --> 4 PR, I was once again struck by how >> stale the validation extension is, I believe it h