/** * Creates a new SRS from an OSG WKT string. * * @param wkt * OGC WKT (well-known text) SRS definition * @param reference_frame * Reference frame to apply to points in this SRS * @return * A spatial reference. Caller is responsible for deleting * the return object. */ public SpatialReference createSRSfromWKT(string wkt, Mogre.Matrix4 reference_frame) { //Implementar el MatrixTransform //rellenar el MatrixTransform usando el reference_frame //SetUp coordinate transformation ProjNet.CoordinateSystems.CoordinateSystemFactory csf = new ProjNet.CoordinateSystems.CoordinateSystemFactory(); ProjNet.CoordinateSystems.ICoordinateSystem csSource = csf.CreateFromWkt(wkt); SharpMapSpatialReference sr = new SharpMapSpatialReference(); sr.CoordinateSystem = csSource; sr.MathTransform = new MatrixTransform(csSource.Dimension, reference_frame); return(sr); }
/** * Creates a new geocentric SRS based on the user-supplied * geographic basic SRS. * * @param basis * Geographic SRS upon which to base the new geocentric SRS * @param reference_frame * Reference frame to apply to points in this SRS * @return * A spatial reference. Caller is responsible for deleting * the return object. */ public SpatialReference createGeocentricSRS(SpatialReference basis, Mogre.Matrix4 reference_frame) { throw new NotImplementedException(); }
/** * Creates a new SRS from an ESRI-style WKT/PRJ string. * * @param wkt * ESRI-style WKT (well-known text) SRS definition * @param reference_frame * Reference frame to apply to points in this SRS * @return * A spatial reference. Caller is responsible for deleting * the return object. */ public SpatialReference createSRSfromESRI(string wkt, Mogre.Matrix4 reference_frame) { throw new NotImplementedException(); }