I'm looking at how to pick out a specific transform for a coordinate reference system (e.g. https://epsg.io/21036) EPSG:21036 has 4 transforms defined in the EPSG database and currently GeoTools picks the Kenyan onshore one (https://epsg.io/21036-1284) presumably because it has the best accuracy. Now I happen to be looking at data in Tanzania so I would prefer to pick that transform (https://epsg.io/21036-1285) - so far as I can see the only way to do this is to use the WKT and define a new CRS object from that which is OK but a bit fiddly.
I would prefer to be able to say something like: CoordinateReferenceSystem arc1960SRS = CRS.decode("EPSG:21036-1285"); >From the look of the code it would involve modifying org.geotools.referencing.operation.DefaultCoordinateOperationFactory.createOperation(CoordinateReferenceSystem, CoordinateReferenceSystem) to check for the preferred transform rather than returning the first one it finds in the database. So would probably need to make sure that CRS decode found the correct transform and made a note of that transform for later. Or am I missing an easier way of doing this and the documentation needs updating? Ian -- Ian Turton
_______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel