Project

General

Profile

Bug #7946

Fiona/Geopackage: cannot export layers with some fields (date)

Added by Philippe May over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
21/03/2019
Due date:
% Done:

0%

Close

Description

Issue reported by Dorian, as the title says.

Follows technical notes that can be skipped for users:

  1. Generation of a dataframe from a layer (in models_base_base.Model.get_df) doesn't cast properly some model attributes (column types). It's simple to fix, but this triggers a bug, see below.
  1. Geopandas is still in development, and there's a bug still open: https://github.com/geopandas/geopandas/issues/196 .

I could probably fix that in the code, but i think it's better waiting for the bug to be fixed.

Associated revisions

Revision 59859617 (diff)
Added by Philippe May over 5 years ago

Refs #7946: use better types in dataframe returned by model's get_df

Revision 05052f21 (diff)
Added by Philippe May over 5 years ago

Refs #7946: fix issue when getting a dataframe, in a workaround dealing with missing information in a record

History

#1 Updated by Philippe May over 5 years ago

  • Description updated (diff)

#2 Updated by Philippe May over 5 years ago

Found that the data types of the dataframe generated from the layers can be set more carefully, and geopandas/fiona can afterwards work OK.

@Dorian: i'll install the fix tomorrow in production.

#3 Updated by Philippe May over 5 years ago

  • Status changed from In Progress to Resolved

#4 Updated by Philippe May over 5 years ago

  • Status changed from Resolved to Closed

Should be fixed.

Also available in: Atom PDF