0

I was planning to make a global orthographic map, that would show country borders and oceans. Therefore,i followed this method which plots a map similar to my requirements. However, i modified the codes so that the map is centered on Asia:

+proj=ortho +lat_0=10 +lon_0=90 +x_0=0 +y_0=0 +a=6371000 +b=6371000 +units=m +no_defs

Although the land areas were projected just fine, i was having problem with the ocean's layer, as you can see in these pictures: enter image description hereenter image description here

I decided to change the projection of the ocean layer to the custom projection, but that makes the ocean layer entirely invisible: enter image description here

There has been a similar question regarding this problem at Using azimuthal orthographic projection in QGIS?, where it was suggested to use uncheck the simplify geometry options in the layer rendering, but that didn't work for me.

How do I properly project the ocean layer in the globe, like in this picture?

enter image description here

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
asheef_ik
  • 155
  • 6

1 Answers1

1

That's what happens when a layer passes the visible "half" of the globe the general recommendation is cutting the layer at the "edge" longitudes of your custom projection. You can follow the instructions shown here and here

  • Thanks for replying. I went through the two solution that you mentioned. I created a pyhton script, saved it as "cliportho.py" in the qgis pyhton folder "....apps\Python37\lib\cliportho.py". I imported cliportho and called it in the python console using cliportho.doClip(iface, lat=10, lon=90, filename='ne_10m_ocean.shp') as those are my desired coordinates. but it returns mw with the following error: TypeError: QgsCoordinateTransform(): arguments did not match any overloaded call: overload 5: argument 1 has unexpected type 'QgsCoordinateReferenceSystem' . – asheef_ik Aug 15 '20 at 08:33
  • Yeah i guess you need to update the script with the new pyqgis api because that script is pre-qgis3. – Raúl Nanclares Aug 15 '20 at 16:41