Looking to convert this Arcpy script to pyQGIS. I sure Hope pyGIS has an user input that works outside the command line.
# make custom button to search Parcels by Parcel Number# and zoom to selected parcelmxd = arcpy.mapping.MapDocument("CURRENT")df = arcpy.mapping.ListDataFrames(mxd, "Layers") [0]input_PIN = raw_input('Enter your value :')sql_exp = """"PIN" = '""" + input_PIN + "'"Llayer = arcpy.mapping.Layer(r"C:\common\Gene\Parcels.shp")Llayer.definitionQuery = sql_exparcpy.mapping.AddLayer(df, Llayer)dfNEWextent = Llayer.getExtent()df.extent = dfNEWextent
أكثر...
# make custom button to search Parcels by Parcel Number# and zoom to selected parcelmxd = arcpy.mapping.MapDocument("CURRENT")df = arcpy.mapping.ListDataFrames(mxd, "Layers") [0]input_PIN = raw_input('Enter your value :')sql_exp = """"PIN" = '""" + input_PIN + "'"Llayer = arcpy.mapping.Layer(r"C:\common\Gene\Parcels.shp")Llayer.definitionQuery = sql_exparcpy.mapping.AddLayer(df, Llayer)dfNEWextent = Llayer.getExtent()df.extent = dfNEWextent
أكثر...