POST
|
And no my code works fine, but by default the map seems to be set to WGS84 Regards, Jack Pearson Fremantle Technology / Go-Global Internet Solutions
... View more
07-14-2017
10:22 PM
|
0
|
1
|
572
|
POST
|
Thanks Melita, Long shot - Star pickets on mars ? No, sometimes we need to work with customer data which is on an arbitrary local project coordinate system and has not been tied in to an earth spatial ref. So we would be looking to open a map that accepts arbitrary rectangular 2d coords. Obviously we would expect to be able to project data on other coordinate systems into this map. Regards, Jack Pearson Fremantle Technology / Go-Global Internet Solutions
... View more
07-14-2017
10:20 PM
|
0
|
0
|
572
|
POST
|
Is there a known issue with performance of edit operations in V2 ? I'm adding thousands of points to a filegeodb Point feature class Using a EditOperation.Create() & MapPointBuilder.CreateMapPoint(). In v1.4 adding 3k points , the EditOp.ExecuteAsync() took 9 secs to execute, Same code in v2.0 is now taking 70 secs. Also, it now seems to scale poorly with larger datasets. So for a more realistic operation of 50k points is now taking 35 minutes ! Can anyone shed light on this ? is there a better way to be doing this ?
... View more
07-11-2017
11:07 PM
|
0
|
1
|
614
|
POST
|
I am importing a point featureclass, layer which are non-earth (e.g. local project coordinates) How would i create a map with non-earth coord system ? currently i'm using : Map map = null; await QueuedTask.Run(() => { map = MapFactory.Instance.CreateMap(mapName, MapType.Map, MapViewingMode.Map, Basemap.None); }); await ProApp.Panes.CreateMapPaneAsync(map);
... View more
07-10-2017
10:28 PM
|
0
|
4
|
1202
|
POST
|
Figured this out : List<object> argsList = new List<object>() { featureclassNameToDelete }; var args = Geoprocessing.MakeValueArray(argsList.ToArray()); var envs = Geoprocessing.MakeEnvironmentArray(workspace : gdbPath); IGPResult result = await Geoprocessing.ExecuteToolAsync("Delete_management", args, envs);
... View more
07-09-2017
11:32 PM
|
0
|
0
|
331
|
POST
|
Thanks Curtis - anyone seen a .net equivalent ? I couldn't find any docco/example. I imagine something like below, but I can't work out how to specify the geodb ? what is the equiv of py : arcpy.env.workspace = ... List<object> argsList = new List<object>() { featureclassNameToDelete }; var args = Geoprocessing.MakeValueArray(argsList.ToArray()); IGPResult result = await Geoprocessing.ExecuteToolAsync("Delete_management", args);
... View more
07-09-2017
06:19 PM
|
0
|
1
|
331
|
POST
|
I'm adding a feature class to file geodb using : GPExecuteToolFlags flags = GPExecuteToolFlags.None; IGPResult result = await Geoprocessing.ExecuteToolAsync("CreateFeatureclass_management", Geoprocessing.MakeValueArray(arguments.ToArray()),null,null,null, flags); Q1) : It still seems to also add to the current map - what flag do i need to set to prevent that ? Q2 ) How can i remove that feature class programmatically from the the geodb ? i cannot find any mention of something like Delete/RemoveFeatureclass_management Thanks.
... View more
07-08-2017
06:11 AM
|
0
|
3
|
705
|
POST
|
Hi Charles - Any idea if anyone at Esri can help me with this ?
... View more
07-07-2017
05:14 AM
|
0
|
0
|
790
|
POST
|
I'm sure this should be easy but i have not been able to find a solution / example : In my add-in I am bringing in and displaying a new XY point feature layer, with a well known spatial ref. If the project does not currently have an open map/mapview (eg if a new blank project) then i need to create one - how do i do that via API ?
... View more
07-06-2017
08:50 PM
|
0
|
1
|
714
|
POST
|
I am building an add-in for pro using pro sdk 2.0; The add-in reads a specific funky formatted file of point data, creates as point feature layer in local file gdb and symbolises as a feature layer according to metadata in source file; All working, but users complaining that it's pretty slow : (1k points taking over 40-50 secs on a reasonably powered development machine) So I want to check whether there is a better approach than this one that I am taking : 1) Using : Geoprocessing.ExecuteToolAsync("CreateFeatureclass_management"...) to create the new, empty feature layer Time taken : 13-15 secs 2) Add 6 fields to the schema using : Geoprocessing.ExecuteToolAsync("AddField_management", args); Time taken : 15+ secs 3) Add point features and populate attribute values for 1k points, 6 attributes Time taken : 2-5 secs 4) Apply unique value based Symbology Time taken : 2-4 secs The schema & symbology change with every import so template layers not a solution. Any ideas?
... View more
07-03-2017
08:28 AM
|
1
|
8
|
1371
|
POST
|
For a UniqueValueRendererfor point feature layer, I am creating classes using the following : var uniqueValueClass = new CIMUniqueValueClass { Values = uniqueValues.ToArray(), Label = compValue, Visible = true, Editable = true, Symbol = new CIMSymbolReference { Symbol = GetPointSymbol(symbolIndex, sizeVal,GetColor(colorIndex)) } }; and creating the symbols : private CIMPointSymbol GetPointSymbol(int symbolIndex, int sizeVal,CIMColor colour) { var shapeDef = GetEsriSymbolTable[symbolIndex]; var cimMarker = SymbolFactory.ConstructMarker(shapeDef.index, shapeDef.font, "Regular", sizeVal, colour); //create marker from the Font, char index,size,colour cimMarker.Rotation = shapeDef.rotation; var pointSymbol = SymbolFactory.ConstructPointSymbol(cimMarker); //create a symbol from the marker return pointSymbol; } The colour is being applied to the fill, but not to the shape outline. How can i set the colour for the outline ? GetEsriSymbolTable(symbolIndex) returns a tuple with font, character index and rotation ]
... View more
04-05-2017
01:01 AM
|
0
|
3
|
1410
|
POST
|
Thanks for taking the time to put that together Charles - it's certainly closer than i had got with the retail GUI. Here are my outstanding aspects of this : 1) I wished to set the shape by ranges of a numeric field (cu_ppm) So i used graduated symbols instead, and then went to vary by attribute : that works fine. 2) Now I go to set size by a text field (Sample Medium) , but I only get numeric fields offered when i click on the database icon, so i cannot do that; [you have used a numeric attribute (cu_ppm) but even then i cannot see how you would map ranges of cu_ppm to specific sizes ? i would be expecting a dialogue that allows for range and sizes?] 3) Now I go to set colour (and outline colour) by a text field (Regolith Unit) I only get offered text attributes from text fields, which in this case is fine, but I would need some of dialogue to set colour by text value of attribute. [Note that if i needed to colour by ranges of a numeric field would that not be possible? i can't see how you would do it] You are saying that if i set a hexadecimal colour value 4) I cannot see the changes i have made to size, colour reflected in the legend in arcgis pro legend pane, only the shape - is that a limitation ? 5) I notice the CIM viewer shows no code for this scenario; i can extract the xml for the renderer through code. But what would be far more helpful is some brief API example code of how to achieve this ? Thanks
... View more
04-04-2017
10:47 PM
|
0
|
1
|
1452
|
POST
|
[I have added a specific set of test data, screenshots] The attached csv data file contains point locations and various attributes. A fairly common use case would be where we wish to display the points coloured by the attribute "Regolith Unit", shape controlled by the attribute "Sample Medium" and marker size controlled by the attribute "Cu_ppm"; To do this in arcgis in the past the mechanism was to create a composite field that has the 3 attributes appended, and programmatically add all the permutations to a unique value renderer - see the screenshot This is not great - as you can see that legend (legend_combo.jpg) is pretty unweildy at 130 permutations, but could easily be many hundreds more than that. Since the attributes are unrelated, having a legend listing all of the combinations is not really of much use to the user; In the source software application, the data has been symbolised by each attribute seperately and that legend (legend_separate.jpg) is much more useful to the user (note for the size legend, an arbitrary shape is used) My understanding is that it is not possible in either the retail gui of arcgis pro, nor through the api to create symbology in this manner - is that correct ? If my understanding is incorrect, would you be able to explain to me how to accomplish this?
... View more
04-02-2017
10:30 PM
|
0
|
4
|
1452
|
Title | Kudos | Posted |
---|---|---|
1 | 07-03-2017 08:28 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|