Sergei,

2014-03-19 1:13 GMT+01:00 Sergei Kozyrenko <ser...@faspark.com>:

> I'm using the code like this to get a MathTransform for transforming
> lat,lon points to epsg:3857. Does anyone if resulting MathTransforms
> (ConcatenatedTransformDirect2D, and its inner transforms, AffineTransform2D
> and MercatorPseudoProvider) are thread safe?
>

Looking at the code seems ok to consider them thread safe.

CoordinateReferenceSystem sourceCRS = CRS.decode("EPSG:4326");
> CoordinateReferenceSystem targetCRS = CRS.decode("EPSG:3857");
> MathTransform transform = CRS.findMathTransform(sourceCRS, targetCRS,
> false);
>
> The code above runs only once is already synchronized, but I'm using the
> resulting transform in a servlet and would love not to synchronize each
> time it's accessed.
>


Cheers,
Carlo



> Thanks,
> Sergei
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>


-- 
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK for
more information.
==

Dott. Carlo Cancellieri
@cancellieric
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:   +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to