[QGIS-trac] Re: [Quantum GIS] #1290: Shapefile attribute tables do
not show lines with null geometry
Quantum GIS
qgis at qgis.org
Sat Jul 18 10:18:42 EDT 2009
#1290: Shapefile attribute tables do not show lines with null geometry
-------------------------------------+--------------------------------------
Reporter: gabrimonfa | Owner: nobody
Type: bug | Status: new
Priority: minor: annoyance | Milestone: Version 1.0.3
Component: Data Provider | Version: HEAD
Resolution: | Keywords: shapefile, null geometry
Platform_version: | Platform: Unix
Must_fix: No | Status_info: 0
-------------------------------------+--------------------------------------
Comment (by gabrimonfa):
I've added a crude patch to try to solve the problem.
(Is this the correct way to provide a possible patch?)
The idea is simple, to fetch only the attributes of the null-geometry row
and to mark the feature as not valid to prevent problem with
rasterization.
Obviously I don't know if setting mFetchFeaturesWithoutGeom( TRUE ) in
qgsvectordataprovider.cpp is a good idea, maybe better solutions are
possible that affects only the ogr provider.
The patch works with my test shapefiles.
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1290#comment:9>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list