POST
|
I'm running into the same error when trying to export a map to pdf. The code works only when I don't have any layers with external data sources. However, when I take some simple python code that works (used in a toolbox/geoprocessing service)...and simply add an "import urllib2" statement at the top....this alone causes the "failed because of crash or termination of the server object" error. Why won't it allow me to import a normal python library? I've checked the logs, and no help 😞 Any python experts/ESRI staff have any ideas?
... View more
06-08-2012
05:23 AM
|
0
|
0
|
725
|
POST
|
well...since i'm using arcpy: arcpy.env.scratchWorkspace = '/relTemp/' the script does find this path, as that's where I'm currently outputting the PDF file... I'm now thinking it could have something to do with writing to the 'cache' directory (one of the server directories listed in the ArcGIS Server Manager). It's explained in the link below. It makes sense to me that they'd use this 'cache directory' to download tiles/images from map services for quick use later on...rather than using the actual scratch workspace for a geoprocessing tool. '>http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//0093000000nt000000
... View more
05-14-2012
08:37 AM
|
0
|
0
|
672
|
POST
|
I've checked the logs, no help there. But I see the list of "Server Directories" in ArcGIS Server Manager..and am hoping that it's one of those. I have a request in to get permissions for those directories just to test it out.
... View more
05-14-2012
08:23 AM
|
0
|
0
|
672
|
POST
|
Permissions could be the issue...any idea which directory is used to download tiles before creating the PDF? I just tested an external/public map service and I'm having the same issue...so seems like you might be onto something. Just have to figure out which directories to give permissions...will poke around the ArcGIS Server Manager and see if any directories are listed there. will let you know 🙂
... View more
05-14-2012
07:43 AM
|
0
|
0
|
672
|
POST
|
Hi Jeff, Thanks for the response. My operational layers are in WGS_1984_Web_Mercator_Auxillary_Sphere, and the ESRI basemap layers are in "Mercator_Auxillary_Sphere". Since the geoprocessing tool works on my local computer, I would think that the projections are ok. I've tried a few ESRI basemap layers (World Street Map, and World Imagery)...it also takes a couple minutes to export this very simple PDF...which might be a clue. Perhaps when I run the export tool, it starts making requests for the tiles and there's some kind of delay or as you said needs a proxy or something. The thing is all the messages look ok ("successful,etc")...no timeouts that I can see. Seems to be some kind of difference with how a geoprocessing tool is run through arc catalog vs through the REST service...any idea on how to test/debug this further? It runs so quickly on my laptop through arc catalog, but through the REST service it takes a couple minutes...hrmmmmm. thanks, Dan
... View more
05-14-2012
06:39 AM
|
0
|
0
|
672
|
POST
|
Have you tried something like the following? "address = <b>" + addressVariable + "</b>";
... View more
05-14-2012
06:18 AM
|
0
|
0
|
162
|
POST
|
Hi All, I'm having to use ArcGIS 10 to export a map to PDF, and followed the 'export map to pdf using python geoprocessing toolbox' approach detailed at the following URL. I've had some success, it actually prints the PDF with some layers...but...the ESRI basemap layers are not included in the map when I access the geoprocessing toolbox through the REST service "Submit Job/Execute Task". If I run the 'ExportToPDF' tool on my local machine...it works perfectly...just not through the web service...I've viewed the messages and it's running without error...but the resulting PDF only has my 'operational layers', but NOT the ESRI basemap. I've run out of ideas on this one...anybody have an idea? I've also attached my result... thanks, Dan http://www.arcgis.com/home/item.html?id=8f16fdeef39c46b3952002b2d85ea5de
... View more
05-14-2012
06:07 AM
|
0
|
9
|
3344
|
POST
|
I'm having a similar problem with the ESRI basemaps. If I run the export locally, it works, but through the service ("Submit Job")...it exports a map, but the ESRI basemaps (i.e. "World_Street_Map") will not display. Anyone have suggestions?
... View more
05-11-2012
09:49 AM
|
0
|
0
|
381
|
POST
|
Yeah, so, I was a dum dum last night 🙂 The issue was that when I used the setAttributes method to update the attributes of my feature (based on what was in my own attributes window), ...it was clearing the objectID, because I don't have a visible control showing the user the objectID...when I went through the loop of my attributes...it only set the values I specify...effectively clearing out existing attributes...maybe there should be an 'updateAttributes' method...but that's nit-picky i guess.
... View more
04-14-2012
08:01 AM
|
0
|
0
|
194
|
POST
|
Hi All, I'm working on a custom application that doesn't use the AttributeInspector/TemplatePicker...because I had to get greater control over things. Anyway, in a simple example I had worked up, I was able to applyEdits (new, updates, and deletes)...so i thought everything was ok. Then, I went further, creating a slightly more complex application...and somewhere along the way...my "updates" (when calling applyEdits) fails...the feature just reverts back to whatever it was...although the onEditsComplete event is raised, I'm not able to get the FeatureEditResult object back for updates...the event simply returns "null". I am STILL able to create and save new features, as well as select and delete features. Anyone have any ideas why applying update edits would fail? It works in a simpler page I have (although i'm using the attribute inspector there). It's not a data permissions issue because that simple page can appy all 3 types of edits. Why would the FeatureEditResult for updates return NULL??? thanks, I'm stuck! Dan
... View more
04-14-2012
05:15 AM
|
0
|
1
|
659
|
POST
|
Hi Derek, Thanks, that's what I was looking for. Will mark this as answered, but maybe you could give me some tips. The scenario: I have my featureLayers on selection mode, so when I click on a feature, it automatically pops up an infoWindow...but, I've now decided I want to use the AttributeInspector someplace else....so that when the user clicks a feature, I don't want an infoWindow to come up, but rather I want to just populate my AttributeInspector in my left hand pane....AND...in addition to clicking a feature, I don't want them to be able to edit the verticies by just clicking the selected feature. The idea is that I want them to be able to click a feature, click a button that 'enables' editing...which would enable the attribute inspector as well as enable the 'move/edit vertices' mode on the selected graphic/feature. Then, the user could save the feature ONLY by hitting a SAVE button...and NOT just by changing attributes/moving vertices. Any tips? thanks, Dan USDA/Forest Service (Contractor)
... View more
04-06-2012
10:45 AM
|
0
|
0
|
283
|
POST
|
Hi all, I have an editing application that points to a few feature layers. These feature layers have 100 symbols (value renderer) in the MXD. These get carried over automatically in the javascript api application...and I'm able to change the attribute and the map refreshes and changes the symbology. That's all good. But...I want to restrict how many of those 100 symbols are available in the select box in the attribute inspector/info window. The map's definition expression on the feature layers doesn't seem to carry over to the available values in the attribute fields...so...I thought I would try to hack the attribute inspector and remove all options except the ones each particular user is allowed to use. Anyone have thoughts on this? Seems easy-ish, but i'm new to the javascript API...and obviously I'd rather not hack things, but after all the searching around...and creating my own infoWindow...this still seems like the most least-intrusive way to go about it (cuz when I roll my own attribute inspector...much of the auto-wiring that is setup...gets broken). In the code below, I can see in the debugger each available value for each type...but not sure how to remove them safely. var myEditor = new esri.dijit.editing.Editor(params, 'editorDiv'); myEditor.startup(); var attInspector = myEditor.attributeInspector; var layerInfos = attInspector.layerInfos; var pointTypes = layerInfos[0].types;
... View more
04-04-2012
09:48 AM
|
0
|
2
|
1407
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|