|
POST
|
Why are bi-directional dual terminals assigned to emergency valves in the Gas asset package? That creates connectivity errors on data loading, and a big pain in the butt assigning the connections, when it doesn't really matter which is connected to what.
... View more
10-04-2018
09:11 AM
|
0
|
2
|
1155
|
|
BLOG
|
Just for grins, I thought I would compare performance across the newer SDKs (Pro, Enterprise, and Runtime) to see how they compare to ArcObjects and arcpy. As a benchmark, I chose a purely computational task: generate 100,000 random convex hulls (initialization times are excluded). For Desktop environments, the results are as follows: SDK Execution Time (seconds) ArcObjects/.NET 577 Pro SDK 529 arcpy (Desktop 32-bit)* 516 arcpy (Pro 64-bit) 164 ArcObjects/C++ 47 Runtime .NET 16 *Running as a tool in a Python toolbox; running at the Python prompt takes 635 seconds! Reworking the results into a performance index is telling: As you can see, Runtime .NET is the grand champion performer. ArcObjects/C++ is roughly a third as fast. And even though it's somewhat faster than ArcObjects/.NET, Pro SDK still drags its feet at 9% the speed of ArcObjects/C++, and 3% the speed of Runtime .NET. On the server side, the results are as follows: SDK Execution Time (seconds) arcpy (as a GP service) 419 ArcObjects/.NET SOE 160 Enterprise SDK SOE 147 ArcObjects/C++ SOE 10 And as a performance index: Enterprise SDK is again slightly faster than ArcObjects/.NET, but only has 7% the speed of ArcObjects/C++. So why do the Pro and Enterprise SDKs perform so poorly? Looking under the hood reveals some clues. On the Pro side, the giveaway is the [STAThread] attribute: This indicates that the Pro SDK uses COM interop, just like ArcObjects .NET. Debugging the Enterprise SDK benchmark also reveals the presence of COM: In other words, the Pro and Enterprise SDKs are nothing more than lipstick on the same old COM interop pig as ArcObjects/.NET. Runtime aside, you're far better off sticking to ArcObjects/C++ if you really want the best overall performance. [COM interop performance is even worse in Java!]
... View more
09-24-2018
01:31 PM
|
3
|
1
|
1622
|
|
DOC
|
In 03CreateInspectionModule_2018.py line 392, the "Replaced Regulator" coded value for the UPDM_LeakWorkPerformed domain has an incorrect, non-unique description. Also, on line 1541, Global IDs are added to P_LineValveInspection after enabling attachments, instead of before.
... View more
09-07-2018
03:57 PM
|
0
|
0
|
30173
|
|
DOC
|
There's a typo on line 2152 of 01CreateUPDMBaseAdd-On_2018.py that assigns the UPDM_ValveFlowType domain to subtype 3 rather than 4.
... View more
09-05-2018
07:34 AM
|
0
|
0
|
30173
|
|
POST
|
Is it possible to block all add-ins in a configuration and still load the configuration's module(s)? If I set <AddIns securityLevel="4" /> then the configuration's module won't load.
... View more
08-23-2018
12:39 PM
|
0
|
1
|
933
|
|
POST
|
I don't know if this is exactly the same issue, but I ran into the 401 error with a feature service on a non-federated ArcGIS server set up for web tier authentication (IWA). The widget worked fine in IIS*, but in Web AppBuilder (Developer Edition) I would get the error. I finally found the solution here: Web-tier authentication—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers After I added the server name to the authorizedCrossOriginDomains array in the app's config.json, the problem went away. *[Probably because it's on the same server as the feature service]
... View more
08-17-2018
01:21 PM
|
1
|
0
|
1514
|
|
POST
|
Finally, a reply that makes sense to me. I followed the disconnected installation because my corporate firewall is a son-of-a-b**** and so I wouldn't be surprised if I missed a requirement.
... View more
08-06-2018
06:58 AM
|
0
|
1
|
2669
|
|
POST
|
I'm the same, except that Pro is 2.2.1. That shouldn't make any difference?
... View more
08-03-2018
01:51 PM
|
0
|
2
|
2669
|
|
POST
|
Yes. Latest version of everything. Which leads me to think that a recently developed flaw slipped through the cracks after the documentation was published.
... View more
08-03-2018
08:00 AM
|
0
|
1
|
2669
|
|
POST
|
I'm going through the Naperville Gas utility network walkthrough, and when I tried to run the untools Apply Asset Package tool, I got the following error: File "untools\utils\schema_package.py", line 811, in _validate_associations_have_rules rules = rules.append(junction_rules, sort=False) TypeError: append() got an unexpected keyword argument 'sort' After I commented out the "sort" keyword on line 811, the tool ran fine.
... View more
07-31-2018
11:42 AM
|
1
|
10
|
3473
|
|
POST
|
As part of our eventual migration to UPDM and Utility Network, we would like to model our CP circuits as subnetworks. Right now, we have a feature class called "Insulated Node" which acts as an arbitrary barrier to a CP circuit. How would we model that in our data migration? I don't really see a corresponding junction type in UPDM, unless perhaps I add a new asset type to Electro Stop (currently our migration prototype maps weld end insulators to that subtype). Any suggestions?
... View more
07-26-2018
01:25 PM
|
0
|
3
|
1895
|
|
DOC
|
One thing that I've noticed: for the Controllable Valve subtype, it looks as though designtype should use the UPDM_ValveControllableType domain, not the UPDM_ValveFlowType domain.
... View more
07-16-2018
07:19 AM
|
0
|
0
|
30173
|
|
POST
|
UPDATE: I was able to create a project that duplicates the problem [attached]. GeometryEngine at 100.2 has a problem which 10.2.7 doesn't have. I have two different geometries with the same spatial reference, yet hydrated from different sources (one from the map, one from a feature layer). If I try to to perform an operation such as Contains or Disjoint, I get the error "Value does not fall within the expected range". If I project one geometry to the other's SR then the operation works fine. The SR is defined by a WkText, and the WkText of both SRs is identical. Has anyone else seen this?
... View more
06-27-2018
08:06 AM
|
0
|
3
|
2075
|
|
POST
|
Sorry if I'm being cryptic. I want to use code to change the label colors for a feature layer. However, LabelDefinition.ToJSON() returns incomplete results in that the "symbol" entry is an empty object {}. [If you look in the MMPK's geodatabase, you can see the full info there.] Right now, if I want to change the label color of a feature layer by updating the label definitions, I have to supply the missing text symbol info, as in the following snippet, instead of merely changing the color of the symbol definition. If there's a better approach that I'm missing, I'd like to learn of it. Dictionary<string, object> font = new Dictionary<string, object>();
font["family"] = "Arial";
font["size"] = 8;
font["style"] = "normal";
font["weight"] = "normal";
font["decoration"] = "none";
Dictionary<string, object> sym = new Dictionary<string, object>();
sym["type"] = "esriTS";
byte[] RGBA;
if (bUseRed)
RGBA = new byte[] { 255, 0, 0, 255 };
else
RGBA = new byte[] { 0, 0, 0, 255 };
sym["color"] = RGBA;
sym["backgroundColor"] = null;
sym["borderLineColor"] = null;
sym["borderLineSize"] = null;
sym["verticalAlignment"] = "bottom";
sym["horizontalAlignment"] = "left";
sym["rightToLeft"] = false;
sym["angle"] = 0;
sym["xoffset"] = 0;
sym["yoffset"] = 0;
sym["kerning"] = true;
sym["haloColor"] = null;
sym["haloSize"] = null;
sym["font"] = font;
// Update label definitions
IList<LabelDefinition> LabelDefs = lyr.LabelDefinitions;
List<LabelDefinition> NewDefs = new List<LabelDefinition>();
foreach (LabelDefinition ld in LabelDefs)
{
string sOldJSON = ld.ToJson();
Dictionary<string, object> dict = (Dictionary<string, object>)js.DeserializeObject(sOldJSON);
dict["symbol"] = sym;
string sNewJSON = js.Serialize(dict);
NewDefs.Add(LabelDefinition.FromJson(sNewJSON));
}
LabelDefs.Clear();
foreach (LabelDefinition ld in NewDefs)
LabelDefs.Add(ld);
... View more
06-18-2018
12:07 PM
|
0
|
3
|
1994
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-04-2012 06:42 AM | |
| 1 | 09-23-2021 10:42 AM | |
| 2 | 09-28-2021 07:07 AM | |
| 1 | 04-07-2021 10:31 PM | |
| 3 | 03-21-2021 01:14 PM |
| Online Status |
Offline
|
| Date Last Visited |
01-07-2022
08:31 AM
|