I am trying to find the wgs 84 transform codes between two crs (defined
method getWgs84TransformsFromCrs in attached file Wgs84TransformUtil.java)

I am also trying to find the specified CoordinateOperation between two crs'
by looking at the transform code  (defined method getCoordinateTransform in
attached file Wgs84TransformUtil.java).

Is there a simpler way to do this without having to know that a
CoordinateOperation is a ConcatenatedOperation and looking through all the
SingleOperations.

Additionally, I noticed that my code doesn't work if I changed
the following lines
        CoordinateReferenceSystem fromCrs = CRS.forCode(fromEpsg);
        CoordinateReferenceSystem toCrs = CRS.forCode("EPSG:4326");
to
        CoordinateReferenceSystem originalFromCrs= CRS.forCode(fromEpsg);
        CoordinateReferenceSystem originalToCrs= CRS.forCode("EPSG:4326");
        CoordinateReferenceSystem fromCrs= AbstractCRS.castOrCopy(
originalFromCrs ).forConvention(AxesConvention.DISPLAY_ORIENTED);
        CoordinateReferenceSystem toCrs= AbstractCRS.castOrCopy(
originalToCrs ).forConvention(AxesConvention.DISPLAY_ORIENTED);

Is there a way to get the transform codes between two
CoordinateReferenceSystems when using  AxesConvention.DISPLAY_ORIENTED?
The reason I ask this is it would be ideal for the MathTransform.transform
call to be returned in the order of Longitude, Latitude or x, y.

Thanks,
-- 
*Michael Arneson*

*Software Engineer*



*Office:* +1 (713) 975-7434

[email protected]

*INT *| *Empowering Visualization*

Attachment: ExtentUtil.java
Description: Binary data

Attachment: ApacheSisWgs84Transform.java
Description: Binary data

Attachment: Wgs84TransformUtil.java
Description: Binary data

Reply via email to