class_docstr: A geometry type that represents a single coordinate with
  x,y and possibly z values.
  
  A point is a zero-dimensional feature and has zero length and zero area.
  
  Parameters
  ----------
  args : float, or sequence of floats
      The coordinates can either be passed as a single parameter, or as
      individual float values using multiple parameters:
  
      1) 1 parameter: a sequence or array-like of with 2 or 3 values.
      2) 2 or 3 parameters (float): x, y, and possibly z.
  
  Attributes
  ----------
  x, y, z : float
      Coordinate values
  
  Examples
  --------
  Constructing the Point using separate parameters for x and y:
  
  >>> p = Point(1.0, -1.0)
  
  Constructing the Point using a list of x, y coordinates:
  
  >>> p = Point([1.0, -1.0])
  >>> print(p)
  POINT (1 -1)
  >>> p.y
  -1.0
  >>> p.x
  1.0
class_docstr_tok: ["A","geometry","type","that","represents","a","single","coordinate","with","x",",","y","and","possibly","z","values",".","A","point","is","a","zero-dimensional","feature","and","has","zero","length","and","zero","area",".","Parameters","--","--","--","--","--","args",":","float",",","or","sequence","of","floats","The","coordinates","can","either","be","passed","as","a","single","parameter",",","or","as","individual","float","values","using","multiple","parameters",":","1",")","1","parameter",":","a","sequence","or","array-like","of","with","2","or","3","values",".","2",")","2","or","3","parameters","(","float",")",":","x",",","y",",","and","possibly","z",".","Attributes","--","--","--","--","--","x",",","y",",","z",":","float","Coordinate","values","Examples","--","--","--","--","Constructing","the","Point","using","separate","parameters","for","x","and","y",":",">",">",">","p","=","Point","(","1.0",",","-1.0",")","Constructing","the","Point","using","a","list","of","x",",","y","coordinates",":",">",">",">","p","=","Point","(","[","1.0",",","-1.0","]",")",">",">",">","print","(","p",")","POINT","(","1","-1",")",">",">",">","p.y","-1.0",">",">",">","p.x","1.0"]
code: def __new__(self, *args):
      if len(args) == 0:
          # empty geometry
          # TODO better constructor
          return shapely.from_wkt("POINT EMPTY")
      elif len(args) > 3:
          raise TypeError(
              f"Point() takes at most 3 arguments ({len(args)} given)"
          )
      elif len(args) == 1:
          coords = args[0]
          if isinstance(coords, Point):
              return coords
  
          # Accept either (x, y) or [(x, y)]
          if not hasattr(coords, "__getitem__"):  # generators
              coords = list(coords)
          coords = np.asarray(coords).squeeze()
      else:
          # 2 or 3 args
          coords = np.array(args).squeeze()
  
      if coords.ndim > 1:
          raise ValueError(
              f"Point() takes only scalar or 1-size vector arguments, got {args}"
          )
      if not np.issubdtype(coords.dtype, np.number):
          coords = [float(c) for c in coords]
      geom = shapely.points(coords)
      if not isinstance(geom, Point):
          raise ValueError("Invalid values passed to Point constructor")
      return geom
  
file_path: shapely/shapely/geometry/point.py
imports: import numpy
  import shapely
  from shapely.errors import DimensionError
  from shapely.geometry.base import BaseGeometry
label_desc: Use image node_id 1 for calling the Point obj's underlying member method code with example usage: obj.__new__() and returns: geom, shapely, coords