3

I'm trying to create a globe view in QGIS 3.16.1 with an Azimuthal Orthographic projection. This is my projection codes:

+proj=ortho +lat_0=32.4279 +lon_0=53.688 +x_0=0 +y_0=0 +R=6371000 +units=m +no_defs +type=crs

After the new projection are defined and there was no error, after applying this new projection, my map does not appear spherical (globe veiw). What is the problem?

enter image description here

enter image description here

1
  • does your input data have a well defined coordinate system ?
    – radouxju
    Dec 18 '20 at 9:26
3

Here's how I've done this.

First start QGIS and load Natural Earth coastline data. The coordinates in this data are lat-long EPSG:4326. It looks like this:

enter image description here

because the coordinate system for the project is:

enter image description here

set in the bottom right control.

Now I do "Settings, Custom Projections" and add yours:

enter image description here

And I click the "Validate" button and its all good. Back to the map and nothing has changed.

Click on the "EPSG:4326" button at bottom right and find that new coordinate system in the "Predefined Coordinate Reference System" list:

enter image description here

you can see it as "SO Question" and it has a code of "USER:100043" - your code will be different. Select that, select "Apply" and return to the map and:

enter image description here

an earth sphere view. (Note I've done coastlines here not polygons). The project coordinate reference bottom right now shows:

enter image description here

that I am using that custom projection. I can switch this back to epsg:4326 if I want to get back to that projection in my map.

6
  • 1
    Thank you dear Spacedman to your answers. I also changed the coordinate system to user defined globe view projected ones. Unfortunately, there was no change in the map.
    – Alireza
    Dec 18 '20 at 10:05
  • 1
    I've done a big edit and a complete worked example now. Hope that helps.
    – Spacedman
    Dec 18 '20 at 11:49
  • @Spacedman Well done! At 3.16.1 my custom projection is added to *Project Properties - CRS > Predefined Coordinate Reference Systems > User Defined Coordinate Systems". I'm not sure why I do not see the "SO Question" section.
    – Stu Smith
    Dec 18 '20 at 17:04
  • 1
    "SO Question" is the name I gave to the projection when I added it to the list of custom coordinate systems. (SO = Stack Overflow). You should name it whatever you want when you create it. Use the big green + sign button to create a new one, make sure its set to be a proj string (and no a WKT) and that adds it to the list of custom projections. I have quite a few already...
    – Spacedman
    Dec 18 '20 at 17:17
  • Got it. At first, I thought that you had created "SO" as a folder containing a group of related custom CRSs. Now that I think about it, I may add that folder idea as a QGIS feature request.
    – Stu Smith
    Dec 18 '20 at 17:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.