Bug report #15065

Failed detection of geometry type in some conditions

Added by Even Rouault almost 8 years ago. Updated almost 8 years ago.

Status:Closed
Priority:Normal
Assignee:Even Rouault
Category:Data Provider/OGR
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:23008

Description

When a OGR layer is of geometry type "unknown", we use the geometry of the first feature to guess the geometry type. But if this feature has no geometry, then we assume that we have no geometry for the whole layer. This is a bit extreme. Let us allow to probe a few features before giving up.

Associated revisions

Revision 3b65568c
Added by Even Rouault almost 8 years ago

[OGR provider] Improve detection of layer geometry type

When a OGR layer is of geometry type "unknown", we use the
geometry of the first feature to guess the geometry type. But
if this feature has no geometry, then we assume that we have no
geometry for the whole layer. This is a bit extreme. Let us
allow to probe a few features before giving up.

Fixes #15065

History

#1 Updated by Even Rouault almost 8 years ago

  • Status changed from Open to Closed

#2 Updated by Even Rouault almost 8 years ago

  • Target version set to Version 2.16
  • Status changed from Closed to In Progress

#3 Updated by Even Rouault almost 8 years ago

  • Resolution set to fixed/implemented
  • % Done changed from 0 to 100

#4 Updated by Even Rouault almost 8 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF