2

I have a world-map-layer in QGIS, such as the one by typing "world" in the coordinate box.

I then set the project-crs to a custom orthographic projection. The world-layer gets reprojected on the fly correctly.

enter image description here

I then create a layer from the extent of the world-map, densify it to like 1000 vertices. I expected it to just fit to the outline of the globe. however it does this:

enter image description here

What am I doing wrong? When using the "Globe Builder" Plugin things work and the bounding box layer, on EPSG:3857 looks like this:

enter image description here

Where is this coming from and how could I create it?

1 Answer 1

4

Create a grid (Menu Vector > Reasearch Tools > Create Grid), based on your layer World Map. As grid extent, use the layer extent. As this layer is in EPSG:4326, use a convenient horizontal and vertical spacing, e.g. 10 degrees.

When you now set the project CRS to your custom CRS, you get the desired effect, see screenshot. For an explanation why your approach did not work, see below.

Screenshot: To get rid of the black lines, set their color to the same color as the polygon fill. To smooth the lines, densify the grid polygons:

enter image description here

Explanation:

So why don't you see the extent, created in EPSG:4326 in your custom projection? You have to think about the property of the extent, which does not represent a real-world phenomenon, but refers to borders of the (projected) map canvas. Extent is from -180 (on the left) to +180 (on the right) on the map canvas.

In reality, however, 180 and +180 represent the same points (or very close), all of them laying on the antimeridian. QGIS connects them with the shortest line in the current projection, so does not use the "detour" to cover the whole globe.

So connecting all these points in your custom projection results in a very thin polygon or even a line in your custom projection: the line you have in the upper port of your first screenshot.

The red circle probably stems as well from the initial CRS that you used to create the extent.

By creating a grid, we have smaller cells (patches) with vertices evenly distributed all over the globe.

3
  • Thank you so much!
    – Lenn
    Commented Nov 8 at 9:46
  • If I'd create (I didnt test it yet) an extent spanning from -179.99 to 179.99, could that also work?
    – Lenn
    Commented Nov 8 at 9:48
  • 1
    Yes, that should work
    – Babel
    Commented Nov 8 at 12:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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