|
From: Farrukh N. <fa...@we...> - 2011-02-14 15:15:22
|
I am using a PostGres/PostGIS 8.3 database with gt-epsg-postgresql
plugin. The EPSG Geodetic Parameter Dataset has been loaded into
postgres from EPSG version 7.6.
When I try to transform a geometry from EPSG:4326 (2D CRS) to EPSG:4979
(3D CRS) I get the following:
Caused by: org.opengis.referencing.operation.OperationNotFoundException:
No transformation available from system "EllipsoidalCS[Ellipsoidal 2D
CS. Axes: latitude, longitude. Orientations: north, east. UoM: degree]"
to "EllipsoidalCS[Ellipsoidal 3D CS. Axes: latitude, longitude,
ellipsoidal height. Orientations: north, east, up. UoM: degree, degree,
metre.]".
at
org.geotools.referencing.operation.AbstractCoordinateOperationFactory.swapAndScaleAxis(AbstractCoordinateOperationFactory.java:278)
at
org.geotools.referencing.operation.DefaultCoordinateOperationFactory.swapAndScaleAxis(DefaultCoordinateOperationFactory.java:591)
at
org.geotools.referencing.operation.DefaultCoordinateOperationFactory.createOperationStep(DefaultCoordinateOperationFactory.java:780)
at
org.geotools.referencing.operation.DefaultCoordinateOperationFactory.createOperation(DefaultCoordinateOperationFactory.java:239)
at
org.geotools.referencing.operation.BufferedCoordinateOperationFactory.createOperation(BufferedCoordinateOperationFactory.java:254)
at org.geotools.referencing.CRS.findMathTransform(CRS.java:1097)
... 50 more
Caused by: java.lang.IllegalArgumentException: No source axis match UP.
at
org.geotools.referencing.operation.matrix.GeneralMatrix.<init>(GeneralMatrix.java:314)
at
org.geotools.referencing.operation.matrix.GeneralMatrix.<init>(GeneralMatrix.java:221)
at
org.geotools.referencing.cs.AbstractCS.swapAndScaleAxis(AbstractCS.java:331)
at
org.geotools.referencing.operation.AbstractCoordinateOperationFactory.swapAndScaleAxis(AbstractCoordinateOperationFactory.java:276)
It seems to me that 2D to 3D transform should be simple (just add a 0
value for Z axis). Is there a way to do this? If not, shall I file an
RFE? Thanks for your help.
--
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com
|