Ticket #3758 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Reported by: scw Owned by: 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

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

Change History

Changed 3 years ago by scw

LAEA projection centered on the Mediterranean Sea

Changed 3 years ago by scw

  • summary changed from reprojecting lines into lAEA fails if any point falls on either of the poles to reprojecting lines into LAEA fails if any point falls on either of the poles

Changed 3 years ago by scw

  • cc shaun.walbridge@… added

Changed 3 years ago by rouault

  • owner changed from warmerdam to rouault

Changed 3 years ago by rouault

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 1.8.0

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

Changed 3 years ago by scw

Awesome, thanks!

Note: See TracTickets for help on using tickets.