Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions csdr/cli_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,6 @@ def convert_zipfile_to_parquet(
zip_bytes.seek(0) # Ensure pointer is at start

with ZipMemoryFile(zip_bytes) as z:
files_in_zip = z.listdir()
logger.info(f"Files in zip: {files_in_zip}")
logger.info(f"Requested internal path: {source_internal_path_name}")
if source_internal_path_name not in files_in_zip:
raise CSDRException(
f"Internal path {source_internal_path_name} not found in zip file."
)
# Open the shapefile within the ZIP
with z.open(source_internal_path_name) as src:
gdf = gpd.GeoDataFrame.from_features(src, crs=src.crs)
Expand Down
Loading