New answers tagged syntax
1
vote
Syntax Error when creating a loop for feature class conversion
Replace
if fc not '82I_TWP.shp':
with
if fc != '82I_TWP.shp':
(or fc != '82I_TWP, Im not sure if ListFeatureClasses includes the file prefix or not).
And indentate the line after one level.
!= is the &...
Top 50 recent answers are included
Related Tags
syntax × 107qgis × 28
arcpy × 18
arcgis-desktop × 17
field-calculator × 14
python × 12
raster-calculator × 10
expression × 10
postgis × 9
raster × 7
sql × 7
postgresql × 5
python-parser × 5
pyqgis × 4
openstreetmap × 4
arcgis-pro × 4
error × 4
coordinate-system × 3
gdal × 3
modelbuilder × 3
spatial-analyst × 3
geocoding × 3
query × 3
well-known-text × 3
arcgis-maps-sdk-javascript × 3