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

Fiona accessing coordinates of multiple polygons in a shapefile

I am working on a shapefile that contains 4 polygons where I need to extract their coordinates in a tuple or numpy array for later manipulation. While fiona identifies the 4 polygons, using shapely to get the area only gives me the value for the…
PolarXYZ
  • 63
  • 8
1
vote
0 answers

Bad result after geoJSON export from geopandas GDF : Invalid field type

I have a script, which takes data from oracle, puts data to pandas.DataFrame -> geopandas df and exports to geoJSON: import cx_Oracle import pandas as pd import geopandas as gpd from shapely.geometry import LineString from shapely import wkb from…
Tyomik_mnemonic
  • 786
  • 3
  • 9
  • 31
1
vote
0 answers

Installing geopandas through conda forces me to remove basemap (windows 8)

I am trying to install geopandas into a virtual environment for implementing new code to a script that already relies on the hardest thing on planet earth to install, basemap. Unfortunately, conda seems adamant on removing the forsaken package when…
Recessive
  • 1,780
  • 2
  • 14
  • 37
1
vote
0 answers

How to show route from point A to D, avoid polygons and not intersect with them?

User can put 2 coords(startcoord, endcoords), and after that I calculate the shortest path using A* algorithm. Also want to validate this path, not going throw land. So right now I need to remove those coords, and update them with new ones. Also…
Dori
  • 175
  • 16
1
vote
0 answers

Can't import OSMnx due to apparent Fiona error

I'm trying to learn OSMnx. However, I haven't been able, as I get several errors even when importing it. I've got a MacBook Pro with MacOS Mojave 10.14.4. I've got Anaconda 3, and Python 3.7. I've tried almost all solutions posted in Stack Overflow…
idmoreno
  • 31
  • 4
1
vote
0 answers

Code using fiona is failing when trying to dissolve polygons due to different geometries

Using fiona, I am trying to dissolve a layer with hundreds, sometimes thousands, of geometries based on a dissolve field. So, geometries with the same dissolve field value will have a unary union function done to them to keep the geometries the same…
Alec
  • 11
  • 1
1
vote
2 answers

Need help installing fiona and geopandas for python in Windows 10 - getting can't load requested DLL error

I am trying to install fiona and geopandas for python on Windows 10 and keep running into an error "ERROR 1: Can't load requested DLL". I know this question is similar to other questions that have been asked, but I have followed the steps in…
Derek Eden
  • 4,403
  • 3
  • 18
  • 31
1
vote
0 answers

Python: problem to import fiona after other installation

I don't why but I am now experiencing this issue on mac. I installed everything trough anaconda. Everything was working fine before a Restart of the system import…
emax
  • 6,965
  • 19
  • 74
  • 141
1
vote
1 answer

Geopandas save as KML doesn't include columns

I tried to save the geopandas into KML. Below are my code. import fiona fiona.supported_drivers['KML'] = 'rw' gp.io.file.fiona.drvsupport.supported_drivers['KML'] = 'rw' a = df_geom[['Geohash_8','Geohash_7','Final Action…
1
vote
2 answers

How to install fiona 1.6?

I am trying to install fiona=1.6 but I get the following error conda install fiona=1.6 WARNING: The conda.compat module is deprecated and will be removed in a future release. Collecting package metadata: done Solving environment: - The environment…
emax
  • 6,965
  • 19
  • 74
  • 141
1
vote
1 answer

How to classify the points by a specific polylline

There is a boundary inside China, which divide the region as North-South. I have drawn this boundary as a polyline format shapefile Download link. I want to divide those points in the following figures into "North" and "South". Is there any useful…
Han Zhengzu
  • 3,694
  • 7
  • 44
  • 94
1
vote
1 answer

Python: why do I get an error when I import geopandas?

I try to import geopandas in my jupyter notebook. import geopandas as gp and I get the following error: ImportError: dlopen(/anaconda3/lib/python3.7/site-packages/fiona/ogrext.cpython-37m-darwin.so, 2): Library not loaded:…
emax
  • 6,965
  • 19
  • 74
  • 141
1
vote
1 answer

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 10894: ordinal not in range(128)

I was following this example (https://github.com/geodocker/geodocker-jupyter-geopyspark/blob/master/notebooks/sanfranmvp.ipynb ) so I can replicate similar output, every was successful except the last, I have tried all possible tweak but no success,…
Stringz
  • 43
  • 1
  • 1
  • 8
1
vote
0 answers

why fiona gives error while importing geopandas ?

I am trying to import geopandas. I have installed Fiona, gdal separately, and added path to osgeo before executing pip install geopandas. However, when I try to import geopandas on my jupyternotebook, it gives me error saying below. ImportError:…
kei
  • 11
  • 1
1
vote
2 answers

OSError: Could not find libspatialindex_c library file on Mac OSX

System: Mac OSX Im relatively new user of Python and currently exploring GIS. Trying to read a shape file with geopandas however I am getting: OSError: Could not find libspatialindex_c library file Using Python 3.7 normally, but since there are…
rldy
  • 11
  • 1
  • 3