class_docstr: performs forward and inverse geodetic, or Great Circle,
  computations.  The forward computation (using the 'fwd' method)
  involves determining latitude, longitude and back azimuth of a
  terminus point given the latitude and longitude of an initial
  point, plus azimuth and distance. The inverse computation (using
  the 'inv' method) involves determining the forward and back
  azimuths and distance given the latitudes and longitudes of an
  initial and terminus point.
  
  Attributes
  ----------
  initstring: str
      The string form of the user input used to create the Geod.
  sphere: bool
      If True, it is a sphere.
  a: float
      The ellipsoid equatorial radius, or semi-major axis.
  b: float
      The ellipsoid polar radius, or semi-minor axis.
  es: float
      The 'eccentricity' of the ellipse, squared (1-b2/a2).
  f: float
      The ellipsoid 'flattening' parameter ( (a-b)/a ).
class_docstr_tok: ["performs","forward","and","inverse","geodetic",",","or","Great","Circle",",","computations",".","The","forward","computation","(","using","the","'fwd","'","method",")","involves","determining","latitude",",","longitude","and","back","azimuth","of","a","terminus","point","given","the","latitude","and","longitude","of","an","initial","point",",","plus","azimuth","and","distance",".","The","inverse","computation","(","using","the","'inv","'","method",")","involves","determining","the","forward","and","back","azimuths","and","distance","given","the","latitudes","and","longitudes","of","an","initial","and","terminus","point",".","Attributes","--","--","--","--","--","initstring",":","str","The","string","form","of","the","user","input","used","to","create","the","Geod",".","sphere",":","bool","If","True",",","it","is","a","sphere",".","a",":","float","The","ellipsoid","equatorial","radius",",","or","semi-major","axis",".","b",":","float","The","ellipsoid","polar","radius",",","or","semi-minor","axis",".","es",":","float","The","'eccentricity","'","of","the","ellipse",",","squared","(","1-b2\/a2",")",".","f",":","float","The","ellipsoid","'flattening","'","parameter","(","(","a-b",")","\/a",")","."]
docstr: .. versionadded:: 2.3.0
  
  A simple interface for computing the area (meters^2) and perimeter (meters)
  of a geodesic polygon.
  
  Arbitrarily complex polygons are allowed. In the case self-intersecting
  of polygons the area is accumulated "algebraically", e.g., the areas of
  the 2 loops in a figure-8 polygon will partially cancel. There's no need
  to "close" the polygon by repeating the first vertex. The area returned
  is signed with counter-clockwise traversal being treated as positive.
  
  .. note:: lats should be in the range [-90 deg, 90 deg].
  
  
  Example usage:
  
  >>> from pyproj import Geod
  >>> geod = Geod('+a=6378137 +f=0.0033528106647475126')
  >>> lats = [-72.9, -71.9, -74.9, -74.3, -77.5, -77.4, -71.7, -65.9, -65.7,
  ...         -66.6, -66.9, -69.8, -70.0, -71.0, -77.3, -77.9, -74.7]
  >>> lons = [-74, -102, -102, -131, -163, 163, 172, 140, 113,
  ...         88, 59, 25, -4, -14, -33, -46, -61]
  >>> poly_area, poly_perimeter = geod.polygon_area_perimeter(lons, lats)
  >>> f"{poly_area:.1f} {poly_perimeter:.1f}"
  '13376856682207.4 14710425.4'
  
  
  Parameters
  ----------
  lons: array, :class:`numpy.ndarray`, list, tuple, or scalar
      An array of longitude values.
  lats: array, :class:`numpy.ndarray`, list, tuple, or scalar
      An array of latitude values.
  radians: bool, default=False
      If True, the input data is assumed to be in radians.
      Otherwise, the data is assumed to be in degrees.
  
  Returns
  -------
  (float, float):
      The geodesic area (meters^2) and perimeter (meters) of the polygon.
