Tag Info

New answers tagged

0

Your question isn't clear. Do you want the user to be able choose the style? The style must depend on something (an attribute, area, size...) Anyway you should listen to the layer using the change event: change Triggered when the id, the geometry or the style of the feature changes.event: cf ol3 doc then catch the last added feature and apply the ...


3

One of multiple solutions. Create points inside polygon, fishnet will do. Add vertices of polygons to this set. Create TIN. Export tin triangles and clip them: Updated answer on points creation. Script below works from ArcGIS and takes 3 parameters: Layer in TOC. Used to define extent. Distance between points, type double Points layer (empty) import ...


0

Came across this recently. This has solved the issue of deleting all of the features in a .sde connection. If you only want to clear specific features, you can use .remove() on the featureClasses list, or create your own list. arcpy.env.workspace = r'path to sde connection of the sde database' featureClasses = arcpy.ListFeatureClasses() for fc in ...


1

To squeeze out every little bit of your code, you should get rid of the main bottleneck, plus lower the redundancy, like here. The code can run under 200ms, which is very good compared to the original 500ms runtime. The main bottleneck is in the createCircle function. If you don't need every point to be present in a separate layer, you should pull the layer ...



Top 50 recent answers are included