Skip to content

Commit a2bf075

Browse files
getRotation should be exposed to mapscript (#6048) (#6053)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent d357758 commit a2bf075

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mapscript/swiginc/map.i

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,17 @@
111111
{
112112
return msMapSetSize(self, width, height);
113113
}
114+
115+
void pixelToGeoref(double pixPosX, double pixPosY, pointObj *geoPos)
116+
{
117+
geoPos->x = self->gt.geotransform[0] + self->gt.geotransform[1] * pixPosX + self->gt.geotransform[2] * pixPosY;
118+
geoPos->y = self->gt.geotransform[3] + self->gt.geotransform[4] * pixPosX + self->gt.geotransform[5] * pixPosY;
119+
}
120+
121+
double getRotation()
122+
{
123+
return self->gt.rotation_angle;
124+
}
114125

115126
int setRotation( double rotation_angle )
116127
{

0 commit comments

Comments
 (0)