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

Incorrect rendering for vector line segments that span -180 line of longitude version 1.4.0 #12763

Closed
qgib opened this issue May 10, 2010 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented May 10, 2010

Author Name: abigbee - (abigbee -)
Original Redmine Issue: 2703

Redmine category:vectors
Assignee: nobody -


Polygons in vector layers that have line segments with endpoints that span the -180 line of longitude are incorrectly rendered. For example, a line with endpoints of 1 degree and -179 degree will not result in a 2 degree line, but rather be rendered as a line of of 180 degrees in length and spans. I.e. instead of a short line segment in the Pacific, the line runs across North America and the Atlantic.

I have attached a small test case for a many-side polygon esri shape file that I programmatically generated to illustrate this bug. Upon rendering in the GUI, the left side of the western polygon should incorrectly be extruded all the way across North America and the Atlantic Ocean. The correct rendering would display a circle-like polygon centered on the Alaskan Aleutian Islands.


@qgib
Copy link
Contributor Author

qgib commented May 10, 2010

Author Name: Giovanni Manghi (@gioman)


Have a look to the "5.2.6" paragraph of the QGIS 1.4 manual: "Vector layers crossing 180◦ longitude".

This is a common problem in many GIS software and there is no easy solution. The one proposed is to use Postgis and the "ST_Shift_Longitude" function.


  • resolution was changed from to wontfix
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats) labels May 24, 2019
@qgib qgib added this to the Version 1.5.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
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! Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant