Re: [Geotools-devel] How to use a variation of BufferedCoordinateOperationFactory implementation?

2016-08-27 Thread Felipe Castro
I think I know the answer. Just extend BufferedCoordinateOperationFactory and do something like this at the starts of the whole system: CoordinateOperationFactory myFactory = new MyCoordinateOperationFactory(); Hints.putSystemDefault(Hints.COORDINATE_OPERATION_FACTORY, myFactory

[Geotools-devel] How to use a variation of BufferedCoordinateOperationFactory implementation?

2016-08-27 Thread Felipe Castro
very usefull. Thanks, -Felipe Felipe castro | Schneider Electric | Cloud Services | Software Engineer Tel: +1 952 882 4340 Email: felipe.cas...@dtn.com<mailto:felipe.cas...@dtn.com> | Site: www.schneider-electric.com<http://www.schneider-electric.com/> - 11400 Rupp Drive, Minn

Re: [Geotools-devel] Memory leak when using StreamingRenderer with variations in WKT based CRS's

2016-08-27 Thread Felipe Castro
So here is what I have found so far. To correct for the hundreds of thousands of TheadLocal entries I just needed to do CRS. cleanupThreadLocals() at the end each request to my service. The case of the eternal instances of ObliqueStereographic and ObliqueOrthographic is because the pool of CRSP

Re: [Geotools-devel] Memory leak when using StreamingRenderer with variations in WKT based CRS's

2016-08-27 Thread Felipe Castro
build a new CRS before each map. Is this something I am not supposed to do or should do via a different method? Thanks for the help, -Felipe -Original Message- From: Felipe Castro [mailto:felipe.cas...@dtn.com] Sent: Saturday, August 27, 2016 10:17 AM To: geotools-devel

Re: [Geotools-devel] Memory leak when using StreamingRenderer with variations in WKT based CRS's

2016-08-27 Thread Felipe Castro
Hi Andrea, thanks for posting ideas. How should I post my comments? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Memory-leak-when-using-StreamingRenderer-with-variations-in-WKT-based-CRS-s-tp5282556p5282573.html Sent from the geotools-devel mailing list archive at Nabbl

Re: [Geotools-devel] Memory leak when using StreamingRenderer with variations in WKT based CRS's

2016-08-27 Thread Felipe Castro
This is part of a memory map after rendering ~24K Orthographic and Stereographic projections: -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Memory-leak-when-using-StreamingRenderer-with-variations-in-WKT-based-CRS-s-tp5282556p5282566.html Sent from the geotools-devel ma

Re: [Geotools-devel] Memory leak when using StreamingRenderer with variations in WKT based CRS's

2016-08-27 Thread Felipe Castro
Another thing I noticed is a comment in BufferedCoordinateOperationFactory: The pool of cached transformations. This map can not be static, because the values may be different for the same ({@code sourceCRS}, {@code targetCRS}) pair dependending of hint values like {@link Hints#LENIENT

[Geotools-devel] Memory leak when using StreamingRenderer with variations in WKT based CRS's

2016-08-27 Thread Felipe Castro
I would like some opinions about this. I am running a multi-threaded process to render thousands of maps using the Stereographic projection. Basically, I do the following for each new map: - Take a WKT definition for an Stereographic projection. - Modify latitude_of_origin and central_meridian.