Opened 12 years ago

Closed 12 years ago

Last modified 12 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 12 years ago.
LAEA projection centered on the Mediterranean Sea

Download all attachments as: .zip

Change History (6)

by scw, 12 years ago

Attachment: med.prj added

LAEA projection centered on the Mediterranean Sea

comment:1 by scw, 12 years ago

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 by scw, 12 years ago

Cc: shaun.walbridge@… added

comment:3 by Even Rouault, 12 years ago

Owner: changed from warmerdam to Even Rouault

comment:4 by Even Rouault, 12 years ago

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 by scw, 12 years ago

Awesome, thanks!

Note: See TracTickets for help on using tickets.