Opened 15 years ago

Closed 15 years ago

#1802 closed bug (duplicate)

problem when using a geographic CRS after changing the central meridian

Reported by: lutra Owned by: nobody
Priority: major: does not work as expected Milestone: Version 1.3.0
Component: Projection Support Version: Trunk
Keywords: Cc: pcav
Must Fix for Release: Yes Platform: All
Platform Version: Awaiting user input: no

Description

Tested with both shapefiles and postgis.

How to reproduce the problem:

*) download this shapefile of the world borders http://thematicmapping.org/downloads/TM_WORLD_BORDERS-0.3.zip

*) add it to your project

*) add a custom CRS with the following definition (for example) "+proj=moll +lon_0=Central Meridian +x_0=False Easting +y_0=False Northing"

*) in the project properties choose the just created CRS and activate OTFR

*) the layer shows correctly

*) now go to the CRS management and change the central meridian "+proj=moll +lon_0=90 +x_0=False Easting +y_0=False Northing"

*) in the project properties change again to wgs84 and back again to the custom CRS, now the shape looks weird.

*) if you zoom in enough the problem disappear

Attachments (2)

moll.jpg (41.8 KB ) - added by lutra 15 years ago.
Screenshot.png (13.7 KB ) - added by lutra 15 years ago.

Download all attachments as: .zip

Change History (3)

by lutra, 15 years ago

Attachment: moll.jpg added

by lutra, 15 years ago

Attachment: Screenshot.png added

comment:1 by homann, 15 years ago

Resolution: duplicate
Status: newclosed

This is a duplicate of #597. As you can see the American continent wraps around, which means the polygons should really by split.

Basically, you can't set up your projections such that geometries must be split.

Note: See TracTickets for help on using tickets.