Borrar filtros
Borrar filtros

Transform data to another CRS with mapping toolbox functions

2 visualizaciones (últimos 30 días)
Jakub Snopl
Jakub Snopl el 15 de Abr. de 2022
Editada: Jakub Snopl el 16 de Abr. de 2022
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);

Respuestas (0)

Productos


Versión

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by