Skip to content
Permalink
Browse files

temporary hack to get half working shp suport. opening of a file work…

…s, writing only if there are no string type attributes.
  • Loading branch information
mbernasocchi committed Aug 23, 2011
1 parent 096808e commit 5cba1250fd0e9240bc79c28674c2f18bcc513d97
Showing with 12 additions and 2 deletions.
  1. +12 −2 src/providers/ogr/qgsogrprovider.cpp
@@ -413,8 +413,18 @@ void QgsOgrProvider::loadFields()

mAttributeFields.insert(
i, QgsField(
mEncoding->toUnicode( OGR_Fld_GetNameRef( fldDef ) ), varType,
mEncoding->toUnicode( OGR_GetFieldTypeName( ogrType ) ),
//TODO: fix this hack
#ifdef ANDROID
OGR_Fld_GetNameRef( fldDef ),
#else
mEncoding->toUnicode( OGR_Fld_GetNameRef( fldDef ) ),
#endif
varType,
#ifdef ANDROID
OGR_GetFieldTypeName( ogrType ),
#else
mEncoding->toUnicode( OGR_GetFieldTypeName( ogrType ) ),
#endif
OGR_Fld_GetWidth( fldDef ),
OGR_Fld_GetPrecision( fldDef ) ) );
}

0 comments on commit 5cba125

Please sign in to comment.
You can’t perform that action at this time.