class_docstr: A Series object designed to store shapely geometry objects.
  
  Parameters
  ----------
  data : array-like, dict, scalar value
      The geometries to store in the GeoSeries.
  index : array-like or Index
      The index for the GeoSeries.
  crs : value (optional)
      Coordinate Reference System of the geometry objects. Can be anything accepted by
      :meth:`pyproj.CRS.from_user_input() <pyproj.crs.CRS.from_user_input>`,
      such as an authority string (eg "EPSG:4326") or a WKT string.
  
  kwargs
      Additional arguments passed to the Series constructor,
       e.g. ``name``.
  
  Examples
  --------
  
  >>> from shapely.geometry import Point
  >>> s = geopandas.GeoSeries([Point(1, 1), Point(2, 2), Point(3, 3)])
  >>> s
  0    POINT (1 1)
  1    POINT (2 2)
  2    POINT (3 3)
  dtype: geometry
  
  >>> s = geopandas.GeoSeries(
  ...     [Point(1, 1), Point(2, 2), Point(3, 3)], crs="EPSG:3857"
  ... )
  >>> s.crs  # doctest: +SKIP
  <Projected CRS: EPSG:3857>
  Name: WGS 84 / Pseudo-Mercator
  Axis Info [cartesian]:
  - X[east]: Easting (metre)
  - Y[north]: Northing (metre)
  Area of Use:
  - name: World - 85°S to 85°N
  - bounds: (-180.0, -85.06, 180.0, 85.06)
  Coordinate Operation:
  - name: Popular Visualisation Pseudo-Mercator
  - method: Popular Visualisation Pseudo Mercator
  Datum: World Geodetic System 1984
  - Ellipsoid: WGS 84
  - Prime Meridian: Greenwich
  
  >>> s = geopandas.GeoSeries(
  ...    [Point(1, 1), Point(2, 2), Point(3, 3)], index=["a", "b", "c"], crs=4326
  ... )
  >>> s
  a    POINT (1 1)
  b    POINT (2 2)
  c    POINT (3 3)
  dtype: geometry
  
  >>> s.crs
  <Geographic 2D CRS: EPSG:4326>
  Name: WGS 84
  Axis Info [ellipsoidal]:
  - Lat[north]: Geodetic latitude (degree)
  - Lon[east]: Geodetic longitude (degree)
  Area of Use:
  - name: World.
  - bounds: (-180.0, -90.0, 180.0, 90.0)
  Datum: World Geodetic System 1984 ensemble
  - Ellipsoid: WGS 84
  - Prime Meridian: Greenwich
  
  See Also
  --------
  GeoDataFrame
  pandas.Series
