Questions tagged [fiona]

Tool to automatically analyze the interactional behavior of a given oWFN. It checks for the controllability of the given net by computing the interactiong graph and it calculates the operating guideline for the net.

156 questions
31
votes
8 answers

Can't install Fiona on Windows

I've done a software on Ubuntu, and I'm having several problems running this software on Windows. My biggest issue point now is that I'm trying to install "fiona" - I have it already installed on my PIP packages - but for some reason it's not…
Guilherme Lima
  • 733
  • 1
  • 6
  • 27
19
votes
1 answer

No such file or directory: 'gdal-config'

I am trying to install fiona and geopandas on a mac machine. I have installed GDAL trough brew install gdal --HEAD If I try install fiona, I get the following: sudo pip3 install fiona Collecting fiona Downloading Fiona-1.8.18.tar.gz (1.3 MB) …
emax
  • 6,965
  • 19
  • 74
  • 141
16
votes
2 answers

Provide a path to gdal-config using a GDAL_CONFIG environment variable error while attempting to install Fiona

This is the error I receive: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable. after running the command: pip install Fiona from the command…
Recessive
  • 1,780
  • 2
  • 14
  • 37
14
votes
5 answers

ImportError: the 'read_file' function requires the 'fiona' package, but it is not installed or does not import correctly. Importing fiona resulted in:

Trying to read a shapefile (.shp) and received an ImportError after executing the below line of code. I even pip installed GDAL, geopandas, fiona and shapely before executing the below code. shapefile = gpd.read_file(r'C:\Users\....\Data…
Abhiram
  • 498
  • 2
  • 3
  • 11
8
votes
2 answers

AttributeError: 'NoneType' object has no attribute 'drvsupport' when using Fiona driver

when I run the following code: import geopandas as gpd from shapely.geometry import Point, Polygon import pandas as pd gpd.io.file.fiona.drvsupport.supported_drivers['KML'] = 'rw' my_map = gpd.read_file('mymap.kml', driver='KML') my_map I get…
S J
  • 133
  • 2
  • 7
8
votes
3 answers

geodataframe.to_file Invalid field type

I am processing shp files, and i'm having problems saving a geodataframe in a shp file. import pandas as pd import numpy as np import os import geopandas location = '/home/braulio/Documents/example.shp' datos = geopandas.read_file(location,…
8
votes
2 answers

Dissolve Overlapping Polygons (with GDAL/OGR) while keeping non-connected results distinct

Is there any way to dissolve (merge) overlapping polygons, using any GDAL/OGR API or command line tool, while keeping the resulting non overlapping areas distinct? I have searched a lot and I cannot find anything resembling what need. However, I…
StarSheriff
  • 1,477
  • 2
  • 17
  • 23
7
votes
2 answers

AttributeError: module 'fiona' has no attribute '_loading'

I am new in python and I am trying to work with geopandas library. I have already installed the package using: conda install -c conda-forge geopandas but when I try to import the library, I get back: ERROR SCREENSHOT But searching in my computer…
Giorgos Tsim
  • 91
  • 1
  • 4
6
votes
2 answers

import error after clean install of fiona

I installed fiona as follows: conda install -c conda-forge fiona It installed without any errors. When I try to import fiona, I get the following error: Traceback (most recent call last): File "", line 1, in File…
Alpha
  • 81
  • 1
  • 7
6
votes
1 answer

Export coordinate system as ESPG code: to_epsg() or ExportToEPSG()

When dealing with coordinates systems in Python with fiona and osgeo, there seem to be a lot of ways to define a coordinate system by importing/exporting different crs formats , for example: FIONA: from fiona.crs import…
Marjan Moderc
  • 2,747
  • 23
  • 44
6
votes
1 answer

How to extract interior polygon coordinates using Shapely?

I am new to Shapely (but enthusiastic about it), and recently I've discovered a bit of a road bump. I have a polygon shapefile that I am reading in via Fiona. This shapefile contains BOTH polygon and multipolygon items and I need to build an array…
user14696
  • 657
  • 2
  • 10
  • 30
5
votes
2 answers

why do I receive these errors "WARNING: Ignoring invalid distribution -yproj " while installing any python module in cmd

WARNING: Ignoring invalid distribution -yproj (c:\users\space_junk\appdata\local\programs\python\python310\lib\site-packages) WARNING: Ignoring invalid distribution -yproj…
nios
  • 151
  • 1
  • 1
  • 8
5
votes
2 answers

Specifying desired crs format of Geopandas object

I use geopandas's to_file() method to read a shapefile into a geopandas object. The shapefile has a valid .prj file with a ESRI WKT style projection information: PROJCS["Slovenia_1996_Slovene_National_Grid",GEOGCS["GCS_Slovenia…
Marjan Moderc
  • 2,747
  • 23
  • 44
5
votes
3 answers

trouble installing Fiona in python cpl_error.h: No such file or directory

I have tried to install geopandas two different ways: pip install geopandas or by cloning git clone https://github.com/kjordahl/geopandas In both cases, the installation file setup.py runs for a while and then returns this error…
john mangual
  • 7,718
  • 13
  • 56
  • 95
4
votes
1 answer

Can't Install/Uninstall Python Packages due to ValueError and PermissionError: [WinError 32]

I'm new to both Python and ArcGIS Pro; I'm just getting started and I'm trying to install a couple of Python packages in order to read, modify, and write Feature Class files using a Spatially Enabled DataFrame (SEDF). To do that, I need to install…
A.Student
  • 41
  • 2
1
2 3
10 11