Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
getRotation should be exposed to mapscript (#6048) (#6053)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent d357758 commit a2bf075
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mapscript/swiginc/map.i
Expand Up @@ -111,6 +111,17 @@
{
return msMapSetSize(self, width, height);
}

void pixelToGeoref(double pixPosX, double pixPosY, pointObj *geoPos)
{
geoPos->x = self->gt.geotransform[0] + self->gt.geotransform[1] * pixPosX + self->gt.geotransform[2] * pixPosY;
geoPos->y = self->gt.geotransform[3] + self->gt.geotransform[4] * pixPosX + self->gt.geotransform[5] * pixPosY;
}

double getRotation()
{
return self->gt.rotation_angle;
}

int setRotation( double rotation_angle )
{
Expand Down

0 comments on commit a2bf075

Please sign in to comment.