Transform data to another CRS with mapping toolbox functions
3 次查看(过去 30 天)
显示 更早的评论
Hi, I tried to transform data to another CRS using functions projinv and projfwd. These two CRS, I'am working with are defined on two different ellipsoids (Bessel and WGS84) and this is the problem. Lat and Lon (probably on Bessel ellps.) I've unprojected from first CRS are used to project data to second CRS. There should be used transformation between ellipsoids, but i think it was not. Does anyone know how these functions work with ellipsoids? My code is attached below.
s = shaperead('stat.shp'); info = shapeinfo('stat.shp'); x1 = s.X; y1 = s.Y; p1 = info.CoordinateReferenceSystem; % from p2 = projcrs(32633); % to % unproject data [lat,lon] = projinv(p1,x1,y1); % project data [x2,y2] = projfwd(p2,lat,lon);
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!