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

Combine two shapes

I'd like to combine the country and the US states data into a single shape. fiona.open supports only one file for opening. Is there any way to combine many shapes into one and work with single collection?
pronebird
  • 12,068
  • 5
  • 54
  • 82
1
vote
0 answers

Data manipulation of geodatabase in Python 3

I have a large geodatabase (.gdb) file that I need to filter through using Python. I have Python 3.4 on my work machine. I tried using fiona to read the gdb and its layers. I keep getting the same error: gdb = fiona.open('GDB Path') Error…
1
vote
3 answers

basemap readshapefile error invalid literal for int()

I'm trying to process a shapefile in basemap by: shp = fiona.open('Wien_test2.shp') bds = shp.bounds shp.close() extra = 0.01 ll = (float(bds[0]), float(bds[1])) ur = (float(bds[2]), float(bds[3])) coords = list(chain(ll, ur)) w, h = coords[2] -…
fahrradlaus
  • 197
  • 1
  • 3
  • 13
1
vote
0 answers

issues with: pip install fiona

I have some issues to install fiona on ubuntu 14.04 I always get the error Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-b4ng2wm0/fiona/setup.py';f=getattr(tokenize, 'open',…
fahrradlaus
  • 197
  • 1
  • 3
  • 13
1
vote
0 answers

Using Python fiona read polygons

For now, I can use fiona to read one specific polygon and plot it like this: ## read the shapefile import fiona import shapely from shapely.geometry import shape c = fiona.open("xxx.shp") pol = c.next() geom = shape(pol['geometry']) poly_data =…
Han Zhengzu
  • 3,694
  • 7
  • 44
  • 94
1
vote
0 answers

How to transfer polyline shapefile into raster data using Python

Here is my question. I have a bunch of polyline shows like: http://i4.tietuku.com/bc378d1cd2c24142.png I want to generater raster data based on the polyline which contain the length of the line in one grid. For example: original…
Han Zhengzu
  • 3,694
  • 7
  • 44
  • 94
1
vote
1 answer

Installation of Fiona in Centos

This question is related to my previous two questions: Geospatial Analytics in Python Installing geopandas on Python 2.6 I got geopandas working by upgrading the whole system. I am having no luck with getting Fiona working, Below is the error I get…
GreenThumb
  • 483
  • 1
  • 7
  • 25
1
vote
1 answer

Fiona reading data

I have problems concerning reading data using geopandas , but it seems the error is due to fiona according to this post I tried to reinstall fiona to 1.1.6 version, but still it does not work.. import fiona with fiona.open('taz.shp') as src: …
DQ_happy
  • 505
  • 2
  • 6
  • 20
1
vote
1 answer

error installing fiona in OSX 10.9

I am having difficulty with installing fiona. I have followed fiona's official documentation ( https://github.com/sgillies/fiona) as well as the related thread below. trouble installing Fiona in python cpl_error.h: No such file or directory I had…
0
votes
0 answers

Matching correctly two polygons that come from different shapefiles

I am trying to match 2 polygons that come from two different shapefiles, The one with the borders (black line) and the one with blue color in the picture. . My main point is how I can match them correctly and avoid the exceeding areas that are…
Ash
  • 79
  • 1
  • 4
0
votes
1 answer

How to get lat/lon from shape files?

I am a newbie to geospatial data. I was wondering if there are any ways to extract lat/lon points from a shape file or a csv file(MULLTILINE) I have tried coding it using Geopy,Fiona etc to convert a government shape file to lat and lon but I am not…
0
votes
2 answers

'InvalidVersion' error returned when writting an ESRI shp file geopandas.GeoDataFrame.to_file

When writing my GeoDataFrame to file an issue with GDAL version encountered. My GeoDataFrame: geoPoliDF is (12,2): geoPoliDF pol_id pol_geometry 0 14 POLYGON ((9.000 0.000, 9.000 2.000, 10.000 2.0... 1 15 POLYGON ((9.000 3.000,…
estitxust
  • 3
  • 2
0
votes
1 answer

Kwarg argument initialized as "NoneType"

I have an object class that takes sidewalk data and parses it for a transportation model. At one point in the model, it uses a function of the sidewalk width and the pavement conditions to generate a score. This is relevant because the width and…
0
votes
0 answers

I am trying to read shape file from geopandas library using gpd.read_file() DriverError: not recognized as a supported file format. ERROR

DriverError: '/vsizip//vsimem/3a044273ad394c659206ed9154647032.zip' not recognized as a supported file format. I am trying to read shape file link which is on my github using gpd.read_file() but I got this error help me please DriverError:…
0
votes
0 answers

Having trouble creating a mask to plot coordinates on a map

I have been working on this dataset for a while now trying to plot some coordinates on a simple map of the US to create a density map. I easily created the map in Tableau, but I want to be able to make a similar map in Python. The following picture…