|
POST
|
I know this is an easy question, but it just puzzles me a great deal. One of my custom widgets when I run it, it refuses to copy its xml file to the server. It only compiles the mxml file and it sends the swf to the server. The xml file is defined in the widget section of the config.xml of the app. All other custom widgets run with their own xml file with no problems. Ideas? Thank you.
... View more
09-17-2014
04:56 PM
|
0
|
3
|
2068
|
|
POST
|
Thank you Robert. I use custom url parameters and I use the externalinteface to read them. I thought that injecting the config.xml, it would not be read. But I was wrong. I should check it first. Sorry to waste your time.
... View more
09-11-2014
05:47 PM
|
0
|
0
|
1102
|
|
POST
|
I have been using the url parameters in my projects either with a specific location or with a custom config.xml file. However, now I am working on a project where I need to have both the location and the custom config.xml file posted on the flexviewer url. Is that possible? Thanks.
... View more
09-11-2014
10:41 AM
|
0
|
2
|
4305
|
|
POST
|
Thank you Robert. I can't believe how did I miss the proxyURL since I was checking each property. Using queryBufferTask.proxyURL= "http://xxx.xxx.xx.xxx/DotNetProxy/proxy.ashx?https://xxx.xxx.xxx.xxx/arcgis/rest/services/Project_PAD/PAD/MapServer/0"; would draw the same error #2101. However, using the url and the proxyURL, it works. queryBufferTask.url="https://xxx.xxx.xxx.xxx/arcgis/rest/services/Project_PAD/PAD/FeatureServer/0" queryBufferTask.proxyURL = "http://xxx.xxx.xxx.xxxx/DotNetProxy/proxy.ashx?";
... View more
09-03-2014
07:32 AM
|
0
|
0
|
1408
|
|
POST
|
Thank you for the reply, Robert. I followed the suggestion and now I get the error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. Do I need to use escape characters for the slashes? My url was: queryBufferTask.url= "http://xxx.xxx.xx.xxx/DotNetProxy/proxy.ashx?https://xxx.xxx.xxx.xxx/arcgis/rest/services/Project_PAD/PAD/MapServer/0"; Thanks.
... View more
09-02-2014
11:25 PM
|
0
|
4
|
1408
|
|
POST
|
Hello. I have to use proxy for the querytask in the actionscript (not in the xml widget config). What is equivalent to <useproxy>true</useproxy> to actionscript? Is there a property that I can use with the query? I couldn'r find one. Thanks. var queryBuffer:Query = new Query(); queryBuffer.spatialRelationship = querySpatialRel; queryBuffer.geometry = geom; queryBuffer.returnGeometry = true; queryBufferTask.url=layerConfig.url; queryBuffer.outSpatialReference = map.spatialReference; queryBuffer.outFields = layerConfig.outfields;
... View more
09-02-2014
06:20 PM
|
0
|
6
|
2722
|
|
POST
|
Ok. I will just ignore the warning and move on. Thank you Robert.
... View more
08-29-2014
08:30 AM
|
0
|
0
|
1124
|
|
POST
|
Thank you Robert. My first reaction when I encountered that error was to enter the import in the index.html but it didn't prevent the error. Then, I implemented your suggestions, but I still get the error. I am using Flash Builder 4.6. If I ignore this error, will actually result to serious memory leaks?
... View more
08-28-2014
04:48 PM
|
0
|
2
|
1124
|
|
POST
|
I created my own widget to be used in flexviewer but I get the message "To resolve the leak, define com.esri.ags.geometry.WebMercatorMapPoint in the top-level application." I already saw a recommendation to resolve this issue is to import com.esri.ags.geometry.MapPoint; in your main mxml. The widget has aleady this import, so in flexviewer the top-level application is considered to be what? Thanks.
... View more
08-27-2014
03:39 PM
|
0
|
4
|
1890
|
|
POST
|
So, Luke, in my case why the addlayer is undefined?
... View more
08-07-2014
06:04 PM
|
0
|
1
|
2011
|
|
POST
|
Sorry I am novice in Python. How do you declare a variable that if no layers are defined yet? Can I a declare without point at a layer?
... View more
08-06-2014
03:30 PM
|
0
|
0
|
3295
|
|
POST
|
Ok, I modified my code....but I still getting an error. What I am trying to do is to loop through the layers of the current map and if a specific layer is found, then it will be copied onto a new map and then print the pdf of the new map. Does it make sense? import arcpy thisMap = arcpy.mapping.MapDocument("CURRENT") myDF = arcpy.mapping.ListDataFrames(thisMap)[0] arcpy.CreateFolder_management(r"D:\GIS_data", "test") newmap = arcpy.mapping.MapDocument(r"D:\GIS_data\test\new.mxd") newdf = arcpy.mapping.ListDataFrames(newmap)[0] myLayers = arcpy.mapping.ListLayers(myDF) for lyr in myLayers: if lyr.name == "CNNDB": addlayer = arcpy.mapping.Layer(lyr) arcpy.mapping.AddLayer(newdf,addlayer,"AUTO ARRANGE") arcpy.RefreshTOC arcpy.RefreshActiveView arcpy.mapping.ExportToPDF(newmap, r"D:\GIS_data\test\Project.pdf",300,"BEST",layers_attributes="LAYERS_AND_ATTRIBUTES")
... View more
08-06-2014
02:41 PM
|
0
|
4
|
3296
|
|
POST
|
I am new in python but this script should be easy to process. Instead I get: arcpy.mapping.AddLayer(myDF,addlayer) NameError: name 'addlayer' is not defined Here is the script: import arcpy thisMap = arcpy.mapping.MapDocument("CURRENT") myDF = arcpy.mapping.ListDataFrames(thisMap)[0] myLayers = arcpy.mapping.ListLayers(myDF) for lyr in myLayers: if lyr.name == "CNNDB": addlayer = arcpy.mapping.Layer(lyr) print "got it" arcpy.mapping.AddLayer(myDF,addlayer,"AUTO ARRANGE") arcpy.CreateFolder_management(r"D:\GIS_data", "test") arcpy.mapping.ExportToPDF(thisMap, r"D:\GIS_data\test\Project.pdf",300,"BEST",layers_attributes="LAYERS_AND_ATTRIBUTES") #Do you see any errors? Thank you.
... View more
08-06-2014
01:58 PM
|
0
|
22
|
11879
|
|
POST
|
That's correct, the print widget handles the printing of graphics layers that are visible on the map. Can you print a specific graphicslayer and not all of the visible layers? To elaborate, in a more complex situation if you perform a buffer analysis on several layers, the result is several graphicslayers and I would like to print each layers in a multi page pdf. It is obviously a loop situation. The print task just gets the current map (and what ever layers are visible) and perform the task. I need to change the input for the print task gp service to a specific graphics layer. Is that possible? Or, do I need to modify the python script as it is shown in ArcGIS Help 10.1
... View more
08-01-2014
09:11 AM
|
0
|
1
|
972
|
|
POST
|
I have read the example for the advanced printing and how to use the arcpy.mapping to print to pdf. However, I'm trying to figure out how to use the results of a buffer query in a flex app that creates a graphicslayer to be the input for the geoprocessing service to print just the results of the query to the pdf. Ideas?
... View more
07-31-2014
10:38 PM
|
0
|
3
|
1520
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-09-2026 12:44 PM | |
| 1 | 06-08-2026 12:12 PM | |
| 1 | 06-19-2025 10:13 PM | |
| 3 | 02-06-2026 10:44 AM | |
| 1 | 01-08-2026 12:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|