TransWikia.com

valuerror : Null Layer

Geographic Information Systems Asked on January 24, 2021

I am trying to open a geodatabase file and getting error message ValuError : Null Layer.
I am using geopandas.read_file.

import geopandas as gpd
gdp.read_file("AL_ALFL_conf_final.gdb") 

I get error Null Layer: u''

One Answer

You have a typo, .gpd should be .gdb and you probably need the full path to the file geodatabase.

You can also try specifying layer name:

import geopandas as gpd

df = gpd.read_file(r'/home/bera/Downloads/HI_Hawaii_slr_final_dist.gdb', layer='HI_Hawaii_low_0ft')

Answered by BERA on January 24, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP