|
POST
|
The next release will have support for lines and polygons. Russ, when can we expect this release? Thanks. brian
... View more
10-24-2013
04:47 AM
|
0
|
0
|
1306
|
|
POST
|
Summary of what we've learned using event tables. Disable Caching in ArcMap - http://support.esri.com/en/knowledgebase/techarticles/detail/25846 Disable Caching in ArcGIS Server 10 and before - http://support.esri.com/en/knowledgebase/techarticles/detail/34350 Disable Caching in ArcGIS Server 10.1 Log into the Server using the ArcGIS Server user Copy and paste the 3 lines below into a text file, rename the extension of the file to .reg., then double click to install Restart the service Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\ESRI\Server10.1\ArcMap\DynSeg] "UseOptimization"=dword:00000000 Disable Caching in ArcGIS Server 10.2 - from my testing, route event caching is disabled at 10.2. I am trying to get Esri to verify this but I've run into road blocks at every turn. There response is that 10.1/2 is a black box and I would need to pay Professional Services to find workarounds. Below are the results from my testing of 10.0, 10.1 and 10.2. At 10.0 and prior, we used OLE connections for our linear event layers (which didn't seem to have the caching problems). At 10.1 OLE connections were removed so we needed another approach to make our environment viable. All connections are direct connects SQL Server 2008 R2 SP1 ArcSDE 10.0 In a SDE enabled database Create 2 non-sde tables (Table A and Table B) Table A Register with a user controlled ID Create/Register View A with SDE using Table A Table B Leave unregistered Create Unregistered View B using Table B Non SDE database Create Table C and View C Add all tables/views to ArcMap. Create event layer event layers. Modify measure field or queried attribute (active versus inactive) in Table A, Table B and Table C then pan map Please Note: When looking at the measure attribute of the tables that didn�??t visually change, the measure in the attribute DID show the changed value. [TABLE="class: grid, width: 100%"]ArcMap 10.2 ArcGIS Server 10.2 Change measure field in database Change measure field in databaseTable A Layer �?? SDE registeredDoes NOT reflect changeReflects changeView A Layer �?? SDE RegisteredDoes NOT reflect changeReflects changeTable B Layer - SDE enabled databaseReflects changeReflects changeView B Layer - SDE enabled databaseReflects changeReflects changeTable C Layer - non-SDE enabled database Does NOT reflect changeReflects changeView C Layer - non-SDE enabled database Does NOT reflect changeReflects change [/TABLE] [TABLE="class: grid, width: 100%"]ArcMap 10.1 ArcGIS Server 10.1 Change measure field in database Change measure field in database Table A Layer �?? SDE registered Does NOT reflect change Does NOT reflect change View A Layer �?? SDE Registered Does NOT reflect change Does NOT reflect change Table B Layer - SDE enabled database Reflects change Reflects change View B Layer - SDE enabled database Reflects change Reflects change Table C Layer - non-SDE enabled database Does NOT reflect change Does NOT reflect change View C Layer - non-SDE enabled database Does NOT reflect change Does NOT reflect change [/TABLE] [TABLE="class: grid, width: 100%"]ArcMap 10.0 Change measure field in database Table A Layer �?? SDE registered Does NOT reflect change View A Layer �?? SDE Registered Does NOT reflect change Table B Layer (OLE Connection) - SDE enabled database Reflects change Table B Layer (OLE Connection) - SDE enabled database Reflects change [/TABLE]
... View more
09-30-2013
12:50 PM
|
0
|
0
|
2416
|
|
POST
|
Does this get run on my local machine where I built the MXD? I assume it isn't run on the server (we don't have ArcMap on the server). If my assumption is correct, would I then need to rebuild the MXD and republish the service for the non-caching to "stick"? Hate to muddy the water even more but below is the registry key that we added to our 10.1 servers (not on local machine). I do realize this is different than what Jake said (and odd that it has ArcMap in the path) but I did get this from Esri (Tom Brenneman) and also tested it to make sure that it worked. On the server.... Log into the Server using the ArcGIS Server user Copy and paste the 3 lines below into a text file, rename the extension of the file to .reg., then double click to install Restart the service If you want to me to forward the email from Tom, send me a private message and I will forward. brian Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\ESRI\Server10.1\ArcMap\DynSeg] "UseOptimization"=dword:00000000
... View more
09-23-2013
12:50 PM
|
0
|
0
|
2416
|
|
POST
|
i would assume that the 10.1 article (in tandem with the information provided by Jake) would result in desirable behavior in 10.2 as well, because the root architecture is the same as 10.1. The reason why I was originally questioning whether this was correct for 10.2 or not, is that the there are registry keys under a 10.2 folder (HKLM)....so does the 10.2 software look at the 10.1 folder for the dynseg key or should the key actually be under the Server10.2 path for a 10.2 install? brian
... View more
09-23-2013
09:06 AM
|
0
|
0
|
2416
|
|
POST
|
the 10.1 link is down for server maintenance... looks promising though! Corrected the link in the post. brian
... View more
09-23-2013
07:21 AM
|
0
|
0
|
2824
|
|
POST
|
Just to add more memory information. We have 2 identical VM machines, one running 10.0 SP2 and the other is running 10.2. Both machines have the same services running...which equates to about 100 ArcSoc.exes on each machine. On the 10.0 machine, the ArcSoc.exes average 77k and on the 10.2 machine, the ArcSOC.exes average 132k. I've been talking to support about the increased memory usage and their response was that it is documented in the help. I was pointed to documentation for 10.0, http://help.arcgis.com/en/systemrequirements/index.html#/ArcGIS_Server_10_System_Requirements/015100000072000000/ and to the documentation of for 10.1, http://resources.arcgis.com/en/help/system-requirements/10.1/index.html#//015100000072000000 . If you read very closely, the specs from the development environment changed from 2GB to 4GB. I guess from that you are suppose to infer about the increased memory usage between versions. I was also given this bug number which was declined. NIM092919 This doesn't solve anyone's problems but just confirms what everyone is seeing. And you will see the same memory increase in 10.2. brian
... View more
08-16-2013
08:06 AM
|
0
|
0
|
1884
|
|
POST
|
Yes, I've experienced the same thing. I haven't nailed down exactly what is happening but it seems that I had to apply permissions multiple times for them to stick. I did start logging out and clearing my browser cache before checking to see if the permissions had applied correctly that seemed to help clear up some of the issues I was experiencing but not all. brian
... View more
08-01-2013
08:41 AM
|
0
|
0
|
536
|
|
POST
|
Just trying to get something fixed with our application. And we felt that if we could get the samples working we could track down where our problem resides. We've been working on the issue for several months. Including support calls. The original one was at the beginning of December. One of our attempts to get it resolved is here. I will delete my replies to clean up the this post. Sorry for the inconvenience. It will not happen again.
... View more
03-13-2013
12:27 PM
|
0
|
0
|
853
|
|
POST
|
In the future, please start a new thread instead of piggybacking on an existing, unrelated thread. Sorry about that but I've contacted support multiple times and cannot get a straight answer. There is also a bug submitted, but of course, that is set to low priority. Since the API group is active in the forum, I thought I would take a chance (and at the risk of being scolded) to see if the issue could get elevated. That being said, we'll take a look at the mobile samples in IE8. Realistically, those are meant for browsers running on phones/tablets, not legacy browsers. Yes, you are correct but if you wanted to create a adaptive web page (to work on both platforms), instead of having 2 separate code bases, you would want the application to also work in IE 8. Our IE 7/8 usage is still 20% of all hits. Not something we can ignore.
... View more
03-13-2013
05:53 AM
|
0
|
0
|
853
|
|
POST
|
Derek, Do you happen to know when the Javascript team is going to fix the mobile samples? Everyone of the mobile samples error in IE 8. Thanks. brian
... View more
03-12-2013
08:37 AM
|
0
|
0
|
853
|
|
POST
|
Hi Doug, Thanks. Your suggestion really helped. I had to set the content twice on the dojox.layout.ContentPane to get the javascript to fire. Set it once to get IE to recognize the tag, then set the content again with the same tag to get the javascript to execute. Seems to work on the major browsers. brian function dfdVideoCallback(param) {
var cpX = param.cp
//try to get videodiv, in IE 8 had to wait little, seems to work ie even though the videodiv node is being replaced by the set content
var vidDiv = dojo.byId('videodiv');
if (vidDiv!=null){
cpX.set("content", "<div id='videodiv'>Loading....</div>" + param.liveview);
}else{
alert('Failed to get video');
}
}
//used to get the liveviewdata
//called by maptip each time the maptip record selector moves to that graphic
function getLiveViewContent(graphic) {
var videoscript = graphic.attributes.liveviewdata;
var dfdVideo = new dojo.Deferred();
dfdVideo.addCallback(dfdVideoCallback);
var cpX = new dojox.layout.ContentPane({id:"videoContainer"});
var videoNode = "<div id='videodiv'>Loading....</div>" //+ videoscript
cpX.set("content", videoNode);
//give ie8 some time to catch up
setTimeout(function(){dfdVideo.callback({liveview:videoscript,cp:cpX});},200)
return cpX.domNode;
}
... View more
04-30-2012
11:17 AM
|
0
|
0
|
1864
|
|
POST
|
Just heading out the door and didn't quite follow all of your code but I believe the following is how I got around that problem in my situation. As far as why, didn't dig that far into it. //need to do this to the first one so it shows, the rest are handled by graphic attribute "restrictiontext)
if (tmpSpan != null){
tmpSpan.innerHTML = tmpRestr;
}
... View more
04-23-2012
01:31 PM
|
0
|
0
|
1864
|
|
POST
|
Hi Dan, I use the following to return related records. I don't know if it would apply in your case as my code just queries related records based on the objectid. The code creates a tag for the related records, once the data comes back from the second query, it populates that tag. brian deferred.addCallback(function(response) {
// response is an array of identify result objects
// Let's return an array of features.
//class='mapTipTitle'
return dojo.map(response, function(result) {
//console.log(result.layerName);
var feature = result.feature;
feature.attributes.layerName = result.layerName;
switch(result.layerName){
case "cameras":
var media = new Array();
if(feature.attributes.Link!="Null"){
media.push({
"title": "<div id='cameraNDDOT' class='mapTipTitle'>{Description}</div>",
"type": "image",
"value": {
"sourceURL": "{Link}",
"linkURL": "{FullPath}"}})
}
case "incidents":
var webLink="";
var addInfo="";
var objectID = feature.attributes.ObjectID;
var restrictionSpan = "<br/><span class='mapTipContentBold'>Restriction(s):</span> <span id='inrestr-" + objectID + "' class='mapTipContent'>{restrictiontext}</span>";
//build query
queryTask = new esri.tasks.QueryTask(restrInUrl);
//build query filter
query = new esri.tasks.Query();
query.returnGeometry = false;
query.outFields = ["ObjectID","RestrictionText","RestrictionUnits","RestrictionDesc"];
query.where = "ObjectID=" + objectID;
//execute query
queryTask.execute(query,function(results){
var tmpRestr = ""
dojo.forEach(results.features,
function(feat, index, array) {
tmpRestr = tmpRestr + "<br/> " + feat.attributes.RestrictionDesc + " - " + feat.attributes.RestrictionText + " " + feat.attributes.RestrictionUnits;
}
);
if (results.features.length > 0) {
var tmpSpan = dojo.byId("inrestr-" + objectID);
dojo.forEach(map.infoWindow.features,
function(feat,index,array){
if(feat.attributes.ObjectID = objectID){
feat.attributes.restrictiontext = tmpRestr
return false;
}
return true;
}
);
//need to do this to the first one so it shows, the rest are handled by graphic attribute "restrictiontext)
if (tmpSpan != null){
tmpSpan.innerHTML = tmpRestr;
}
}
});
if(feature.attributes.AttachedFile!="Null"){
addInfo = "<br/><span class='mapTipContentBold'><a href='downloads-incidents/{AttachedFile}' target='_blank'>Additional Information</a>"
}
if(feature.attributes.WebLink!="Null"){
webLink = "<br/><span class='mapTipContent'><a href='{WebLink}' target='_blank'>Web Link</span>"
}
var content = "<div id='contentNDDOT'><span class='mapTipContentBold'>Highway:</span> <span class='mapTipContent'>{HwyDesc} {Direction} (MP: {MPFrom})</span><br/><span class='mapTipContentBold'>Location:</span> <span class='mapTipContent'>{PublicFrom}</span><br/><span class='mapTipContentBold'>Description:</span> <span class='mapTipContent'>{ConditionDesc}</span>" + restrictionSpan + "<br/><span class='mapTipContentBold'>Comment:</span> <span class='mapTipContent'>{Comment}</span>" + addInfo + webLink + "</div>";
var template = new esri.dijit.PopupTemplate({
title: "<div class='mapTipTitle tocBdrDkGrey tocBgRed'>Incidents</div>",
description: content});
feature.attributes.restrictiontext="None"
feature.setInfoTemplate(template);
break;
}
return feature;
});
});
// InfoWindow expects an array of features from each deferred
// object that you pass. If the response from the task execution
// above is not an array of features, then you need to add a callback
// like the one above to post-process the response and return an
// array of features.
map.infoWindow.setFeatures([ deferred ]);
map.infoWindow.show(evt.mapPoint);
... View more
04-23-2012
04:37 AM
|
0
|
0
|
1864
|
|
POST
|
I have a esri.InfoTemplate that calls a function. Within the function I am setting content of a dojox.layout.ContentPane. I am utilizing a dojox content pane because I need a piece of javascript code to execute. Eventually I need to get a reference to a node within the dojox.layout.ContentPane, whether that node was part of the content or dynamically created. The problems is that I cannot get a reference to a node within the ContentPane in IE 8. The code works fine in FF, Safari, and Chrome. My question is, is there a way to get a reference to a node in the content pane in IE 8 utilizing the code below? Entire Process: 1. identify feature 2. process the identified features by attaching script as a feature attribute 3. set feature info template to a function 4. function creates a dojox.layout.ContentPane 5. function retrieves script from feature 6. function sets script/node as the content 7. returns content pane domNode to feature 8. if all goes correctly, a video plays within the popup window Below is simplified code to illustrate the problem in IE 8. //called by maptip each time the maptip record selector moves to that graphic function getLiveViewContent(graphic) { var cpX = new dojox.layout.ContentPane({id:"videoContainer"}); //the node is part of the content of the contentpane but when the content is set, IE 8 cannot find the node var videoNode1 = "<div id='videoNode1'>Loading.....</div><scr" + "ipt type='text/javascript'> var cnNode;var vidNode; var i=0;function checkContainter(){while(cnNode==null&&i<50){cnNode = dijit.byId('videoContainer');if (cnNode!=null){console.log('got cnNode');}i++;}}checkContainter();i=0;function checkVideoNode(){while(vidNode==null&&i<50){vidNode = dojo.byId('videoNode1');i++;console.log(i);if (vidNode!=null){console.log('got vidNode');}}}checkVideoNode();console.log('done');<\/scr" + "ipt>"; //this code retrieves an already created node within the document and appends that node to the container node. In IE 8, after the append the dojo.byID('videodiv') is null var videoNode2 = "<scr" + "ipt type='text/javascript'> var cnNode;var vidNode; var i=0;function checkContainter(){while(cnNode==null&&i<50){cnNode = dijit.byId('videoContainer');if (cnNode!=null){console.log('got cnNode');vidNode = dojo.byId('videodiv');if (vidNode!=null){console.log('got vidNode');}cnNode.containerNode.appendChild(vidNode);}i++;}}checkContainter();i=0;var checkNode;function checkVideoNode(){while(checkNode==null&&i<50){checkNode = dojo.byId('videodiv');i++;console.log(i);}}checkVideoNode();console.log('done');<\/scr" + "ipt>"; //var data = graphic.attributes.liveviewdata; //data = data.replace("jwplayer",videoNode); cpX.set("content", videoNode2); return cpX.domNode; } identifiedFeatures.addCallback(function(response) { return dojo.map(response, function(result) { var feature = result.feature; //console.log(feature); if(feature.attributes.liveviewdata!=null && feature.attributes.liveviewdata!="" ){ var template = new esri.InfoTemplate("",getLiveViewContent); feature.setInfoTemplate(template); } return feature; }); }); map.infoWindow.setFeatures([ identifiedFeatures ]); map.infoWindow.show(evt.mapPoint); }
... View more
04-03-2012
12:05 PM
|
0
|
8
|
3119
|
|
POST
|
If you think this would be helpful please vote for it on the ideas web site. http://ideas.arcgis.com/ideaView?id=08730000000btedAAA
... View more
01-20-2012
04:46 AM
|
0
|
0
|
423
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 08-09-2021 02:07 PM | |
| 1 | 05-18-2021 12:31 PM | |
| 1 | 03-11-2021 11:55 AM | |
| 2 | 03-11-2021 09:44 AM | |
| 1 | 10-17-2018 12:43 PM |
| Online Status |
Offline
|
| Date Last Visited |
06-27-2022
08:46 AM
|