|
POST
|
Were you able to solve this? I have the identical system specs as you, and the identical problem. All my SQL server scheduled jobs worked until we upgraded Desktop from 10.0 to 10.1 on the server where the jobs are scheduled. Now the SQL server scheduled job which runs a python script fails as soon as I add an import arcpy statement. I can run the script from IDLE, pythonWin, and with the identical operating system command that the SQL job uses: C:\Python27\ArcGIS10.1\python.exe D:\Automate\Synchronize.py It seems like it must be a permssion issue of the AD account that I run the SQL job step as. However, I logged on to the server with that AD account that the SQL job is running under, and I am able to open ArcMap, and able to run the python script as well. Again the scheduled job can run a python script with a print statement, but as soon as I add "import arcpy" it fails.
... View more
12-20-2012
11:56 AM
|
0
|
0
|
2910
|
|
POST
|
Anyone know how to toggle visibility on a Bing Map (veTileLayer)?
... View more
12-18-2012
02:38 PM
|
0
|
0
|
500
|
|
POST
|
I am working with the Tax Parcel Viewer template from the local government gallery. I would like to add Bing Maps as a basemap. I was able to modify the CreateBaseMapLayer to add a VeTileLayer as below, but I have two problems. First the Bing Maps basemap draws on load, and the ChangeBaseMap function doesn't work properly. How would I make the Bing layer not visible on load, and how do I get a reference to it using similar to "map.getLayer" so that I can update the ChangeBaseMap function? function CreateBaseMapLayer(layerURL, layerId, isVisible,bingKey) { if (isVisible) { currentBaseMap = layerId; } if (bingKey.length > 0 ){ veTileLayer = new esri.virtualearth.VETiledLayer({ bingMapsKey: bingKey, mapStyle: esri.virtualearth.VETiledLayer.MAP_STYLE_AERIAL }); return veTileLayer }else{ var layer = new esri.layers.ArcGISTiledMapServiceLayer(layerURL, { id: layerId, visible: isVisible }); return layer; } }
... View more
12-17-2012
10:46 AM
|
0
|
2
|
900
|
|
POST
|
No I never did find a solution or hear of one from Derek. I just tried updating my application to the current ArcGIS API for Javascript (3.1), and it exhibits the same unfortunate behaviour.
... View more
09-21-2012
09:58 AM
|
0
|
0
|
1415
|
|
POST
|
What is the appropriate editing workflow for reshaping an edge shared by two parcels in a parcel fabric. I know I can un join a parcel and add/change courses, then unjoin the parcel next to it, and add/change the same courses, then join them both back into the fabric. However, there must be an easier way to change the courses for two adjoining parcels at the same time. Thanks for your help.
... View more
09-12-2012
02:25 PM
|
0
|
0
|
1473
|
|
POST
|
Ben, Thanks for your help. Using dojo.script.io (JSONP) worked. Below is the resultant code. For some reason I couldn't use the data.extent object directly, but had to create a new object. dojo.io.script.get({
url: queryURL+layernum+'?f=json',
content: {q: "#dojo"},
callbackParamName: "callback"
}).then(function(data){
var newExtent = new esri.geometry.Extent
newExtent.xmax = data.extent.xmax;
newExtent.xmin = data.extent.xmin;
newExtent.ymax = data.extent.ymax;
newExtent.ymin = data.extent.ymin;
map.setExtent(newExtent);
});
}
... View more
06-05-2012
10:17 AM
|
0
|
0
|
2513
|
|
POST
|
I think Ben is right, you can't get the extent of sublayers from the ArcGISDynamicMapServiceLayer object. Ben, your solution is much more elegant than mine, but when I tried it I ran into crossdomain issues when trying to make the dojo.xhrGet call since my webserver is not the same as my ArcGIS server. It seems I would need to set up a proxy on my webserver in order to make the rest call, but somehow the ArcGIS JavaScript api gets around this and makes rest calls.
... View more
06-05-2012
08:40 AM
|
0
|
0
|
2513
|
|
POST
|
I found a kludgy solution, but I know there must be a better way. I create a featureLayer for the layer in the map service. FeatureLayer has a fullExtent property. However, the fullExtent property doesn't exist immediately after the featureLayer is first created. If I do a selection on the Layer, then the property exists. Therefore, I do a selection (using a where clause that I know won't select any features), and in the callback I can zoom to the layer. zoomLayer = new esri.layers.FeatureLayer(serviceURL+layernum);
var query = new esri.tasks.Query();
query.where = "0=1";
zoomLayer .selectFeatures(query,esri.layers.FeatureLayer.SELECTION_NEW,zoomSel);
}
.........
function zoomSel(){
map.setExtent(zoomLayer.fullExtent);
}
... View more
06-04-2012
01:03 PM
|
0
|
0
|
2513
|
|
POST
|
Yes that is what I am referring to, but I am having trouble getting the extent of an individual layer. I have an ArcGISDynamicServicLayer and I know the layer number of the layer that I want to zoom to, but I dont' know how to get its extent. By the way, I tried setting a variable equal to the dynamicLayerInfos property of my ArcGISDynamicServicLayer, but the resulting variable has a value of undefined. However, even if I did get an array of LayerInfos, the LayerInfo class doesn't seem to have an extent property, so I don't know if that will helpful. resultsLayer = new esri.layers.ArcGISDynamicMapServiceLayer(serviceURL, {id: "resultsLayer"});
map.addLayer(resultsLayer);
layer = resultsLayer.dynamicLayerInfos
... View more
06-01-2012
03:21 PM
|
0
|
0
|
2513
|
|
POST
|
I thought this would be easy, but I can't figure out how to zoom to the extent of a layer in a map Service (not the extent of the entire map service). In the Flex API there is a layerDetails class, but I can't find anything similar in JavaScript.
... View more
06-01-2012
01:01 PM
|
0
|
9
|
10709
|
|
POST
|
Jodi, I found that it was not a memory leak issue, but as Curtis said: gp/arcpy scratch name methods can be very slow when the workspace in which you are generating scratchnames gets full of many files Creating a new workspace for OUTPUT every 30 or so feature classes greatly increased the speed of my script. You are using listrasters to create the list before you enter the loop. In your loop, you could just change the name of the output workspace after a certain number of iterations. Below is some sample code. I didn't test it, so may have some errors, but should get you started. Sebastian #create scratch workspace name
tempDIR = "F:\\Data\\Reg09"
tempWorkspacePrefix = "update"
tempWorkspaceSuffix = 0
count = 0;
for raster in rasterList:
if count%30 == 0: # this is modulus operator, so should be true the first iteration and every 30 iterations thereafter.
tempWorkspaceSuffix = tempWorkspaceSuffix + 1
tempWS = tempWorkspacePrefix + str(tempWorkspaceSuffix)
if not arcpy.Exists(tempDIR + os.sep + tempWS):
arcpy.CreateFolder_management(tempDIR, tempWS)
out = tempDIR + os.sep + tempWS + os.sep
name = os.path.basename(raster).strip(".tif") # removes .tif from the file name
arcpy.env.cellSize = "MINOF"
arcpy.gp.ZonalStatisticsAsTable_sa(region, "VALUE", raster, out+name+".dbf","DATA", "ALL")
print" Raster " + str(raster) + " processing completed at " + time.asctime( time.localtime(time.time()) ).
count = count + 1
... View more
04-11-2012
08:53 AM
|
0
|
0
|
2039
|
|
POST
|
I've seen lots of samples with coded domain values, but to test there would also need to be enough fields that the AttributeInspector Infowindow needs to be scrolled. I haven't noticed a sample like that. Do you know of one that I can test on?
... View more
04-06-2012
10:03 AM
|
0
|
0
|
1415
|
|
POST
|
I am using the editor widget to edit a feature layer that has 10 fields. When a user updates an attribute, the attribute Inspector infoWindow scrolls back to the top. The user then needs to scroll back down, and click in the next field. This behavior is only exhibited if the field being exited was updated , and the user is tabbing (or mousing) into or out of a field that uses a coded value domain. I don't see this behavior when moving from two adjacent fields that aren't associated with a domain. This happens in both Chrome and IE8. Has anyone seen this? Is there a solution? I know I can increase the size of the info window, but I would really prefer to fix the scrolling issue.
... View more
04-05-2012
09:39 AM
|
0
|
8
|
1896
|
|
POST
|
This is an old post, but I thought I would reply in case someone else comes across it searching. I was looking for the same and came up with the solution below. dojo.connect(map.infoWindow._hide, "onclick", function(){
//your code here. This will only be called when a user clicks the "x" or close button.
//The infoWindow also has an onhide event that is called more often ( whenever the map is clicked or the info window is closed with escape key or close button clicked).
});
... View more
03-22-2012
11:30 AM
|
0
|
0
|
353
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-02-2015 12:08 PM | |
| 1 | 02-08-2016 08:22 AM | |
| 1 | 08-13-2015 10:32 AM | |
| 1 | 08-13-2015 09:44 AM | |
| 1 | 05-04-2015 03:17 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|