Skip to content

Commit

Permalink
changing fieldnames from xmin to x_min
Browse files Browse the repository at this point in the history
xmin and ymin are resevered fieldnames in Postgis, so better not
use these field names. Because this makes it impossible to create
a vector grid and transfer it to Postgis
  • Loading branch information
rduivenvoorde committed Jan 23, 2015
1 parent 1c71799 commit b1b3614
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/fTools/tools/doVectorGrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ def compute( self, bound, xOffset, yOffset, polygon ):
fieldCount = 1

if polygon:
fields.append( QgsField("XMIN", QVariant.Double) )
fields.append( QgsField("XMAX", QVariant.Double) )
fields.append( QgsField("YMIN", QVariant.Double) )
fields.append( QgsField("YMAX", QVariant.Double) )
fields.append( QgsField("X_MIN", QVariant.Double) )
fields.append( QgsField("X_MAX", QVariant.Double) )
fields.append( QgsField("Y_MIN", QVariant.Double) )
fields.append( QgsField("Y_MAX", QVariant.Double) )
fieldCount = 5
check = QFile(self.shapefileName)
if check.exists():
Expand Down

0 comments on commit b1b3614

Please sign in to comment.