class_docstr_tok: ["A","Series","object","designed","to","store","shapely","geometry","objects",".","Parameters","--","--","--","--","--","data",":","array-like",",","dict",",","scalar","value","The","geometries","to","store","in","the","GeoSeries",".","index",":","array-like","or","Index","The","index","for","the","GeoSeries",".","crs",":","value","(","optional",")","Coordinate","Reference","System","of","the","geometry","objects",".","Can","be","anything","accepted","by",":","meth",":","`","pyproj.CRS.from_user_input","(",")","<","pyproj.crs.CRS.from_user_input",">","`",",","such","as","an","authority","string","(","eg","``","EPSG:4326","''",")","or","a","WKT","string",".","kwargs","Additional","arguments","passed","to","the","Series","constructor",",","e.g",".","``","name","``",".","Examples","--","--","--","--",">",">",">","from","shapely.geometry","import","Point",">",">",">","s","=","geopandas.GeoSeries","(","[","Point","(","1",",","1",")",",","Point","(","2",",","2",")",",","Point","(","3",",","3",")","]",")",">",">",">","s","0","POINT","(","1","1",")","1","POINT","(","2","2",")","2","POINT","(","3","3",")","dtype",":","geometry",">",">",">","s","=","geopandas.GeoSeries","(","...","[","Point","(","1",",","1",")",",","Point","(","2",",","2",")",",","Point","(","3",",","3",")","]",",","crs=","''","EPSG:3857","''","...",")",">",">",">","s.crs","#","doctest",":","+SKIP","<","Projected","CRS",":","EPSG:3857",">","Name",":","WGS","84","\/","Pseudo-Mercator","Axis","Info","[","cartesian","]",":","-","X","[","east","]",":","Easting","(","metre",")","-","Y","[","north","]",":","Northing","(","metre",")","Area","of","Use",":","-","name",":","World","-","85\u00b0S","to","85\u00b0N","-","bounds",":","(","-180.0",",","-85.06",",","180.0",",","85.06",")","Coordinate","Operation",":","-","name",":","Popular","Visualisation","Pseudo-Mercator","-","method",":","Popular","Visualisation","Pseudo","Mercator","Datum",":","World","Geodetic","System","1984","-","Ellipsoid",":","WGS","84","-","Prime","Meridian",":","Greenwich",">",">",">","s","=","geopandas.GeoSeries","(","...","[","Point","(","1",",","1",")",",","Point","(","2",",","2",")",",","Point","(","3",",","3",")","]",",","index=","[","``","a","''",",","``","b","''",",","``","c","''","]",",","crs=4326","...",")",">",">",">","s","a","POINT","(","1","1",")","b","POINT","(","2","2",")","c","POINT","(","3","3",")","dtype",":","geometry",">",">",">","s.crs","<","Geographic","2D","CRS",":","EPSG:4326",">","Name",":","WGS","84","Axis","Info","[","ellipsoidal","]",":","-","Lat","[","north","]",":","Geodetic","latitude","(","degree",")","-","Lon","[","east","]",":","Geodetic","longitude","(","degree",")","Area","of","Use",":","-","name",":","World",".","-","bounds",":","(","-180.0",",","-90.0",",","180.0",",","90.0",")","Datum",":","World","Geodetic","System","1984","ensemble","-","Ellipsoid",":","WGS","84","-","Prime","Meridian",":","Greenwich","See","Also","--","--","--","--","GeoDataFrame","pandas.Series"]
docstr: Alternate constructor to create a ``GeoSeries`` from a file.
  
  Can load a ``GeoSeries`` from a file from any format recognized by
  `fiona`. See http://fiona.readthedocs.io/en/latest/manual.html for details.
  From a file with attributes loads only geometry column. Note that to do
  that, GeoPandas first loads the whole GeoDataFrame.
  
  Parameters
  ----------
  filename : str
      File path or file handle to read from. Depending on which kwargs
      are included, the content of filename may vary. See
      http://fiona.readthedocs.io/en/latest/README.html#usage for usage details.
  kwargs : key-word arguments
      These arguments are passed to fiona.open, and can be used to
      access multi-layer data, data stored within archives (zip files),
      etc.
  
  Examples
  --------
  >>> import geodatasets
  >>> path = geodatasets.get_path('nybb')
  >>> s = geopandas.GeoSeries.from_file(path)
  >>> s
  0    MULTIPOLYGON (((970217.022 145643.332, 970227....
  1    MULTIPOLYGON (((1029606.077 156073.814, 102957...
  2    MULTIPOLYGON (((1021176.479 151374.797, 102100...
  3    MULTIPOLYGON (((981219.056 188655.316, 980940....
  4    MULTIPOLYGON (((1012821.806 229228.265, 101278...
  Name: geometry, dtype: geometry
  
  See Also
  --------
  read_file : read file to GeoDataFrame
docstr_tok: ["Alternate","constructor","to","create","a","``","GeoSeries","``","from","a","file",".","Can","load","a","``","GeoSeries","``","from","a","file","from","any","format","recognized","by","`","fiona","`",".","See","http",":","\/\/fiona.readthedocs.io\/en\/latest\/manual.html","for","details",".","From","a","file","with","attributes","loads","only","geometry","column",".","Note","that","to","do","that",",","GeoPandas","first","loads","the","whole","GeoDataFrame",".","Parameters","--","--","--","--","--","filename",":","str","File","path","or","file","handle","to","read","from",".","Depending","on","which","kwargs","are","included",",","the","content","of","filename","may","vary",".","See","http",":","\/\/fiona.readthedocs.io\/en\/latest\/README.html","#","usage","for","usage","details",".","kwargs",":","key-word","arguments","These","arguments","are","passed","to","fiona.open",",","and","can","be","used","to","access","multi-layer","data",",","data","stored","within","archives","(","zip","files",")",",","etc",".","Examples","--","--","--","--",">",">",">","import","geodatasets",">",">",">","path","=","geodatasets.get_path","(","'nybb","'",")",">",">",">","s","=","geopandas.GeoSeries.from_file","(","path",")",">",">",">","s","0","MULTIPOLYGON","(","(","(","970217.022","145643.332",",","970227","....","1","MULTIPOLYGON","(","(","(","1029606.077","156073.814",",","102957","...","2","MULTIPOLYGON","(","(","(","1021176.479","151374.797",",","102100","...","3","MULTIPOLYGON","(","(","(","981219.056","188655.316",",","980940","....","4","MULTIPOLYGON","(","(","(","1012821.806","229228.265",",","101278","...","Name",":","geometry",",","dtype",":","geometry","See","Also","--","--","--","--","read_file",":","read","file","to","GeoDataFrame"]
code: def from_file(
      cls, filename: os.PathLike | typing.IO, **kwargs
  ) -> GeoSeries:
      """Alternate constructor to create a ``GeoSeries`` from a file.
  
      Can load a ``GeoSeries`` from a file from any format recognized by
      `fiona`. See http://fiona.readthedocs.io/en/latest/manual.html for details.
      From a file with attributes loads only geometry column. Note that to do
      that, GeoPandas first loads the whole GeoDataFrame.
  
      Parameters
      ----------
      filename : str
          File path or file handle to read from. Depending on which kwargs
          are included, the content of filename may vary. See
          http://fiona.readthedocs.io/en/latest/README.html#usage for usage details.
      kwargs : key-word arguments
          These arguments are passed to fiona.open, and can be used to
          access multi-layer data, data stored within archives (zip files),
          etc.
  
      Examples
      --------
      >>> import geodatasets
      >>> path = geodatasets.get_path('nybb')
      >>> s = geopandas.GeoSeries.from_file(path)
      >>> s
      0    MULTIPOLYGON (((970217.022 145643.332, 970227....
      1    MULTIPOLYGON (((1029606.077 156073.814, 102957...
      2    MULTIPOLYGON (((1021176.479 151374.797, 102100...
      3    MULTIPOLYGON (((981219.056 188655.316, 980940....
      4    MULTIPOLYGON (((1012821.806 229228.265, 101278...
      Name: geometry, dtype: geometry
  
      See Also
      --------
      read_file : read file to GeoDataFrame
      """
      from geopandas import GeoDataFrame
  
      df = GeoDataFrame.from_file(filename, **kwargs)
  
      return GeoSeries(df.geometry, crs=df.crs)
  
imports: from __future__ import annotations
  import json
  import typing
  from typing import Optional, Any, Callable, Dict
  import warnings
  import numpy
  import pandas
  from pandas import Series
  from pandas.core.internals import SingleBlockManager
  from pyproj import CRS
  import shapely
  from shapely.geometry.base import BaseGeometry
  from shapely.geometry import GeometryCollection
  from geopandas.base import GeoPandasBase, _delegate_property
  from geopandas.plotting import plot_series
  from geopandas.explore import _explore_geoseries
  import geopandas
  from .None import _compat
  from ._decorator import doc
  from .array import GeometryDtype, from_shapely, from_wkb, from_wkt, points_from_xy, to_wkb, to_wkt
  from .base import is_geometry_type
label_desc: Use image node_id 7 for calling the GeoSeries obj's underlying member method code with example usage: obj.from_file(cls, filename) and returns: GeoSeries