Polyshape rotation without distort

2 Ansichten (letzte 30 Tage)
Elias Büdel
Elias Büdel am 12 Okt. 2021
Kommentiert: Elias Büdel am 12 Okt. 2021
I did this, but the contour always distort.
May someone can help me.
format long
lat=GNSS_Lat_Abs
long=GNSS_Long_Abs
lat(1)=[]
long(1)=[]
PP=[lat,long]
Shape=polyshape(PP)
[a,b]=centroid(Shape)
S=[a,b]
Rot=rotate(Shape,70,S)
[x,y]=boundary(Rot)
geoplot(lat,long,'-x',x,y,'-x')
geobasemap satellite

Akzeptierte Antwort

Matt J
Matt J am 12 Okt. 2021
Bearbeitet: Matt J am 12 Okt. 2021
Probably because the data aspect ratio of your plot is not 1. I.e., the scales of your x and y axes are different.
  1 Kommentar
Elias Büdel
Elias Büdel am 12 Okt. 2021
Thank you, now I know long and lat are not te same scaling

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Elementary Polygons finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by