Home > Back-end >  The coordinates of the troubled mapx
The coordinates of the troubled mapx

Time:10-12

My purpose is to use roaming tool to drag on one side of the layer, finally out of the boundary layer, said online using mapx GetBounds method, but I don't know what are the coordinates of use this method to get, my code is as follows
Double dbXmax dbXmin, dbYmin dbYmax;
Cstrings positionstr;
CMapXRectangle rect1;
Rect1=m_ctrlMapx. GetBounds ();
DbXmax=rect1. GetXMax ();
DbXmin=rect1. GetXMin ();
DbYmax=rect1. GetYMax ();
DbYmin=rect1. GetYMin ();
Positionstr. The Format (" dbXmax=% d, dbXmin=% d, dbYmax=% d, dbYmin=% d ", dbXmax, dbXmin, dbYmax, dbYmin);


Print the result of very distress, as follows, dbXmax=- 475441095, dbXmin=1079949142, dbYmax=- 1638176123, dbYmin=1078492534

Do not know what these coordinates mean, how so big, there are negative, then there is printing more groups of data is so big, is not one,
Trouble to explain what these coordinates mean, is there any way can transform to the screen size of pixel coordinates,
Thank you very much!
  • Related