question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to load GeoDataFrame from geodatabase file

See original GitHub issue

I am getting a strange timeout error when trying to load a geodatabase file using geopandas (version 0.2.1) inside a Docker container (image has Ubuntu 16.04 LTS, Python version 2.7.13.

In [1]: import geopandas
In [2]: import os
In [3]: polys = geopandas.GeoDataFrame.from_file(os.path.join('/my/data/folder/', 'VRG_01.gdb'), layer='VRG')
Killed
root@75d68acd876e:#

I see the Killed message on the console about 5-6 minutes after the geopandas.GeoDataFrame.from_file() call.

Previously this used to work, and there is nothing wrong with the underlying data file. I’ve tried upgrading geopandas to 0.3.0, which is the latest on PyPi, and also Ubuntu (to 17.04), but I have the same problem.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mluckcommented, Dec 28, 2020

The Killed message is a Docker out-of-memory error. I have gotten this with large files using geopandas .read_file() and .to_crs(). But if I increase the memory allocated to Docker some of the Killed messages can be avoided.

0reactions
jorisvandenbosschecommented, Feb 4, 2018

OK, good to know!

Read more comments on GitHub >

github_iconTop Results From Across the Web

not able to read all rows from geodataframe of GDB
I'm trying to read the geodatabase file using geopandas. I'm able to read it but it only taking 10 rows in GeoDataFrame. In...
Read more >
Reading and Writing Files - GeoPandas
GeoDataFrames can be exported to many different standard formats using the geopandas.GeoDataFrame.to_file() method. For a full list of supported formats, type ...
Read more >
Geopandas: Write layer back into GeoDataBase
BUT I have no idea or if it is possible to write that geodataframe back into the GeoDataBase? I tried: read_shp.to_file(GDB_file, layer= ...
Read more >
Python API: TypeError on geometry column for Spati...
I have tried this on point, line and multipolygon shapefiles, and file GDB feature classes. All locally loaded data eventually returns this ...
Read more >
Data in/out: Preparing GeoDataFrames from spatial data
import geopandas as gpd # Read file from Shapefile fp ... Read file from File Geodatabase fp = "data/finland.gdb" data = gpd.read_file(fp, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found