POST
|
My project was created today in the current version, it has nothing but a point layer and basemap.
... View more
12-14-2018
11:32 AM
|
0
|
0
|
840
|
POST
|
Same issue here, only my legend items are stuck on the right and I can't align them to the left
... View more
12-14-2018
10:32 AM
|
0
|
12
|
3228
|
POST
|
This is a point feature class in a FGDB. I'm adding them through the chained edit operation below: long newFeatureID = -1;//temporarily holds ObjID of a new point
var createOperation = new EditOperation { Name = "REGEN POINTS" };
var atts = new Dictionary<string, object>();
//create the points now
for (int x = (int)minX; x < maxX; x += sampleDist) {
for (int y = (int)minY; y < maxY; y += sampleDist) {
//first check if point is even within polygon
MapPoint pt = MapPointBuilder.CreateMapPoint(x, y);
if (EdgeBuffer != 0 ? !GeometryEngine.Instance.Contains(blockpolygon, GeometryEngine.Instance.Buffer(pt, EdgeBuffer)) :
!GeometryEngine.Instance.Contains(blockpolygon, pt))
continue;
// point IS in polygon, keep going
atts.Clear();
createOperation = createOperation.CreateChainedOperation();
atts.Add("Shape", pt);
atts.Add("P_ID", counter_pid);
newFeatureID = -1;
createOperation.Create(SelectedPointFeatureLayer, atts, (object_id) => newFeatureID = object_id);
createOperation.Execute();
}
}
... View more
09-14-2018
09:30 AM
|
0
|
1
|
724
|
POST
|
I'm working with a basic polygon and point feature class in the same FGDB in the most recent ArcPro 2.2. Each polygon contains points in a grid, but for some reason when I delete points and recreate them I can't see the changes. The changes ARE being applied to the featureclass, but it will not visually update. I can even select the points where they've been created (but invisible). Refreshing the map with F5 doesn't help, nor does clearing the cache in the point layer. I'm also using MapView.Active.Redraw(true); but again no luck. surely there's a way of force updating the layer?
... View more
09-14-2018
08:40 AM
|
0
|
3
|
961
|
POST
|
What would be the easiest way to play around with scales (say if you wanted smaller scale for higher detail)?
... View more
01-23-2018
09:58 AM
|
0
|
0
|
2572
|
POST
|
Is there a way to determine when the map is finished rendering? there was a post in 2015 saying it was coming out soon, but I can't find any mention of it in the API reference or any kind of search
... View more
01-23-2018
09:23 AM
|
0
|
2
|
945
|
POST
|
Hello, I was wondering how I could upload and share a map (as a webmap) with a group through ArcPro SDK. The same functionality as the Sharing>Web Map panel that comes with ArcPro. There are some snippets of getting things from online, but none about sharing them There is also some Community samples however they only show how to upload non-map items, and do not share. Any help would be appreciated Thanks!
... View more
11-29-2017
11:26 AM
|
0
|
0
|
204
|
POST
|
To paste code snippets go to the 3 dots Expand > More > Syntax Highlighter, set language and paste
... View more
11-22-2017
11:24 AM
|
0
|
1
|
810
|
POST
|
This is what I use in my code: var createOperation = new ArcGIS.Desktop.Editing.EditOperation { Name = "Chained operation" }; .. start loop.. createOperation = createOperation.CreateChainedOperation(); createOperation.Create( ... ); // or modify, same thing createOperation.Execute(); .. end loop
... View more
11-22-2017
08:54 AM
|
2
|
2
|
810
|
POST
|
I believe you want to be .Execute() -ing after each iteration, not at the end. You're modifiying the edit operation, but not the actual attribute table (execute does that). So if you're looking for changes in the attribute table none have yet been made. And if you want all changes to be on the same undo stack, you can chain the operations i.e. editOperation = editOperation.CreateChainedOperation(); at the beginning of the loop Also note that using .Execute doesn't actually save the changes, so they can still be undone.
... View more
11-22-2017
07:59 AM
|
0
|
4
|
810
|
POST
|
Thanks Charles, that makes the symbol fill transparent. How can I group unique values together so that they share symbology?
... View more
11-09-2017
11:13 AM
|
0
|
1
|
401
|
POST
|
Hello, My goal is to achieve this: However what I'm currently getting is this: The issue is that I cannot find any information on how to apply unique value classes into the render. Currently I'm just making a ramp and applying it, but that doesnt group values and includes <all other values> (of which there are none). CIMUniqueValueClass[] landcoverClasses = new CIMUniqueValueClass[] {
new CIMUniqueValueClass { Values = new []{new CIMUniqueValue { FieldValues = new []{ "0" } } }, Label = "Cleared" },
new CIMUniqueValueClass { Values = new []{new CIMUniqueValue { FieldValues = new []{ "1" } } }, Label = "Low Vegetation" },
new CIMUniqueValueClass { Values = new []{new CIMUniqueValue { FieldValues = new []{ "2", "3" } } }, Label = "River, Waterway" },
new CIMUniqueValueClass { Values = new []{new CIMUniqueValue { FieldValues = new []{ "1" } } }, Label = "Forested" },
new CIMUniqueValueClass { Values = new []{new CIMUniqueValue { FieldValues = new []{ "2" } } }, Label = "Road" },
new CIMUniqueValueClass { Values = new []{new CIMUniqueValue { FieldValues = new []{ "1" } } }, Label = "Medium Vegetation" },
new CIMUniqueValueClass { Values = new []{new CIMUniqueValue { FieldValues = new []{ "2" } } }, Label = "Swamp" },
};
....
var colorRamp = new CIMFixedColorRamp();
var colors = new List<CIMColor>();
foreach (var cls in landcoverClasses)
switch (cls.Label) {
case "Cleared": //0
colors.Add(CIMColor.CreateRGBColor(255, 0, 0)); break;
case "Low Vegetation": //1
colors.Add(CIMColor.CreateRGBColor(76, 230, 0)); break;
case "River, Waterway": //2,3
colors.Add(CIMColor.CreateRGBColor(0, 92, 230)); break;
case "Forested": //4
colors.Add(CIMColor.CreateRGBColor(255, 170, 0)); break;
case "Road": // 5
colors.Add(CIMColor.CreateRGBColor(110, 110, 110)); break;
case "Medium Vegetation": //6
colors.Add(CIMColor.CreateRGBColor(0, 115, 76)); break;
case "Swamp": //7
colors.Add(CIMColor.CreateRGBColor(115, 223, 255)); break;
default:
colors.Add(CIMColor.CreateGrayColor(130, 100)); break;
}
colorRamp.Colors = colors.ToArray();
UniqueValueRendererDefinition uvr =
new UniqueValueRendererDefinition() {
ValueFields = new string[] { "LANDCOVERTYPE" },
ColorRamp = colorRamp
};
var cimRenderer = featureLayer.CreateRenderer(uvr);
featureLayer.SetRenderer(cimRenderer);
Any help would be appreciated. Thank you.
... View more
11-09-2017
08:31 AM
|
0
|
3
|
638
|
POST
|
I think it's because the raster is very large. I will test some things out though, thank you!
... View more
10-06-2017
06:39 AM
|
0
|
0
|
1922
|
POST
|
Thanks for the suggestion, unfortunately the tool becomes unresponsive after hitting Geoprocessing.MakeValueArray(raster, "MIN");
... View more
10-06-2017
06:20 AM
|
0
|
2
|
1922
|
Title | Kudos | Posted |
---|---|---|
1 | 09-15-2017 08:47 AM | |
1 | 09-06-2017 11:15 AM | |
2 | 11-22-2017 08:54 AM | |
10 | 09-06-2017 08:55 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|