docstr_tok: ["..","versionadded",":",":","2.3.0","A","simple","interface","for","computing","the","area","(","meters^2",")","and","perimeter","(","meters",")","of","a","geodesic","polygon",".","Arbitrarily","complex","polygons","are","allowed",".","In","the","case","self-intersecting","of","polygons","the","area","is","accumulated","``","algebraically","''",",","e.g.",",","the","areas","of","the","2","loops","in","a","figure-8","polygon","will","partially","cancel",".","There","'s","no","need","to","``","close","''","the","polygon","by","repeating","the","first","vertex",".","The","area","returned","is","signed","with","counter-clockwise","traversal","being","treated","as","positive",".","..","note",":",":","lats","should","be","in","the","range","[","-90","deg",",","90","deg","]",".","Example","usage",":",">",">",">","from","pyproj","import","Geod",">",">",">","geod","=","Geod","(","'+a=6378137","+f=0.0033528106647475126","'",")",">",">",">","lats","=","[","-72.9",",","-71.9",",","-74.9",",","-74.3",",","-77.5",",","-77.4",",","-71.7",",","-65.9",",","-65.7",",","...","-66.6",",","-66.9",",","-69.8",",","-70.0",",","-71.0",",","-77.3",",","-77.9",",","-74.7","]",">",">",">","lons","=","[","-74",",","-102",",","-102",",","-131",",","-163",",","163",",","172",",","140",",","113",",","...","88",",","59",",","25",",","-4",",","-14",",","-33",",","-46",",","-61","]",">",">",">","poly_area",",","poly_perimeter","=","geod.polygon_area_perimeter","(","lons",",","lats",")",">",">",">","f","''","{","poly_area",":",".1f","}","{","poly_perimeter",":",".1f","}","''","'13376856682207.4","14710425.4'","Parameters","--","--","--","--","--","lons",":","array",",",":","class",":","`","numpy.ndarray","`",",","list",",","tuple",",","or","scalar","An","array","of","longitude","values",".","lats",":","array",",",":","class",":","`","numpy.ndarray","`",",","list",",","tuple",",","or","scalar","An","array","of","latitude","values",".","radians",":","bool",",","default=False","If","True",",","the","input","data","is","assumed","to","be","in","radians",".","Otherwise",",","the","data","is","assumed","to","be","in","degrees",".","Returns","--","--","--","-","(","float",",","float",")",":","The","geodesic","area","(","meters^2",")","and","perimeter","(","meters",")","of","the","polygon","."]
code: def polygon_area_perimeter(
      self, lons: Any, lats: Any, radians: bool = False
  ) -> tuple[float, float]:
      """
      .. versionadded:: 2.3.0
  
      A simple interface for computing the area (meters^2) and perimeter (meters)
      of a geodesic polygon.
  
      Arbitrarily complex polygons are allowed. In the case self-intersecting
      of polygons the area is accumulated "algebraically", e.g., the areas of
      the 2 loops in a figure-8 polygon will partially cancel. There's no need
      to "close" the polygon by repeating the first vertex. The area returned
      is signed with counter-clockwise traversal being treated as positive.
  
      .. note:: lats should be in the range [-90 deg, 90 deg].
  
  
      Example usage:
  
      >>> from pyproj import Geod
      >>> geod = Geod('+a=6378137 +f=0.0033528106647475126')
      >>> lats = [-72.9, -71.9, -74.9, -74.3, -77.5, -77.4, -71.7, -65.9, -65.7,
      ...         -66.6, -66.9, -69.8, -70.0, -71.0, -77.3, -77.9, -74.7]
      >>> lons = [-74, -102, -102, -131, -163, 163, 172, 140, 113,
      ...         88, 59, 25, -4, -14, -33, -46, -61]
      >>> poly_area, poly_perimeter = geod.polygon_area_perimeter(lons, lats)
      >>> f"{poly_area:.1f} {poly_perimeter:.1f}"
      '13376856682207.4 14710425.4'
  
  
      Parameters
      ----------
      lons: array, :class:`numpy.ndarray`, list, tuple, or scalar
          An array of longitude values.
      lats: array, :class:`numpy.ndarray`, list, tuple, or scalar
          An array of latitude values.
      radians: bool, default=False
          If True, the input data is assumed to be in radians.
          Otherwise, the data is assumed to be in degrees.
  
      Returns
      -------
      (float, float):
          The geodesic area (meters^2) and perimeter (meters) of the polygon.
      """
      return self._polygon_area_perimeter(
          _copytobuffer(lons)[0],
          _copytobuffer(lats)[0],
          radians=radians,
      )
  
imports: import math
  import warnings
  from typing import Any
  from pyproj._geod import Geod
  from pyproj._geod import GeodIntermediateReturn, geodesic_version_str
  from pyproj._geod import reverse_azimuth
  from pyproj.enums import GeodIntermediateFlag
  from pyproj.exceptions import GeodError
  from pyproj.list import get_ellps_map
  from pyproj.utils import DataType, _convertback, _copytobuffer
label_desc: Use image node_id 9 for calling the Geod obj's underlying member method code with example usage: obj.polygon_area_perimeter(lons, lats, radians) and returns: self