The need to drop several of the axis and "flatten" a CRS was holding up some 3D data work previously. I think we solved that by adding some hints to the datastore query asking to to flatten the data for us; the datastore is the only place that exactly knows what is going on so it makes sense.
In terms of actually adjusting the CoordinateReferenceSystem data structures it is not strictly a trivial task since you have to go through the axis and check (with some understanding) what axis to keep. I am not sure if a utility method has been created for this yet; perhaps you could provide one. Jody On 21/05/2010, at 9:45 AM, James Nicolson wrote: > I'm trying to get GPX (using gt-gpx) support into udig. I've managed > to get the import wizard to work but I now need to translate between > gpxCrs (a CompoundCRS of WGS84, height and temporal CRSs) and my > target CRS (at the moment im testing it with the default WGS84 (DD). > The exception thrown states: > > No transformation available from system "GeographicCRS[WGS84(DD)]" to > "CompoundCRS[gpxCrs]". > > What do I need to add to the gt-gpx code to provide this > transformation, considering I don't need z-axis or temporal > dimensions? I looked at MathTransformProvider, but I'm not sure if I > should extend that, or even how I would extend that (all examples I've > seen are fairly complex compared to my transformation WGS-84 <-> > WGS84, i.e. removing/ignoring temporal and z-axis co-ords). Surely > this must be a trivial task. Please help! :-D > > Thanks in advance. > James > <gpx-geotools-bbox-transform-error.txt>------------------------------------------------------------------------------ > > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users ------------------------------------------------------------------------------ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
