POST
|
We're trying to hook up sonarcloud scanner to our repos on github so it can scan our code automatically as soon as we create a pull request. The part we are stuck on is that github has to execute the msbuild.exe call for our solution/projects but fails because it doesn't have the ESRI DLLs to compile against on the github server. Has anyone set up Github actions to build arcobjects .net desktop applications? Is there a step we can include in our build.yml that will temporarily pull down the arcobjects SDK/DLLs for the build? Thanks!
... View more
02-28-2023
07:40 AM
|
0
|
0
|
496
|
POST
|
I have a simple ICommand/Addin button in ArcMap 10.6.1 that simply creates point features in my ServicePoint feature class and populates the subtype and attributes including the HOUSENUMBER field that drives the Feature-linked annotation in ServicePointAnno anno class. When we place a new ServicePoint on the map in ArcMap with the HOUSENUMBER preset it auto-creates the ServicePointAnno as we expect just fine right next to it. BUT when we use arcobjects in our add-in and use IFeatureClass.CreateFeature() to create it, then set the geometry point and all the attributes including subtype and HOUSENUMBER, then call IFeature.Store() it creates the point on the map just fine, we can see all the attributes are set correctly, but it does NOT auto-create the feature-linked anno! Is there another function/method/object we have to call to tell it to auto-create feature linked anno that arcmap.exe might be calling? Is this a bug in ArcObjects or is this feature linked anno auto-creation only valid if you place the features manually in ArcMap?
... View more
11-05-2021
02:38 PM
|
0
|
0
|
433
|
POST
|
I'm getting the same error message in Schneider Electric ArcFM's Disconnect Tool in 10.6.1 if the SHAPE column is the first editable field in the list. I would like to know what version of ArcGIS Desktop this specific check was added. I don't think this check was in 10.2.1 because it works OK there, but it definitely is in 10.6.1. The main idea is that you can't set the SHAPE column value = the same SHAPE column value. You have to use IFeature.ShapeCopy to get a copy of the geometry or create a whole new geometry then set THAT into the feature's SHAPE column.
... View more
08-21-2020
11:39 AM
|
0
|
0
|
552
|
POST
|
We're getting a problem where one feature class is not creating on the map after we finish sketch with no errors to be found. All other feature classes in our Oracle geodatabase place just fine. All privs look good for A and D tables, etc. - all the normal things you would check. So we started an SDE Intercept and could see when we attempt to place those features we get the same entry for GetConnectionError that you have above. I would also like to know what that means and get more info. In our case it looks like it happens right after it calls RowIdsGetRangeByName. ======================================== [W 07:12:32.426] Command: StateNewEdit [W 07:12:32.426] int64: 4769 [W 07:12:32.426] State: State ID: -1 Owner: Status: Open CreationTime: 12/31/1969 6:00:00 PM Lineage Name: 0 LineageLength: 0 Lineage: <null> [R 07:12:32.438] Long: 0 [R 07:12:32.438] State: State ID: 4770 Owner: Q155569 Status: Open CreationTime: 10/28/2019 7:12:32 AM Lineage Name: 4704 LineageLength: 5 Lineage: <null> ======================================== [W 07:12:32.438] Command: BeginTransaction [R 07:12:32.438] Long: -68 ======================================== [W 07:12:32.442] Command: RowIdsGetRangeByName [W 07:12:32.443] NString: "EDGIS.SECOHCONDUCTOR" [W 07:12:32.443] int64: 10 [R 07:12:32.453] Long: -51 ======================================== [W 07:12:32.453] Command: GetConnectionError [R 07:12:32.453] Long: 0 ======================================== [W 07:12:32.460] Command: RollbackTransaction [R 07:12:32.464] Long: 0 ======================================== [W 07:12:32.466] Command: StateDelete [W 07:12:32.466] int64: 4770 [R 07:12:32.528] Long: 0 ======================================== Here's what it looks like for the "good" feature that places OK on the map: [W 07:11:59.885] Command: StateNewEdit [W 07:11:59.885] int64: 4704 [W 07:11:59.885] State: State ID: -1 Owner: Status: Open CreationTime: 12/31/1969 6:00:00 PM Lineage Name: 0 LineageLength: 0 Lineage: <null> [R 07:11:59.923] Long: 0 [R 07:11:59.923] State: State ID: 4767 Owner: Q155569 Status: Open CreationTime: 10/28/2019 7:11:59 AM Lineage Name: 4704 LineageLength: 2 Lineage: <null> ======================================== [W 07:11:59.924] Command: BeginTransaction [R 07:11:59.924] Long: -68 ======================================== [W 07:11:59.947] Command: RowIdsGetRangeByName [W 07:11:59.948] NString: "EDGIS.SECUGCONDUCTOR" [W 07:11:59.948] int64: 10 [R 07:11:59.980] Long: 0 [R 07:11:59.980] int64: 193428 [R 07:11:59.980] int64: 13 ======================================== [W 07:12:00.076] Command: QueryWithInfo [W 07:12:00.089] Long: 2 [W 07:12:00.089] Query Info: Num Columns: 1 Columns: "Name" SQL_Construct: [1] Tables: "SDE.GDB_Items" WhereClause: "UUID IN (SELECT OriginID FROM SDE.GDB_ItemRelationships WHERE DestID IN (SELECT UUID FROM SDE.GDB_Items WHERE PhysicalName = N'EDGIS.AM_CONFIGURATION' AND Type IN ('{70737809-852C-4A03-9E22-2CECEA5B9BFA}')) and Type = '{A1633A59-46BA-4448-8706-D8ABE2B2B02E}')" Query Type: 4 Num Hints: 0 Num Parameter markers: 0 Logfile: <null> [R 07:12:00.095] Long: 0 [R 07:12:00.095] Col_Defines: [1] Name Type Width nDec NULL? RowID -------------------------------- ----------- ----- ---- -------- ----- NAME SE_NSTRING 226 0 NULL -------------------------------- ----------- ----- ---- -------- ----- ======================================== [W 07:12:00.095] Command: ExecuteSpatialQuery [W 07:12:00.095] Long: 2 [R 07:12:00.100] Long: 0 ======================================== [W 07:12:00.100] Command: NextBuffer [W 07:12:00.100] Long: 2 [R 07:12:00.100] Long: 0 [R 07:12:00.100] Long: 0 [R 07:12:00.100] Long: 0 [R 07:12:00.100] Short: -1 [R 07:12:00.100] Long: 1 [R 07:12:00.100] Long: 0 ======================================== [W 07:12:00.100] Command: CloseStream [W 07:12:00.100] Long: 2 [W 07:12:00.100] Long: 1 [R 07:12:00.100] Long: 0 Looks like it is failing on the RowIdsGetRangeByName section. Secondary OH where it fails: [W 07:12:32.442] Command: RowIdsGetRangeByName [W 07:12:32.443] NString: "EDGIS.SECOHCONDUCTOR" [W 07:12:32.443] int64: 10 [R 07:12:32.453] Long: -51 Vs Secondary UG where it places OK: [W 07:11:59.947] Command: RowIdsGetRangeByName [W 07:11:59.948] NString: "EDGIS.SECUGCONDUCTOR" [W 07:11:59.948] int64: 10 [R 07:11:59.980] Long: 0 [R 07:11:59.980] int64: 193428 [R 07:11:59.980] int64: 13 Next step is to figure out why the RowIdsGetRangeByName is failing for SecOHConductor but works ok for SecUGConductor.
... View more
10-28-2019
05:55 AM
|
0
|
0
|
518
|
POST
|
I'm having the exact same issue with my windows console EXE in C# for 10.2.1.3497 - even the part where it works sometimes but not every time! Some times it works just fine. Others it fails with that same error: Creating an instance of the COM component with CLSID {5374EC4C-1AA2-4829-A811-DE624ECEC23F} from the IClassFactory failed due to the following error: 80010105.System.Runtime.InteropServices.COMException (0x80010105): Creating an instance of the COM component with CLSID {5374EC4C-1AA2-4829-A811-DE624ECEC23F} from the IClassFactory failed due to the following error: 80010105. at ESRI.ArcGIS.Geoprocessor.Geoprocessor..ctor() I'm checking out an Advanced license at the beginning so that part is working fine. I'm referencing the following .net assemblies: ESRI.ArcGIS.Geoprocessing C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\DotNet\ESRI.ArcGIS.Geoprocessing.dll runtime v2.0.50727 version 10.2.0.0 ESRI.ArcGIS.Geoprocessor C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\DotNet\ESRI.ArcGIS.Geoprocessor.dll runtime v2.0.50727 version 10.2.0.0 Here's my code (it fails right on that first line when executing that Geoprocessor() constructor): Geoprocessor GP = new Geoprocessor();
IGeoProcessorResult processorResult = null;
var createFileGDBTool = new CreateFileGDB(exportFolder, fileGdbName);
processorResult = (IGeoProcessorResult)GP.Execute(createFileGDBTool, null);
var gpTool = new FeatureClassToFeatureClass(inputtable, fullExportPath, fileGdbTableName) { };
processorResult = (IGeoProcessorResult)GP.Execute(gpTool, null); Why in the world would it work sometimes and not every time?
... View more
10-31-2018
07:21 AM
|
0
|
0
|
613
|
POST
|
There should be no need to have the same service more than once. Just create separate UniqueValueInfos for each car type so they each get a different color symbol. So the one stream service would then have different symbols for each feature based on the value in one, two, or even three fields.
... View more
04-16-2018
07:17 AM
|
0
|
0
|
1597
|
POST
|
Oh yes, Simple Fill Symbol (SFS) is for polygons. Of course! OK how does this simple marker symbol (SMS) look? I know the rotation won't work because they are just circles. But this should work at least right? Instead of completely not working at all like it does now. We'll test it on Monday. We'll look into getting the vector path arrow symbol working then too. {
"type": "uniqueValue",
"attributeField": "groupid",
"visualVariables": [{
"type": "rotationInfo",
"field": "heading",
"rotationType": "geographic"
}],
"defaultSymbol": {
"color": [100,255,50,64],
"size": 12,
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"type": "esriSMS",
"style": "esriSMSCircle",
"outline": {
"color": [0,0,0,255],
"width": 1,
"type": "esriSLS",
"style": "esriSLSSolid"
}
},
"uniqueValueInfos": [{
"value": "ASB",
"symbol": {
"color": [0,255,0,64],
"size": 12,
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"type": "esriSMS",
"style": "esriSMSCircle",
"outline": {
"color": [0,0,0,255],
"width": 1,
"type": "esriSLS",
"style": "esriSLSSolid"
}
}
},
{
"value": "WG",
"symbol": {
"color": [0,0,255,64],
"size": 12,
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"type": "esriSMS",
"style": "esriSMSCircle",
"outline": {
"color": [0,0,0,255],
"width": 1,
"type": "esriSLS",
"style": "esriSLSSolid"
}
}
}]
}
... View more
01-06-2018
07:14 AM
|
0
|
3
|
902
|
POST
|
We are using Javascript API 3.21 and trying to set the renderer for a StreamLayer. Debugging through the chrome dev tools we can see that it's applying the renderer correctly to the layer but we see all the default blue circles disappear and none ever show. But we can see the features actually streaming in over the network tab in the websocket connection frames. Can someone verify this UniqueValueRenderer is valid on their stream layer? {
"type": "uniqueValue",
"attributeField": "groupid",
"visualVariables": [{
"type": "rotationInfo",
"field": "heading",
"rotationType": "geographic"
}],
"defaultSymbol": {
"color": [0, 0, 0, 255],
"outline": {
"color": [0, 0, 0, 255],
"width": 1,
"type": "esriSLS",
"style": "esriSLSNull"
},
"type": "esriSFS",
"style": "esriSFSNull"
},
"uniqueValueInfos": [{
"value": "ASB",
"symbol": {
"color": [255, 0, 0, 255],
"outline": {
"color": [0, 0, 0, 255],
"width": 1,
"type": "esriSLS",
"style": "esriSLSSolid"
},
"type": "esriSFS",
"style": "esriSFSSolid"
}
},
{
"value": "WG",
"symbol": {
"color": [0, 0, 255, 255],
"outline": {
"color": [0, 0, 0, 255],
"width": 1,
"type": "esriSLS",
"style": "esriSLSSolid"
},
"type": "esriSFS",
"style": "esriSFSSolid"
}
}]
}
... View more
01-05-2018
01:53 PM
|
1
|
5
|
1237
|
POST
|
We got it working last night. Here's a snippet and a screen shot. We can change out the "symbol" property under each UniqueValueInfos object between "blue" for the simple marker and "blueSym" for the picture marker (and red/redSym). This is using the sandbox example page so we just put our prototype code directly in the addStreamLayer() function. We also had to make sure to reference the 4.6 javascript API at the top. ArcGIS API for JavaScript Sandbox You may also need to make sure to import all the correct modules at the top of the "require([" portion. You'll also need to fix the URLs for the picture marker symbols to point to your server. function addStreamLayer() {
//Renderer
var blueArrow = "http://yourserver/navigationArrow.png";
var redArrow = "http://yourserver/redArrow.jpg";
var defaultPic = "https://yourserver/Xmark.png";
var blueSym = new PictureMarkerSymbol({
url: blueArrow,
width: 10,
height: 10
});
var redSym = new PictureMarkerSymbol({
url: redArrow,
width: 10,
height: 10
});
var defSymbol = new PictureMarkerSymbol({
url: defaultPic,
width: 10,
height: 10
});
var blue = {
type: "simple-marker", // autocasts as new SimpleMarkerSymbol()
color: "blue",
path: "M14.5,29 23.5,0 14.5,9 5.5,0z",
angle: 180,
size: 10
};
var red = {
type: "simple-marker", // autocasts as new SimpleMarkerSymbol()
color: "red",
path: "M14.5,29 23.5,0 14.5,9 5.5,0z",
angle: 180,
size: 10
};
//create renderer
var uvr2 = {
type: "unique-value",
field: "predictable",
defaultSymbol: { type: "simple-fill"},
uniqueValueInfos: [{
value: "true", //predictable field is a string type
symbol: blue,
label: "Predictable" // used in the legend to describe features with this symbol
}, {
value: "false",
symbol: red,
label: "Not Predictable" // used in the legend to describe features with this symbol
}],
visualVariables: [{
type: "rotation",
field: "heading",
rotationType: "geographic"
}]
};
var svcUrl = "https://geoeventsample1.esri.com:6443/arcgis/rest/services/LABus/StreamServer";
// Construct Stream Layer
streamLayer = new StreamLayer({
url: svcUrl,
renderer: uvr2,
purgeOptions: {
displayCount: 10000
}
});
// When graphics controller created, register listeners for events
streamLayer.on("graphics-controller-create", function(evt) {
controller = evt.graphicsController;
// Connect and disconnect events
controller.on("connect", processConnect);
controller.on("disconnect", processDisconnect);
// FilterChange event
controller.on("filter-change", processFilterChange);
});
map.add(streamLayer);
}
... View more
01-04-2018
06:52 AM
|
2
|
0
|
1597
|
POST
|
Is this still the same case today? We still can't set the marker or symbol based on attributes from the stream service? We have a stream service set up for trucks in the field for inspectors and want to see the heading set the symbol rotation to show direction and the color of the symbol to show the TYPE attribute (Inspector vs Service Call). As of now they are all just blue dots. Is there really no way to set this on the server side somewhere? Or do we have to create custom javascript code to run on our client web maps that sets the renderer on the fly? Is it even possible to use a UniqueValueRenderer in Javascript for stream service layers?
... View more
01-02-2018
07:53 AM
|
0
|
3
|
1597
|
POST
|
You mean you want to zoom to a certain area/scale, print it to PDF/paper, then zoom/pan to another area/scale and then print that one? If so, then you just need to add another data frame to your layout. We use this all the time in ArcFM to show the close up of a switch cabinet for electric networks. ArcGIS Desktop Help - Using Data Frames.
... View more
11-13-2015
07:47 AM
|
0
|
0
|
1122
|
POST
|
Not sure if this is exactly what you need but it looks very close. Or I could be dead wrong: ArcGIS Help 10.1 Interpolate Polygon To Multipatch (3D Analyst) Summary Creates surface-conforming multipatch features from a polygon feature class using a raster, terrain, or TIN surface. Each polygon feature has its boundary profiled along the surface. Heights are obtained using linear interpolation by sampling at each input vertex and wherever the boundary line intersects surface triangle edges and nodes. This natural densification captures the full definition of the linear surface using a minimal number of samples. Then, all nodes that fall within the polygon are extracted. The nodes are retriangulated in a new memory-based TIN, and the 3D polygon boundary is enforced as a clip polygon. The triangles of this new TIN are then extracted in a series of strips that are used to define a multipatch-based feature. Usage Resulting multipatch will capture the 3D surface representation in its geometry. Planimetric and surface area calculations are included in the output alongside other attributes from the input polygon. Consider converting polygons to multipatches if you experience display problems with three-dimensional rendering of polygons draped on a surface. The Maximum Triangle Strip Size value must be 3 or larger. This parameter specifies the maximum number of vertices allowed in any triangle strip used in constructing the multipatch. ArcGIS does not have a particular size limit or preference, but some 3D graphic cards might, as triangle strips are directly loaded to the 3D graphics application program interface (API) for rendering. The recommended range is between 128 and 2048.
... View more
10-23-2015
12:43 PM
|
0
|
0
|
897
|
POST
|
Can you convert from a 2D polygon to a TIN? Basically convert it to a bunch of triangle polygons with a Z coord on each point. Of course that would probably stretch out the area of each triangle so that the area of the new polygon would be greater than the original buffer polygon, making it look the same if you looked at it from above. You probably want it to be the same area in the TIN so that the edges of the buffer would take the terrain TIN into account... I wonder if there's already some code from ESRI that will take a 2D polygon and turn into a TIN and let you set the z coords of the points and it would keep the total area intact by moving the triangles' points where they need to go?
... View more
10-22-2015
12:27 PM
|
0
|
0
|
897
|
POST
|
I'm checking the feasibility of my idea to create a mobile web app and need to know how well it handles making edits to features when the data connection drops out and comes back. I thought I heard that offline editing was somewhat supported during one of the sessions at the Devsummit '15 but I didn't take the best notes.
... View more
04-16-2015
10:39 AM
|
0
|
1
|
3328
|
POST
|
Some of the live samples like the attachment editor no longer have the point layer features showing on the map to be able to check/add attachments. Did something change recently?
... View more
04-13-2015
01:24 PM
|
0
|
0
|
2393
|
Title | Kudos | Posted |
---|---|---|
1 | 01-05-2018 01:53 PM | |
2 | 01-04-2018 06:52 AM |
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|