Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.9%) to scientific vocabulary
Last synced: 9 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: deepin-community
  • License: bsd-3-clause
  • Language: Python
  • Default Branch: master
  • Size: 517 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created over 3 years ago · Last pushed almost 2 years ago
Metadata Files
Readme Changelog License Code of conduct Citation

README.rst

=====
Fiona
=====

.. image:: https://github.com/Toblerity/Fiona/workflows/Tests/badge.svg?branch=maint-1.9
   :target: https://github.com/Toblerity/Fiona/actions?query=branch%3Amaint-1.9

Fiona streams simple feature data to and from GIS formats like GeoPackage and
Shapefile.

Fiona can read and write real-world data using multi-layered GIS formats,
zipped and in-memory virtual file systems, from files on your hard drive or in
cloud storage. This project includes Python modules and a command line
interface (CLI).

Fiona depends on `GDAL `__ but is different from GDAL's own
`bindings `__. Fiona is designed to
be highly productive and to make it easy to write code which is easy to read.

Installation
============

Fiona has several `extension modules
`__ which link against
libgdal. This complicates installation. Binary distributions (wheels)
containing libgdal and its own dependencies are available from the Python
Package Index and can be installed using pip.

.. code-block:: console

    pip install fiona

These wheels are mainly intended to make installation easy for simple
applications, not so much for production. They are not tested for compatibility
with all other binary wheels, conda packages, or QGIS, and omit many of GDAL's
optional format drivers. If you need, for example, GML support you will need to
build and install Fiona from a source distribution. It is possible to install
Fiona from source using pip (version >= 22.3) and the `--no-binary` option. A
specific GDAL installation can be selected by setting the GDAL_CONFIG
environment variable.

.. code-block:: console

    pip install -U pip
    pip install --no-binary fiona fiona

Many users find Anaconda and conda-forge a good way to install Fiona and get
access to more optional format drivers (like GML).

Fiona 1.9 requires Python 3.7 or higher and GDAL 3.2 or higher.

Python Usage
============

Features are read from and written to file-like ``Collection`` objects returned
from the ``fiona.open()`` function. Features are data classes modeled on the
GeoJSON format. They don't have any spatial methods of their own, so if you
want to transform them you will need Shapely or something like it. Here is an
example of using Fiona to read some features from one data file, change their
geometry attributes using Shapely, and write them to a new data file.

.. code-block:: python

    import fiona
    from fiona import Feature, Geometry
    from shapely.geometry import mapping, shape

    # Open a file for reading. We'll call this the source.
    with fiona.open(
        "zip+https://github.com/Toblerity/Fiona/files/11151652/coutwildrnp.zip"
    ) as src:

        # The file we'll write to must be initialized with a coordinate
        # system, a format driver name, and a record schema. We can get
        # initial values from the open source's profile property and then
        # modify them as we need.
        profile = src.profile
        profile["schema"]["geometry"] = "Point"
        profile["driver"] = "GPKG"

        # Open an output file, using the same format driver and coordinate
        # reference system as the source. The profile mapping fills in the
        # keyword parameters of fiona.open.
        with fiona.open("centroids.gpkg", "w", **profile) as dst:

            # Process only the feature records intersecting a box.
            for feat in src.filter(bbox=(-107.0, 37.0, -105.0, 39.0)):

                # Get the feature's centroid.
                centroid_shp = shape(feat.geometry).centroid
                new_geom = Geometry.from_dict(centroid_shp)

                # Write the feature out.
                dst.write(
                    Feature(geometry=new_geom, properties=f.properties)
                )

        # The destination's contents are flushed to disk and the file is
        # closed when its with block ends. This effectively
        # executes ``dst.flush(); dst.close()``.

CLI Usage
=========

Fiona's command line interface, named "fio", is documented at `docs/cli.rst
`__. The CLI has a
number of different commands. Its ``fio cat`` command streams GeoJSON features
from any dataset.

.. code-block:: console

    $ fio cat --compact tests/data/coutwildrnp.shp | jq -c '.'
    {"geometry":{"coordinates":[[[-111.73527526855469,41.995094299316406],...]]}}
    ...

Documentation
=============

For more details about this project, please see:

* Fiona `home page `__
* `Docs and manual `__
* `Examples `__
* Main `user discussion group `__
* `Developers discussion group `__

Owner

  • Name: deepin Community
  • Login: deepin-community
  • Kind: organization
  • Email: support@deepin.org
  • Location: China

Welcome to the deepin community.

Citation (CITATION.cff)

cff-version: 1.2.0
message: "Please cite this software using these metadata."
type: software
title: Fiona
version: "1.9.5"
date-released: "2023-10-11"
abstract: "Fiona streams simple feature data to and from GIS formats like GeoPackage and Shapefile."
keywords:
  - cartography
  - GIS
  - OGR
repository-artifact: https://pypi.org/project/Fiona
repository-code: https://github.com/Toblerity/Fiona
license: "BSD-3-Clause"
authors:
  - given-names: Sean
    family-names: Gillies
    alias: sgillies
    orcid: https://orcid.org/0000-0002-8401-9184
  - given-names: René
    family-names: Buffat
    alias: rbuffat
    orcid: https://orcid.org/0000-0002-9836-3314
  - given-names: Joshua
    family-names: Arnott
    alias: snorfalorpagus
  - given-names: Mike W.
    family-names: Taves
    alias: mwtoews
    orcid: https://orcid.org/0000-0003-3657-7963
  - given-names: Kevin
    family-names: Wurster
    alias: geowurster
    orcid: https://orcid.org/0000-0001-9044-0832
  - given-names: Alan D.
    family-names: Snow
    alias: snowman2
    orcid: https://orcid.org/0000-0002-7333-3100
  - given-names: Micah
    family-names: Cochran
    alias: micahcochran
  - given-names: Elliott
    family-names: Sales de Andrade
    alias: QuLogic
    orcid: https://orcid.org/0000-0001-7310-8942
  - given-names: Matthew
    family-names: Perry
    alias: perrygeo

GitHub Events

Total
Last Year

Dependencies

requirements-ci.txt pypi
  • coveralls *
requirements-dev.txt pypi
  • boto3 ==1.9.19 development
  • coverage ==4.5.4 development
  • cython ==0.29.21 development
  • mock * development
  • pytest ==4.6.6 development
  • pytest-cov ==2.8.1 development
  • pytz ==2020.1 development
  • setuptools ==41.6.0 development
  • wheel ==0.33.6 development
requirements.txt pypi
  • attrs ==18.2.0
  • certifi *
  • click-plugins ==1.0.4
  • cligj ==0.5.0
  • enum34 ==1.1.6
  • munch ==2.3.2
  • six ==1.11.0
.github/workflows/backup-to-gitlab.yml actions
.github/workflows/call-auto-tag.yml actions
.github/workflows/call-build-deb.yml actions
.github/workflows/call-build-tag.yml actions
.github/workflows/call-chatOps.yml actions
environment.yml pypi
  • jinja2 ==3.0.3
pyproject.toml pypi
  • attrs >=19.2.0
  • certifi *
  • click ~=8.0
  • click-plugins >=1.0
  • cligj >=0.5
  • importlib-metadata python_version<"3.10"
  • six *
setup.py pypi