Documentation Center    • Trial Software   • Product Updates
Insert points along date line to pole   [latf,lonf] =
flatearthpoly(lat,lon) [latf,lonf] =
flatearthpoly(lat,lon,longitudeOrigin)   [latf,lonf] =
flatearthpoly(lat,lon) trims NaN-separated polygons specified by
the latitude and longitude vectors lat and lon to the limits
[-180 180] in longitude and [-90 90] in latitude, inserting
straight segments along the +/- 180-degree meridians and at the
poles. Inputs and outputs are in degrees.  [latf,lonf] =
flatearthpoly(lat,lon,longitudeOrigin) centers the longitude
limits on the longitude specified by the scalar longitude
longitudeOrigin.   Vector data for geographic objects that
encompass a pole will inevitably encounter or cross the date
line. While the toolbox properly displays such polygons, they
can cause problems for functions like the polygon intersection
and Boolean operations that work with Cartesian coordinates.
When these polygons are treated as Cartesian coordinates, the
date line crossing re