globalmapper.ConvertCoordGroundToPixelWithOrientation ===================================================== .. currentmodule:: globalmapper .. py:function:: ConvertCoordGroundToPixelWithOrientation (float aGroundX, float aGroundY, GM_Rectangle_t aWorldBounds, GM_PixelRect_t aPixelRect, float aOrientation) -> GM_Error_t32, sint32, sint32 Convert a coordinate between the current projection and pixel space. The conversion space can be either the last drawn coordinate space or the caller can provide the coordinate space to work in. You also supply an orientation angle to perform the conversion with. The results will be returned as sint32's. To get floats instead, use the function :doc:`ConvertCoordGroundToPixelWithOrientationDouble`. Note: The only time that you should need to call this function is if you want to do a coordinate conversion in a different orientation than what has been set globally with :doc:`SetOrientation<../display/globalmapper.SetOrientation>`. :param float aGroundX: X Coord in current projection :param float aGroundY: Y Coord in current projection :param GM_Rectangle_t aWorldBounds: World bounds to convert from or None for last drawn :param GM_PixelRect_t aPixelRect: Pixel bounds to convert from or None for last drawn :param float aOrientation: IN Orientation of coordinate space to use (0 is north up, 90 is east up, 180 is south up, 270 is west up) :returns: Error Code :rtype: GM_Error_t32 :return: X Coord in pixel space :rtype: sint32 :return: Y Coord in pixel space :rtype: sint32