def to_file(self, filename, driver="ESRI Shapefile", schema=None, **kwargs): """Write the ``GeoDataFrame`` to a file. By default, an ESRI shapefile is written, but any OGR data source supported by Fiona can be written. A dictionary of supported OGR providers is available via: >>> import fiona >>> fiona.supported_drivers Parameters ---------- filename : string File path or file handle to write to. driver : string, default: 'ESRI Shapefile' The OGR format driver used to write the vector file. schema : dict, default: None If specified, the schema dictionary is passed to Fiona to better control how the file is written. Notes ----- The extra keyword arguments ``**kwargs`` are passed to fiona.open and can be used to write to multi-layer data, store data within archives (zip files), etc. """ from geopandas.io.file import to_file to_file(self, filename, driver, schema, **kwargs)
def to_file(self, filename, driver="ESRI Shapefile", schema=None, **kwargs): """Write the ``GeoDataFrame`` to a file. By default, an ESRI shapefile is written, but any OGR data source supported by Fiona can be written. A dictionary of supported OGR providers is available via: >>> import fiona >>> fiona.supported_drivers Parameters ---------- filename : string File path or file handle to write to. driver : string, default: 'ESRI Shapefile' The OGR format driver used to write the vector file. schema : dict, default: None If specified, the schema dictionary is passed to Fiona to better control how the file is written. Notes ----- The extra keyword arguments ``**kwargs`` are passed to fiona.open and can be used to write to multi-layer data, store data within archives (zip files), etc. """ from geopandas.io.file import to_file to_file(self, filename, driver, schema, **kwargs)
def to_file(self, filename, driver="ESRI Shapefile", schema=None, **kwargs): """ Write this GeoDataFrame to an OGR data source A dictionary of supported OGR providers is available via: >>> import fiona >>> fiona.supported_drivers Parameters ---------- filename : string File path or file handle to write to. driver : string, default 'ESRI Shapefile' The OGR format driver used to write the vector file. schema : dict, default None If specified, the schema dictionary is passed to Fiona to better control how the file is written. The *kwargs* are passed to fiona.open and can be used to write to multi-layer data, store data within archives (zip files), etc. """ from geopandas.io.file import to_file to_file(self, filename, driver, schema, **kwargs)
def to_file(self, filename, driver="ESRI Shapefile", schema=None, index=None, **kwargs): """Write the ``GeoDataFrame`` to a file. By default, an ESRI shapefile is written, but any OGR data source supported by Fiona can be written. A dictionary of supported OGR providers is available via: >>> import fiona >>> fiona.supported_drivers Parameters ---------- filename : string File path or file handle to write to. driver : string, default: 'ESRI Shapefile' The OGR format driver used to write the vector file. schema : dict, default: None If specified, the schema dictionary is passed to Fiona to better control how the file is written. index : bool, default None If True, write index into one or more columns (for MultiIndex). Default None writes the index into one or more columns only if the index is named, is a MultiIndex, or has a non-integer data type. If False, no index is written. .. versionadded:: 0.7 Previously the index was not written. Notes ----- The extra keyword arguments ``**kwargs`` are passed to fiona.open and can be used to write to multi-layer data, store data within archives (zip files), etc. The format drivers will attempt to detect the encoding of your data, but may fail. In this case, the proper encoding can be specified explicitly by using the encoding keyword parameter, e.g. ``encoding='utf-8'``. See Also -------- GeoSeries.to_file """ from geopandas.io.file import to_file to_file(self, filename, driver, schema, index, **kwargs)
def to_file(self, filename, driver="ESRI Shapefile", schema=None, **kwargs): """ Write this GeoDataFrame to an OGR data source A dictionary of supported OGR providers is available via: >>> import fiona >>> fiona.supported_drivers Parameters ---------- filename : string File path or file handle to write to. driver : string, default 'ESRI Shapefile' The OGR format driver used to write the vector file. schema : dict, default None If specified, the schema dictionary is passed to Fiona to better control how the file is written. The *kwargs* are passed to fiona.open and can be used to write to multi-layer data, store data within archives (zip files), etc. """ from geopandas.io.file import to_file to_file(self, filename, driver, schema, **kwargs)