New answers tagged python-2.7
No it is not possible to add "Folder Connections" using Arcpy. Folder Connections are stored in the ArcCatalog.gx file, which is typically located at c:\Users\*username*\AppData\Roaming\ESRI\*Desktopverion*\ArcCatalog\ArcCatalog.gx This is a binary file, so forget about editing it. The only thing you could possibly do is to create the Folder ...
I went with simply installing the manager pip-Win. It will install pip and virtualenv for you. Then it can identify your python installations (or you can browse to a specific python.exe to add more) and take care of all of your pip execution and package maintenance. https://sites.google.com/site/pydatalog/python/pip-for-windows Very important warning: ...
def changeValue(self,point,button): request = QgsFeatureRequest() self.dlg.lineEdit.setText(str(request)) self.dlg.show() Above function resulted to the string below in lineEdit Prashant
if rect is a Qgsrectangle centered in the point clicked on canvas, then the code is synthetically request = QgsFeatureRequest(rect) for feat in layer.getFeatures(request): <yout code> of the QgsFeature "feat"
The script will return an array of point objects for each part (returned by the GetPart method) for each record in the feature class. The number of points returned is not defined by any tolerance; the array will contain all the vertices that make up that polygon part. The only way to get more points would be to place them on the existing lines, which (if ...
I do not know how this will be done by script, but if you have a vector data and want it in a text file or in excel format then: Add layer in ArcMap Open attribute table Select all the features and from right click you select copy features and paste them in excel or word file.
The follow code should replace everything in your if block: if cLayer: for features in cLayer.getFeatures(): if feat.geometry().intersects(pntGeom): selectList.append(feat.id()) cLayer.setSelectedFeatures(selectList) The select method doesn't exist in any of the 2.0 version of QGIS. There is a select on the layer object ...
I think the problem is all in one line: lists=arcpy.arcpy.ListFeatureClasses(Wildcard,Feature_Type) should be: lists=arcpy.ListFeatureClasses(Wildcard,Feature_Type) or for quick testing try this first - just in case your variables are not being set properly yet lists=arcpy.ListFeatureClasses()
You want to set it to Table View. Feature Classes inherit from this interface. So setting the data type to Table View will allow you to see Feature Classes and standalone tables in the drop down.
Top 50 recent answers are included