POST
|
No Poly is a another layer. I experimented a lot with layers. Why Select By Location doesn't work in Python console ? By the way in ArcGIS Help we read: poly = arcpy.Polygon(arcpy.Array([p1, p2, p3, p4]))
arcpy.SelectLayerByLocation_management("Qolyr", "WITHIN", poly) Qolyr is a point object layer. So arcpy.Polygon is feature class, right ? Is everything OK with this code snippet ? Thanks for your attention !
... View more
09-14-2018
11:38 PM
|
0
|
1
|
1068
|
POST
|
I've tried, but the same error: >>> arcpy.MakeFeatureLayer_management(r"Project\project.DBO.Qo", "Qolyr")
<Result 'Qolyr'>
>>> arcpy.MakeFeatureLayer_management(r"Project\project.DBO.Poly", "Polylyr")
<Result 'Polylyr'>
>>>
>>> arcpy.SelectLayerByLocation_management("Qolyr", "WITHIN", "Polylyr")
Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py", line 7279, in SelectLayerByLocation raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000840: The value is not a Boolean. Failed to execute (SelectLayerByLocation).
... View more
09-14-2018
05:34 AM
|
0
|
0
|
1068
|
POST
|
I use ArcGIS 10.3 I have two layers : Project\project.DBO.Qo and Project\project.DBO.Poly. I want to select Project\project.DBO.Qo objects. I got this error in Python Console: print arcpy.Describe(r"Project\project.DBO.Qo").shapeType
Point
print arcpy.Describe(r"Project\project.DBO.Poly").shapeType
Polygon
arcpy.SelectLayerByLocation_management(r"Project\project.DBO.Qo", "WITHIN", r"Project\project.DBO.Poly")
Runtime error Traceback (most recent call last):
File "<string>", line 1, in <module> File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py", line 7279, in SelectLayerByLocation raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000840: The value is not a Boolean. Failed to execute (SelectLayerByLocation). But Select By Location... in graphical user interface of ArcGIS works fine with the same layers.
... View more
09-14-2018
04:34 AM
|
0
|
6
|
1759
|
POST
|
Yes I mean selected object. SearchCursor is a last step to retrieve object info. But I cannot go any farther, I'm stuck at the beginning. I think that I clearly described the problem at the very beginning.
... View more
09-13-2018
03:46 AM
|
0
|
0
|
595
|
POST
|
I want to retrieve all field-value pairs of clicked objects and send this information to another program, doesn't matters which program at this point. If this cannot be done with Python which language I can use instead ? I choose Python because I am familiar with it.
... View more
09-03-2018
06:49 AM
|
0
|
2
|
595
|
POST
|
I want to get last clicked geometric object detailed properties: Field-Value pair from particular layer where this specific object resides using python. In this case I clicked on the triangle with name 45040001. I am new in ArcGIS. There is a lot of videos and info available on the web, so I need a direction to dig. I want to do this in short period of time. Thanks !
... View more
09-03-2018
02:58 AM
|
0
|
5
|
722
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|