[Qgis-user] Coordinates in map units are different between ArcInfo and Qgis

Tudorache, Marian Marian.Tudorache at navcanada.ca
Tue Mar 7 07:48:09 PST 2017


Hi everyone,

I have two GIS systems. First one is based on ArcInfo and the other one is based on Qgis 2.10.

The system with ArcInfo uses Esri coverage data files.
QGIS is able to read coverage data but I see differences between the coordinate expressed on map units between the two.

For example:
A point has in ArcInfo the coordinates in map units (meters) x = -1273005.24 and y = 2898383.44.
The same point has in Qgis the coordinates in map units (meters) x = -1940424.5898 and y = 3192159.87877.

I looked in qgsmaptopixel.cpp how the mouse position coordinate is transformed to world map units coordinate and I have found this:
mx = x * mMapUnitsPerPixel + xMin
my = -1 * ((y – yMax) * mMapUnitsPerPixel – Ymin)

I have displayed the transformation parameters in Qgis using showParameters function and I got:
Map units/pixel: 6130.91 center: -337918, 1.36002e+06 rotation: 0, size: 1493x974
So it looks a pixel has 6130.91 meters.
Map center is located at -337918, 1.36002e+06 (probably meters)
I can’t figure out the value for xMax, xMin , yMax, yMin.

Can somebody explain me why coordinates in map units read by Qgis are different than those read by ArcInfo?
How can I make the two coordinates to be the same?
Thanks,
Marian

This electronic message, as well as any transmitted files included in the electronic message, may contain privileged or confidential information and is intended solely for the use of the individual(s) or entity to which it is addressed. If you have received this electronic message in error please notify the sender immediately and delete the electronic message. Any unauthorized copying, disclosure or distribution of the electronic message is strictly forbidden. NAV CANADA accepts no liability for any damage caused by any virus and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent contenir des renseignements privilégiés ou confidentiels destinés à l’usage exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez reçu ce message électronique par erreur, veuillez en informer l’expéditeur immédiatement et supprimez le. Toute reproduction, divulgation ou distribution du présent message électronique est strictement interdite. NAV CANADA n’assume aucune responsabilité en cas de dommage causé par tout virus ou autre programme malveillant transmis par ce message électronique.


More information about the Qgis-user mailing list