@@ -829,33 +829,33 @@ def checkGeometryFields( self, vlayer ):
829
829
plp = "Poly"
830
830
( found , index1 ) = self .checkForField ( nameList , "AREA" )
831
831
if not found :
832
- field = QgsField ( "AREA" , QVariant .Double , "double" , 10 , 6 , self .tr ("Polygon area" ) )
832
+ field = QgsField ( "AREA" , QVariant .Double , "double" , 21 , 6 , self .tr ("Polygon area" ) )
833
833
index1 = len ( fieldList .keys () )
834
834
fieldList [ index1 ] = field
835
835
( found , index2 ) = self .checkForField ( nameList , "PERIMETER" )
836
836
837
837
if not found :
838
- field = QgsField ( "PERIMETER" , QVariant .Double , "double" , 10 , 6 , self .tr ("Polygon perimeter" ) )
838
+ field = QgsField ( "PERIMETER" , QVariant .Double , "double" , 21 , 6 , self .tr ("Polygon perimeter" ) )
839
839
index2 = len ( fieldList .keys () )
840
840
fieldList [ index2 ] = field
841
841
elif geomType == QGis .Line :
842
842
plp = "Line"
843
843
(found , index1 ) = self .checkForField (nameList , "LENGTH" )
844
844
if not found :
845
- field = QgsField ("LENGTH" , QVariant .Double , "double" , 10 , 6 , self .tr ("Line length" ) )
845
+ field = QgsField ("LENGTH" , QVariant .Double , "double" , 21 , 6 , self .tr ("Line length" ) )
846
846
index1 = len (fieldList .keys ())
847
847
fieldList [index1 ] = field
848
848
index2 = index1
849
849
else :
850
850
plp = "Point"
851
851
(found , index1 ) = self .checkForField (nameList , "XCOORD" )
852
852
if not found :
853
- field = QgsField ("XCOORD" , QVariant .Double , "double" , 10 , 6 , self .tr ("Point x coordinate" ) )
853
+ field = QgsField ("XCOORD" , QVariant .Double , "double" , 21 , 6 , self .tr ("Point x coordinate" ) )
854
854
index1 = len (fieldList .keys ())
855
855
fieldList [index1 ] = field
856
856
(found , index2 ) = self .checkForField (nameList , "YCOORD" )
857
857
if not found :
858
- field = QgsField ("YCOORD" , QVariant .Double , "double" , 10 , 6 , self .tr ("Point y coordinate" ) )
858
+ field = QgsField ("YCOORD" , QVariant .Double , "double" , 21 , 6 , self .tr ("Point y coordinate" ) )
859
859
index2 = len (fieldList .keys ())
860
860
fieldList [index2 ] = field
861
861
return (fieldList , index1 , index2 )
0 commit comments