Hello,
I have two features class (multipolygon and multiline) with ST_GEOMETRY format in a 9.3 geodatabase.
How to detect features that contains arcs using sde ?
OK, I will try using ArcObjects and ComTypes.
But how to test an ArcObject IGeometry (polyline or polygon) contains arcs ?
I didn't realize your client was also stuck back at 9.3.x. Do you have access to a newer client that can connect to the 9.3 geodatabase?
If you have to stick with ArcGIS 9.3.1 as a client, I will have to think about options. It may be you could use comtypes or a similar package to access ArcObjects directly from Python.
I'm under ArcGIS 9.3.1, so I tried using ArcgisScripting.
But Geometry object seems not to have ".JSON" property.
I am not sure of an SQL-based approach, but you can use an ArcPy search cursor:
fc <SPAN class="operator token">=</SPAN> <SPAN class="comment token"># path to feature class</SPAN> <SPAN class="keyword token">with</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>da<SPAN class="punctuation token">.</SPAN>SearchCursor<SPAN class="punctuation token">(</SPAN>fc<SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="string token">"OID@"</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">"SHAPE@"</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">as</SPAN> cur<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">for</SPAN> oid<SPAN class="punctuation token">,</SPAN> shape <SPAN class="keyword token">in</SPAN> cur<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">if</SPAN> <SPAN class="string token">"curve"</SPAN> <SPAN class="keyword token">in</SPAN> shape<SPAN class="punctuation token">.</SPAN>JSON<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">print</SPAN> oid<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.