Skip to content
Browse files
Fix for bug #60 digitizing shapefile: REAL values are not stored prop…

git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed May 15, 2006
1 parent 1d63b58 commit 03ff4b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
@@ -1587,7 +1587,7 @@ bool QgsVectorLayer::addFeature(QgsFeature* f, bool alsoUpdateExtent)

//set the endian properly
int end=endian();
memcpy(f->getGeometry(),&end,1);//todo: also add endian information properly for multipoint,-line,-polygon

//assign a temporary id to the feature (use negative numbers)
@@ -1526,6 +1526,8 @@ const std::list<std::pair<QString, QString> >& attributes)
if(it->second == "Real")
OGRFieldDefn field(it->first, OFTReal);
if(layer->CreateField(&field) != OGRERR_NONE)
QgsLogger::warning("creation of OFTReal field failed");

0 comments on commit 03ff4b9

Please sign in to comment.