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
1
vote
1 answer

Does geopandas to_crs() method access the internet for ESRI Information?

This is a general inquiry regarding the utility of the python geopandas module and attempting to transform a geodataframe to a new coordinate reference system (crs). When a user initializes the geopandas to_crs() method to transform the geodataframe…
Jason
  • 181
  • 2
  • 14
1
vote
1 answer

How to get output from Fiona instead of fiona.model object

I'm following the examples in the docs but using Virginia's parcel shp file. Warning: it's about 1GB zipped and 1.8GB unzipped. I have very simply fiava = fiona.open("VirginiaParcel.shp/VirginiaParcel.shp", layer='VirginiaParcel') from which I can…
Dean MacGregor
  • 11,847
  • 9
  • 34
  • 72
1
vote
1 answer

Converting contours in an image to lines in shapefile using python

I have processed a screenshot from google maps using OpenCV and identified some contours for the red road sections, and I want to project these contours to a shapefile. I have searched but couldn't find an answer that followed the same purpose. Here…
ali bbb
  • 25
  • 4
1
vote
0 answers

Reading GML file with GeoPandas raises CPLE_AppDefinedError

I am trying to read a GML file using the following code: import geopandas as gpd G = gpd.read_file('extract/top10nl_gebouw.gml', driver='gml') But the following error is…
1
vote
1 answer

fiona ImportError: ... Library not loaded: @rpath/libpoppler.91.dylib

I reinstalled Anaconda (Anaconda 3, Python 3.9) on my Mac (MacOs Monterey 12.2) today. I installed geopandas through conda-forge and imported it successfully in Python of my base environment (3.9.12). I then installed salem through conda-forge too…
1
vote
1 answer

unable to read files from geopandas read_file method

I'm not being able to use the read_file method of geopandas. below is the code and the stack trace import geopandas as gpd path_to_data = gpd.datasets.get_path("nybb") gdf = gpd.read_file(path_to_data) error trace: ImportError …
jay queue
  • 285
  • 2
  • 14
1
vote
1 answer

Save shapefile as mat file using python?

After reading a shapefile using the following: Using Fiona y_data = fiona.open("example.shp") y_data.schema and I came across how to save it as a mat file by doing: scipy.io.savemat("example_save.mat", y_data) The following error showed…
Hamid
  • 41
  • 6
1
vote
1 answer

Convert geopandas.geodataframe to geojson

I am trying to save a geopandas.geodataframe in geojson format. but i have an error and i don't know where it comes from and how to solve it. here is the code and the error : Thanks in advance for your help. batiments =…
amaranaitsaidi
  • 101
  • 1
  • 9
1
vote
2 answers

Pyinstaller: 'Fiona' has no attribute '_loading' (most likely due to a circular import)

I really need help dealing with this issue. I run my script on PyScripter and everything works perfectly, but when I try to bundle all the scripts into .exe using PyInstaller I got an error as shown in the picture below. I also try to run from the…
yogiwinardhana
  • 33
  • 1
  • 11
1
vote
2 answers

Anaconda doesn't import geopandas

How do I make geopandas work? I have a new environment for geopandas. Before that I reinstalled anaconda. Pythom 3.8.5 is included and no other python is installed. When I open jupiter notebook in the specific geo_env with the packages and import…
yankov.plamen
  • 25
  • 1
  • 5
1
vote
0 answers

ProjError: Error creating Transformer from CRS.:

I am having an issue with Geopandas and PyProj. I am loading a premade shp file from GeoPandas borough = gpd.read_file(gpd.datasets.get_path('nybb')) When trying to do a crs transformation with the following code: borough =…
Mads
  • 11
  • 2
1
vote
1 answer

Read a gpkg file from memory/zipfile

I know that it is possible to read a shapefile from a zipfile by extracting it in memory and then reading it: https://gis.stackexchange.com/questions/250092/using-pyshp-to-read-a-file-like-object-from-a-zipped-archive Fiona also has ways to read a…
Heinrich
  • 340
  • 1
  • 4
  • 12
1
vote
1 answer

Install geopandas in Pycharm

Sorry if this is a repeat question, But I am new to Python and trying to install Geopandas in Pycharm. My python version is 3.7.2. I have tried the conventional way of installing library in pycharm through project interpretor. I have also tried pip…
1
vote
2 answers

Error installing geopandas:“ A GDAL API version must be specified ” in Visual Studio Code

This error raised while installing geopandas in vs code. I've looking for its solution on the web, but none of them really explain what happened and how to solve it.. Collecting geopandas Downloading geopandas-0.7.0-py2.py3-none-any.whl (928 kB) …
mayank choudhary
  • 63
  • 1
  • 4
  • 12
1
vote
2 answers

How to extract a profile of value from a raster along a given line?

How to extract a profile of values from a raster along a given shapefile line in Python? I am struggling finding a method to extract a profile of values (e.g. topographic profile) from a raster (geotiff). The library Rasterio has a method to…
Simon
  • 1,942
  • 5
  • 18
  • 22