Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#3758 closed defect (fixed)

reprojecting lines into LAEA fails if any point falls on either of the poles

Reported by: scw Owned by: Even Rouault
Priority: normal Milestone: 1.8.0
Component: OGR_SF Version: unspecified
Severity: normal Keywords:
Cc: shaun.walbridge@…

Description

When trying to project a graticule (the 1:50m 10 degree graticule from Natural Earth), ogr2ogr fails on the longitudinal grid lines because they intersect the poles, similar to the report at #2588. The new error message is helpful, but it would be better to project the features, omitting the point at which they intersect the 'unprojectable' location. I've attached the European centered LAEA projection used in the example.

Here's the outputs in ArcGIS and OGR for comparison:

http://geohack.net/gis/ogr_v_arcgis_laea.png

Attachments (1)

med.prj (383 bytes) - added by scw 7 years ago.
LAEA projection centered on the Mediterranean Sea

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by scw

Attachment: med.prj added

LAEA projection centered on the Mediterranean Sea

comment:1 Changed 7 years ago by scw

Summary: reprojecting lines into lAEA fails if any point falls on either of the polesreprojecting lines into LAEA fails if any point falls on either of the poles

comment:2 Changed 7 years ago by scw

Cc: shaun.walbridge@… added

comment:3 Changed 7 years ago by Even Rouault

Owner: changed from warmerdam to Even Rouault

comment:4 Changed 7 years ago by Even Rouault

Milestone: 1.8.0
Resolution: fixed
Status: newclosed

r20652 /trunk/gdal/ogr/ogrlinestring.cpp: OGRLineString::transform() : allow partial reprojection if OGR_ENABLE_PARTIAL_REPROJECTION configuration option is set to YES (#3758)

Now I get similar output to ArcGIS one if I add --config OGR_ENABLE_PARTIAL_REPROJECTION YES

comment:5 Changed 7 years ago by scw

Awesome, thanks!

Note: See TracTickets for help on using tickets.