Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGIS 3 and Southern Hemisphere, Transverse Mercator Projection - Schwarzeck - Upside Down display #32391

Open
JacoV69 opened this issue Oct 24, 2019 · 18 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Projections/Transformations Related to coordinate reference systems or coordinate transformation

Comments

@JacoV69
Copy link

JacoV69 commented Oct 24, 2019

Description of problem at
https://gis.stackexchange.com/questions/339685/qgis-3-and-southern-hemisphere-transverse-mercator-projection-schwarzeck/339691#339691
Report of bug proposed by csk

@JacoV69 JacoV69 added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Oct 24, 2019
@gioman gioman added the Feedback Waiting on the submitter for answers label Oct 24, 2019
@gioman
Copy link
Contributor

gioman commented Oct 24, 2019

@JacoV69 I would appreciate if the infos about the issue can be reported directly here rather than posting a SE post. Thanks!

@nyalldawson
Copy link
Collaborator

Is this even a bug? From my interpretation of the stackexchange question it's all working as designed, and showing that projection in its correct orientation. If you want to convert that projection to a north-up orientation, you'd need to rotate the map frame manually

@JacoV69
Copy link
Author

JacoV69 commented Oct 25, 2019 via email

@nyalldawson
Copy link
Collaborator

@JacoV69

I believe it IS as designed. The existing answer on stackexchange already explains why the project CRS differs depending on the order in which layers are loaded. epsg 29377 is south-oriented, hence the "upside down" appearance of the map. Just use a north-oriented projection instead, or manually rotate the map frame if you want north-up!

Just to further reinforce that qgis is correctly handling this situation, here's a screenshot showing a north arrow set to "true north" correctly orienting with a map set to epsg 29377:

image

@JacoV69
Copy link
Author

JacoV69 commented Oct 25, 2019 via email

@gubuntu
Copy link

gubuntu commented Oct 29, 2019

This is not a bug and everything works correctly and is by design.

South African and Namibian 'LO' CRSs are upside down and back to front.

I proposed this a while ago to make it more intuitive: #19599

In the meantime if you want north up, just project your canvas to another CRS. You could make Namibian equivalents of the ZANGI ones we added to QGIS in 2013.

The 'north-up' versions of the LO CRSs are not standard therefore are not in the EPSG database nor in any GIS software so you have to create your own custom ones.

@JacoV69
Copy link
Author

JacoV69 commented Oct 29, 2019 via email

@rouault
Copy link
Contributor

rouault commented Oct 29, 2019

I would tend to agree with @JacoV69. The axis order and orientation of the EPSG code doesn't necessarily constrain how we might decide to represent them (carto)graphically. They are just a rule to be able to transmit coordinates in a unambiguous way. For example, if we use a projected Northing-Easting system (contrary to the usual Easting-Northing order), we wouldn't want to represent the Northing along the horizontal axis of the screen and the Easting along the vertical axis of the screen. So for TMSO West - South, we might represent it with increasing westing from left to right of the screen, and increasing southing from top to bottom of the screen, while still being conformant to TMSO if we display the correct coordinates.

@rouault
Copy link
Contributor

rouault commented Oct 29, 2019

The EPSG guidance note 7-2 https://www.iogp.org/wp-content/uploads/2019/09/373-07-02.pdf paragraph "3.2.3.3 Transverse Mercator (South Orientated)" has a diagram that is compatible with the traditionnal cartographic conventions, that is horizontal axis with longitudes/eastings increasing from left to right, and vertical axis with latitudes/northings increasing from bottom to top

@gubuntu
Copy link

gubuntu commented Oct 29, 2019

Hi @JacoV69, there's nothing contrary to convention here, nor to authorities such as NGI. I think you have the wrong end of the stick. I'm just explaining why TMSO coordinates defined properly in, say, EPSG 29375 will draw upside down and back to front (if your canvas is in 29375, so will everything else draw upside down and back to front, but everythign will be perfectly overlaid).

Never mind the projection or software, if you draw an SO coordinate on a NO set of axes, it will draw upside down and back to front. Basic maths. If you want it to draw north up on NO axes, you have to swap coordinates and change signs, which is what GIS people in SA and Namibia have done since the dawn of GIS, because all GIS software uses a standard NO (x,y) set of axes. OR you can flip the axes in the GIS to get north-up. Which is what effectively happens if you project your QGIS canvas, from, say EPSG 29375 (Schwarzek LO 22/15) to 32733 (UTM33S), or what would happen if #19599 were implemented.

