Closed jesselangdon closed 7 years ago
See discussion at Nathan Woodrow's blog.
NULL values are now converted into 'None' values when importing a shapefile to a multidigraph. See commit #https://github.com/SouthForkResearch/pyGNAT/commit/d66162c7aab4b59b0afc1c60aea24bc5d5f10ae3
Empty attribute values are converted into a special
NULL
value called QPyNullVariant when importing a shapefile as a QgsVectorLayer. When the QgsVectorLayer is converted into a MultiDiGraph, theNULL
values are retained in the attribute dictionary. Then, when writing the graph back out to a shapefile, OGR returns an error, because it doesn't know what to do withNULL
values, and expectsNone
instead.