|
POST
|
Using this Geometric Network Utility SOE Rest project and VS 2015 I am able to build the project and eventually I am getting following dlls at ..\Documents\Visual Studio 2015\Projects\SOE\ByPhaseGeometricNetworkUtility\obj\Debug and in ..\Documents\Visual Studio 2015\Projects\SOE\ByPhaseGeometricNetworkUtility\bin\Debug can you please let me know how to get/create .soe file now?
... View more
07-10-2017
10:47 AM
|
0
|
2
|
2168
|
|
POST
|
I have published a Feature Service on our ArcGIS Server 10.4.1 and in support section of the Feature Service URL I am seeing that the ApplyEdits With Global Ids: false can you please let me know why this is false? and how can I update it to True?
... View more
07-04-2017
01:47 PM
|
1
|
13
|
31554
|
|
POST
|
I have published a Feature Service (Sync Enabled) to our ArcGIS Server but I am only getting PerLayer Sync Model in the service but I need to have Sync Per Replica Instead. like I didn't see any thing available in ArcMap Service Editor Wizard regarding to this Can you please let me know how I can enable the Per Replica Then?
... View more
06-30-2017
09:38 AM
|
0
|
3
|
2802
|
|
POST
|
I am kinda confused! where should I add the outSR: 4326?
... View more
06-22-2017
01:53 PM
|
0
|
2
|
2765
|
|
POST
|
You are right Thomas, Seems I am having issue with spatial reference! Can you please let me know how I can force to receive the data in the correct spatial reference format?
... View more
06-22-2017
01:42 PM
|
0
|
4
|
2765
|
|
POST
|
Here also is a single format of each featureSet {
"attributes":{
"OBJECTID":1247
},
"geometry":{
"paths":[
[
[
1034476.7734464034,
1870179.847935468
],
[
1034476.6261717044,
1870189.4210841134
]
]
]
}
},
... View more
06-22-2017
10:35 AM
|
0
|
0
|
2765
|
|
POST
|
Thanks for reply Thomas, Please take a look at post Attachment. I just uploaded a sample return (data.json) on `console.log(JSON.stringify(featureSet));` var resultFeatures = result.edges;
for (var j = 0, jl = resultFeatures.length; j < jl; j++) {
var featureSet = resultFeatures[j].features;
console.log(JSON.stringify(featureSet));
for (var i = 0, il = featureSet.length; i < il; i++) {
// var graphic = new Graphic(evt.geometry, config.symbolPointEBarrier);
//var graphic = new Graphic(featureSet);
graphicsLayerTraceNetworkEdges.add(graphic);
}
}
... View more
06-22-2017
10:21 AM
|
0
|
6
|
2765
|
|
POST
|
Running following code I am able to get JSON result back from a Geometric Network Service on ArcGIS Server but I am having trouble to add the Geometries (Returened graphic) to the graphicsLayerTraceNetworkEdges can you please let me know what I am doing wrong here? As you can see I already tried both var graphic = new esri.Graphic(featureSet[i]); and var graphic = new esri.Graphic(featureSet[i], symbolTraceNetworkEdges); but neither of the adding any graphics to the graphicsLayerTraceNetworkEdges Here is the code I am running var symbolTraceNetworkEdges = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 0, 0]), 3);
var graphicsLayerTraceNetworkEdges = new esri.layers.GraphicsLayer();
var rendererTraceNetworkEdges = new esri.renderer.SimpleRenderer(symbolTraceNetworkEdges);
graphicsLayerTraceNetworkEdges.setRenderer(rendererTraceNetworkEdges);
graphicsLayerTraceNetworkEdges.setInfoTemplate(infoTemplate);
map.addLayer(graphicsLayerTraceNetworkEdges);
function solve(traceSolverType, params) {
esri.request({
url:agsConfig.urlGNUtility(agsConfig.operationalLayers.GNLayer, gn /* id layer from soe*/, traceSolverType /*name of operation SOE */),
content:params,
callbackParamName:"callback",
load:function (result) {
graphicsLayerTraceNetworkEdges.clear();
var resultFeatures = result.edges;
console.log(resultFeatures);
for (var j = 0, jl = resultFeatures.length; j < jl; j++) {
var featureSet = resultFeatures[j].features;
for (var i = 0, il = featureSet.length; i < il; i++) {
//var graphic = new esri.Graphic(featureSet);
var graphic = new esri.Graphic(featureSet[i], symbolTraceNetworkEdges);
graphicsLayerTraceNetworkEdges.add(graphic);
}
}
});
}
}
... View more
06-22-2017
09:57 AM
|
0
|
9
|
3002
|
|
POST
|
Using ArcGIS 10.4.1, I am trying to add New Weight (Bitgate Type) to an existing Geometric Network but after couple of minutes I am getting this message The network weights were not updated FDO error: -2147210918 Cannot register as versioned on this database. Can you please let me know why this is happening and how I can fix it?
... View more
05-30-2017
10:47 AM
|
0
|
0
|
662
|
|
POST
|
Using ArcGIS Python addin I need to get the Index of selected item from Combobox on change. I already tried def onSelChange(self, text):
global selectedIndex
selectedIndex = selection.current() in following code class ComboBoxClass4(object):
"""Implementation for MTR_addin.combobox (ComboBox)"""
def __init__(self):
self.value = "S"
self.items = ("A", "B", "C", "D", "E")
self.editable = True
self.enabled = True
self.dropdownWidth = 'WWW'
self.width = 'WWW'
def onSelChange(self, selection):
global selectedIndex
selectedIndex = selection.current()
def onEditChange(self, text):
pass
def onFocus(self, focused):
pass
def onEnter(self):
pass
def refresh(self):
pass but it is not working and I am getting this error selection.current() AttributeError: 'str' object has no attribute 'current'
... View more
05-25-2017
04:14 PM
|
0
|
0
|
1143
|
|
POST
|
I need to add all features within a dataset called MainSt in a file geodatabase which is stored at following directory C:/Temp/Roads.gdb to current map. using following code I am able to add them one by one but can you please let me know how I can loop and add them dynamically mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
targetGroupLayer = arcpy.mapping.ListLayers(mxd, "Main Streets", df)[0]
addLayer = arcpy.mapping.Layer(r"C:\Temp\Roads.gdb\MainSt\trace_Fittings")
arcpy.mapping.AddLayerToGroup(df, targetGroupLayer, addLayer, "BOTTOM")
arcpy.RefreshActiveView()
arcpy.RefreshTOC() can you please let me know how to do this?
... View more
05-24-2017
03:07 PM
|
0
|
0
|
736
|
|
POST
|
I using Python Add-In Wizard with ArcGIS 10.4.1 but after getting the files I am not able to create installation Wizard! I tried to create the wizard by double clicking on the looks like something running but No installation file generated at the directory! can you please let me know why this is happening?
... View more
05-19-2017
02:36 PM
|
1
|
2
|
1711
|
|
POST
|
Thanks Dan but now I am getting another error I followed all of these steps As: 1- Start up the Streets.mxd in ArcMap 2- Run the mxd=arcpy.mapping.MapDocument("CURRENT") inside the ArcMap (without no error) 3- Add the same mxd=arcpy.mapping.MapDocument("CURRENT") to my code in PyScripter IDE as import arcpy
####mxd = arcpy.mapping.MapDocument(r"C:\Temp\Street.mxd")
mxd=arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
targetGroupLayer = arcpy.mapping.ListLayers(mxd, "Main", df)[0]
addLayer = arcpy.mapping.Layer(r"C:\Data\NetMap.gdb\Streets\OneWay")
arcpy.mapping.AddLayerToGroup(df, targetGroupLayer, addLayer, "BOTTOM")
arcpy.RefreshActiveView()
arcpy.RefreshTOC() but I am getting this runtime error message: Traceback (most recent call last): File "C:\Users\bhosseini\Documents\ArcPy\Trace With Graphics\module3.py", line 3, in mxd=arcpy.mapping.MapDocument("CURRENT") File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\arcobjects\mixins.py", line 625, in initsuper(MapDocumentMethods, self).init(mxd) File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\arcobjects_base.py", line 47, in init for arg in args)) RuntimeError: Object: CreateObject cannot open map document
... View more
05-19-2017
09:51 AM
|
0
|
2
|
1320
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-25-2017 08:32 AM | |
| 1 | 07-04-2017 01:47 PM | |
| 1 | 08-15-2017 02:44 PM | |
| 1 | 05-19-2017 02:36 PM | |
| 1 | 02-09-2017 12:37 PM |
| Online Status |
Offline
|
| Date Last Visited |
12-31-2020
08:22 PM
|