Again, I emphasise there is no bug here and no-one is trying to be difficult. I'm happy to have a call or screenshare to demonstrate (I'm in Joburg)

@JacoV69
Copy link
Author

JacoV69 commented Oct 30, 2019 via email

@gubuntu
Copy link

gubuntu commented Oct 30, 2019

@JacoV69 since only a small proportion of global users have this issue (i.e. just SA and Namibia afaik) it hasn't been high on anyone's priority list to develop. The current solution is hardly a workaround - you just set your canvas to a NO CRS and that's that.

If it's important to you, you are welcome to provide a patch for #19599 or fund a QGIS developer to do so. That's how the FOSS community works - by community participation and contributions.

@JacoV69
Copy link
Author

JacoV69 commented Oct 30, 2019 via email

@gubuntu
Copy link

gubuntu commented Oct 30, 2019

Hi @JacoV69

I'm afraid you are wrong in several areas.

  1. You do not need to change any coordinates and a canvas NO CRS will solve the issue. I would appreciate an opportunity to understand your situation and help you via a screenshare session (just fill in a contact form on kartoza.com and I'll get back to you). This might also help.
  2. It's not the QGIS community that is small, it is that we are the only two countries in the world using TMSO afaik.
  3. There is no other mainstream GIS package to my knowledge that does what you want. CAD, yes, but not GIS.
  4. A FOSS community like this is the opposite of a proprietary behemoth - if you want new funcitonality it can be implemented in a quick turnaround - someone just needs to put up the time / money.

@JacoV69
Copy link
Author

JacoV69 commented Oct 30, 2019 via email

@nyalldawson nyalldawson added the Projections/Transformations Related to coordinate reference systems or coordinate transformation label Dec 13, 2019
@gioman
Copy link
Contributor

gioman commented Jun 12, 2020

Where do we stand with this report?

@JacoV69
Copy link
Author

JacoV69 commented Jun 22, 2020

There has been no movement as far as I could assess.

Users have two workarounds

  1. Set up data to be rotated full 180 - thus change both coord sings
  2. Set up a user projection that would take data "as is correct in terms of projection" and re-project to correctly display in QGIS

Draw back - depending from where data is sourced, user has to assign one of the two workarounds.

Specifically draw back when working with both workarounds due to historical reasons.

The only solution offered was add-on at development cost.

Kind Regards
Kobus vd Merwe

@jjimenezshaw
Copy link
Contributor

Hi.

This topic came to my desk recently from several ways. First in the Czech Republic (using southing-westing EPSG:5513), that I tried to fix in OSGeo/PROJ#4084 . @rouault halted it thinking what we should solve the problem completely in PROJ. I have the impression that the "upside-down" effect cannot be fixed in PROJ, but has to be done in the application side (if you consider it is a bug).

In South Africa they also use westing-sourthing CRSs. (Just a comment: westing-southing are only the projected systems. those geographic systems are northing-easting, lat-lon).
I asked Patrick Vorster (Chief Professional Surveyor at Survey Services, National Geospatial Information from www.dalrrd.gov.za) (thanks Patrick for your help!) how do they orient their maps. He said "Our large scale maps are oriented north-up (grid north at the top of the map)", and added a screenshot of how he deals with it in QGIS:

Image
The arrows in the bar at the bottom show

  1. The Y,X coordinates (westings, southings);
  2. The rotation of the image/map by 180°, to get it north-up;
  3. The EPSG code – 2048.

As you can see he is rotating the view.

In other "traditional printed maps" north is also at the top: https://itoldya420.getarchive.net/amp/media/sa-topographic-sheet-3418abandad-1ed-1942-113679

It is true that there is a workaround, rotating the view in the status bar. I do not know if that option was there in 2019 when @JacoV69 created the ticket.

At least now it is clear to me how it is used in South Africa and how I can rotate it in QGIS.
If QGIS considers it a bug or not (or if investing resources on it is worth it) is another discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Projections/Transformations Related to coordinate reference systems or coordinate transformation
Projects
None yet
Development

No branches or pull requests

6 participants