POST
|
Wolf, Thank you very much for the directions. Now I use the GeoProcessing API call to create the feature class and after locating it in the map's layer collection I can move it under the group layer I previously created (I will handle possible duplicates): // Find the new layer in the root folder of the map.
Layer newLayer = activeMap.Layers.First((layer) => layer.Name == layerName);
// ... check for errors.
// Move the new layer to the group Layer.
await QueuedTask.Run(() => groupLayer.MoveLayer(newLayer, 0));
Now I have the feature class element under my group layer and it is exactly what I need at the moment. Zoltan
... View more
02-15-2018
11:17 AM
|
0
|
0
|
1060
|
POST
|
I am sorry for the previous confusion, let me try to go into more details. I am trying to create a group layer and feature layers under the group layer. The source of the data is an outside source and the data is streamed into the plugin implementation through some TCP/IP based protocol. I have all the information (like XYZ) to create (for example) point features in a new, customized feature layer. When doing the same in ArcMap and in the old ESRi API we: 1. Created a new feature layer: IFeatureLayer newLayer = new FeatureLayerClass(); 2. Created a new feature class and built up the field information IFeatureClass newClass = .... using esriGeometryType.esriGeometryPoint, 3. Set the feature class on the new layer. newLayer.FeatureClass = newClass; newLayer.Name = ...; newLayer.Visible = true; 4. Added it to the previously created group layer. groupLayer.Add(newLayer); I am trying to replicate the same logic using the new ArcGIS Pro SDK and I'm having trouble getting the same result. Zoltan
... View more
02-14-2018
05:38 PM
|
0
|
2
|
1681
|
POST
|
I am relatively new to the native FileGDB API. We are trying to replace an ArcObject based module to use the FileGDB API when reading and writing File Geodatabases. We store some private metadata on feature datasets using the idinfo/descript/abstract on the property set: IPropertySet properties = metadata.getMetadata(); properties.setProperty("idinfo/descript/abstract", xml); metadata.setMetadata(properties); When reading an existing FileGeoDB the native API provides FileGDBAPI::Geodatabase::GetDatasetDocumentation to retrieve the entire metadata segment of the feature dataset. However, I don't find any way of setting this information on new or existing feature datasets. When adding the metadata to the XML specification of the FDS it gets rejected with some general data error. Has anybody run into the same problem? Is there a solution other than storing the metadata in a separate file?
... View more
09-29-2017
08:47 AM
|
0
|
0
|
177
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|