Tag Info

New answers tagged

0

I don't think this is possible. Certainly not with shapefiles. The IFieldEdit documentation itself states: The IFieldEdit interface is used when creating new fields. You should not use it to modify fields, for that purpose use IClassSchemaEdit. and the Editable property in both IFieldEdit and IFieldEdit2 (which superceded it) both state (emphasis ...


1

I finally found also an R-solution for my problem. The rgeos package offers the get.pts function which allows to extract the number of vertices. As we have learned from the first comments, the number of edges is equal to the number of vertices - 1. Programming a solution for my task in R seems now much easier.


2

Try using ... set rows = arcpy.UpdateCursor("qcPoints") instead of setting rows to qcPoints_lyr. You should be able to do away with the Append that way. I thought that might work and it sounds like you confirmed it. MakeFeatureLayer is needed for doing selections but you don't need to set your updateCursor to the output.


1

Looks like you want to listen for attribute window events. Seems you can access them from this interface: iAttributeWindowEvents There is an 'onDeactivate' event that you'll want to listen for to trigger your next section of code. There should be plenty of code samples around showing how to listen for events in ArcObjects.net.


0

If I understand correctly, each of the input shapefiles consists of only one land use type. If that's the case, here's what I would suggest: Use the Merge tool three times to merge all of the A, B and C input shapefiles into three new shapefiles, each containing all polygons of a single land use type. On each of the merged shapefiles, run the Dissolve tool ...


5

With Python and Fiona, Polygons and MutiPolygons (multi-parts) are different geometries: 1) multi-parts geometries import fiona shape = fiona.open("polygons.shp") # shapefile schema print c.schema {'geometry': 'Polygon', 'properties': OrderedDict([(u'id', 'int:10')])} # first feature first = shape.next() print first (GeoJSON format) {'geometry': ...


5

In QGIS if your polygons do not have any holes or multi-parts: l = iface.activeLayer() for f in l.getFeatures(): print f['NAME'] print 'no. edges: %d' %(len(f.geometry().asPolygon()[0])-1) replace 'NAME' with some identifier in your layer attribute table. Concerning writing to the attribute table check the instructions in the PyQGIS Cookbook - ...


3

Stopping users from adding invalid values is really the task of a Geodatabase domain. Shapefiles do not support domains. I would strongly suggest you explore these options first as they can be set through ArcMap or ArcCatalog and do not require any programming with ArcObjects. It's also good Geodatabase design if you assign domains to fields. But you do not ...


0

You can try to explore the GEOPDF function within ArcGIS. You can access the functionality by Selecting File>Export then select "PDF" as your Save As Type. Click the Advanced Tab and select "Export PDF Layers and Feature Attributes". See Image below for presets. In order to access the content in the PDF: First you will need to open the area that the ...



Top 50 recent answers are included