Quantcast
Channel: Forum SIG - Systèmes d'Information Géographique et Géomatique
Viewing all articles
Browse latest Browse all 8030

[ArcGIS 10.x] Query search arcpy

$
0
0
Code:

import arcpy
fc = "C:/arcgisserver/ArcGIS/projet/base.mdb/table"
# Create a search cursor using an SQL expression
#
id_n1 = str(3590)
id = str(60)
rows = arcpy.SearchCursor(fc, "[id_n2]="+id_n1)
for row in rows:
    print row.id_n1

bonjour,
voici une partie de mon code mais si je veux que l’expression de condition soit avec un and
comme par exemple: "[id_n2]="+id_n1 and "[ID]="+id
Merci

Viewing all articles
Browse latest Browse all 8030

Trending Articles