POST
|
Yep, I am using a fully qualified path, both to a network location and to a local drive. I can't reproduce it on other machines either, perhaps a reinstall will be required.
... View more
11-27-2014
10:10 AM
|
0
|
0
|
1263
|
POST
|
Hello Everyone, I'm having a strange problem this morning that I've seen mentioned a couple time here on the forum without resolution. Suddenly (as in, has changed in the last couple weeks) I am unable to access SDE connections through an external python interpreter (that is, one that is outside of ArcMap or ArcCatalog). From within Arc's python window something such as print [i.name for i in arcpy.Describe(r'path_to_sde_connections\user@current_sde_version.sde\dataset\feature_class').fields] will work perfectly fine, but in an interpreter (the same version/site-packages as used by Arc) it will fail: Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\__init__.py", line 1234, in Describe
return gp.describe(value)
File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 374, in describe
self._gp.Describe(*gp_fixargs(args, True)))
IOError: "path_to_sde_connections\user@current_sde_version.sde\dataset\feature_class" does not exist path_to_sde_connections\user@current_sde_version.sde\dataset\feature_class being a placeholder, this is generalized and has been tried with a number of sde connections, this print cmd works on non-sde gdbs.) This is resulting in a script that I used and ran last month only working form being loaded into a python window within arc, where before I could run it from the command line. Has anyone seen this before, or perhaps found a solution? I can't begin to understand why suddenly this would occur. This is after a system reboot to ensure it would be conflict/lock-free. The only recent things I've done would be a pip update of lxml and pandas—which shouldn't be effecting it, as it works from within Arc. Suggestions?
... View more
11-24-2014
09:45 AM
|
1
|
7
|
5895
|
POST
|
I can confirm that this is indeed the case. Had the same problem. Cheers.
... View more
10-02-2014
11:51 AM
|
0
|
1
|
721
|
POST
|
Is this in the works to ever be updated again? It'd be nice to have this functionality. Or, is this completely orphaned and abandoned?
... View more
08-30-2011
11:49 AM
|
0
|
0
|
659
|
POST
|
I do not believe anything has changed since this post: http://forums.arcgis.com/threads/28402-Trying-to-Build-project-in-FlashDevelop..-Help!-Please..?highlight=FlashDevelop
... View more
06-29-2011
07:36 AM
|
0
|
0
|
135
|
POST
|
Hi James, I'm unsure about the 9.3.1 being able to access a 10 SDE, however we've upgraded to version 10 for our ArcGIS Server and ArcGIS Desktop installations while continuing to maintain a 9.3.1 ArcSDE instance (as like you, we have staff/students still using 9.3.1 in some locations). The installation did not force an upgrade to SDE 10. Hope this helps.
... View more
06-22-2011
11:50 AM
|
0
|
0
|
191
|
POST
|
Hi Nidhi, You can use the layerinfos of the ArcGISDynamicMapServiceLayer class. For my implementation:
var layerInfos:Array = ArcGISDynamicMapServiceLayer(<service>).layerInfos; //where service is the name of the map service
var layerNames:Array = [];
for each (var layerInfo:LayerInfo in layerInfos){
if (layerInfo.name){ // If the layer has a name
layerNames.push(layerInfo.name);
}
}
This would populate layerNames (an array) with the name of every layer of the given <service>. There are a few attributes to the layerInfo, including id, max and min scales, parent layer ID and sublayer IDs. This is using the Flex API and not getting the information directly from the rest endpoint, however, hopefully is what you're after...
... View more
06-22-2011
07:33 AM
|
0
|
0
|
221
|
POST
|
Hi Karl, It is possible, but requires editing the popUp skin. This can be somewhat of a pain but is entirely doable. This thread has some information on how to accomplish this. Or if you don't want to do some of the manual work, you can grab my field+description popUp modification as a base and edit it from there (remember to add the widget as a flex module under project: properties: flex modules.)
... View more
06-16-2011
09:08 AM
|
0
|
0
|
138
|
POST
|
Hello Samer, Most map viewers require a Mapping Server to serve either dynamic content or static tiles. ESRI's Flex API is no different, it requires REST endpoints (generally, although some other formats are acceptable) primarily created by ArcServer. You will need to setup an ArcServer implementation before you can serve your own shapefiles to the Flex API.
... View more
06-13-2011
10:43 AM
|
0
|
0
|
117
|
POST
|
Hello, You also have an error in your <layer> tag shown below in Red, you've self closed the <layer> tag with the <layer /> slash just at the end outside of the quotes for the URL as well as closing with a </layer>. If you remove this / or remove the </layer> tag just below it, it should work. In XML you have two ways of closing a tag, either self closing with the <tag /> form or the open and close tags <tag> </tag>. It will error if you use both, as the <tag /> will already be closed when attempting to create a closing </tag>.
</layer>
<layer label="Parcels" type="feature" visible="false" alpha="1.0"
url="http://gis.richmondnc.com/ArcGIS/rest/services/RichmondMXD/RichmondAddTest/MapServer/5"/>
</layer>
... View more
06-10-2011
07:46 AM
|
0
|
0
|
531
|
POST
|
Hi Robert, I ended up integrating the url call into your TOC Widget so that I could access some of its features, I'm not sure if this is the right idea or not, but it's semi-working. I call a function (shown below) during the init() function that checks for URL parameters, and if it finds one enables that layer. This is fine, it also toggles the checkbox of that layer (which wasn't happening when the function was in its own widget). The problem is now toggling the checkbox of the parents/children of that layer. I'm not sure how to get access to this... recommendations? Here is the function that is called:
private function URLLayer():void //Is there anything to turn on from URL Function
{
if (ViewerContainer.urlConfigParams.service + ViewerContainer.urlConfigParams.layer) {
var layerIDNum:Number;
var service:Layer = map.getLayer(ViewerContainer.urlConfigParams.service);
var visibleLayers:ArrayCollection = ArcGISDynamicMapServiceLayer(service).visibleLayers;
var layerInfos:Array = ArcGISDynamicMapServiceLayer(service).layerInfos;
for each (var item:LayerInfo in layerInfos){
if (item.name == ViewerContainer.urlConfigParams.layer){
layerIDNum = item.id;
}
}
visibleLayers.addItem(layerIDNum);
}
} Thanks for all your help and input Robert (not just here or for me, but across the forum and its archive), if it wasn't for you I think many of our applications would be severely limited...
... View more
06-08-2011
10:11 AM
|
0
|
0
|
321
|
POST
|
While I'm not wholly sure about the crossdomain.xml being required, however your type is set incorrectly for a /MapServer/ . The "feature" type is for single layers from a service, you are after type="Dynamic" ( http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/The_Layer_tag/01m30000000p000000/ ). As well your missing a ' /> '
<operationallayers>
<layer label="test" type="dynamic" visible="true"
url="http://myserver/arcgis/rest/services/myservice_wgs84wm/MapServer/" />
</operationallayers>
... View more
06-08-2011
08:14 AM
|
0
|
0
|
308
|
POST
|
Okay, well that was a long day. I've got a working widget now that can do what I need, once again, a lot of work for a simple solution. However, now I've got an issue. I can get the layer turned on from a map service just fine, now I just need to have the Table of Contents update. Now, I think I need Roberts help. I'm using your TOC Widget v. 2.3.3 and I was wondering if there was an event (?) I could dispatch that would cause the TOC widget to re-initialize and redetermine layer visibility... is this possible, or will I have to modify the TOC Widget for this purpose?
... View more
06-07-2011
02:43 PM
|
0
|
0
|
321
|
POST
|
Hello Everyone, I've been avoiding this problem for a while now, and my list is now empty enough that I had to start working on it. I am trying to get a URL Parameter to activate a layer, based on the layer name (!), in order to complete functionality for an atlas (links from an html page must open the map viewer with certain layers turned on). Preferably I would like to be able to turn on Groups as well as individual layers (if the url parameter == the name of a group, turn all of that group on.) Has anyone implemented something along these lines? As I understand, 2.3.1 changed the way URL parameters are parsed, no longer using the mapLoadComplete function, which many posts state; Current investigation has lead to ConfigManager.as containing the current URL parameter parser for itemid, center (scale etc). Another ViewerContainer.urlConfigParams.[tag] would catch new [tag] parameters (i.e. ../index.html?layer=Search%20This would catch "Search This"). Toggling map services is one thing, but how does one change the visibility of a layer within a map service, I'm still a little unclear on this... How to toggle the visibility of a layer. This all seems a little overwhelming, and I get the feeling that this is not a simple feat. Some guidance would be greatly appreciated. Thanks!
... View more
06-07-2011
08:47 AM
|
0
|
7
|
2175
|
POST
|
Hi Paul, It looks as though you've got a tile cache at a level that doesn't match with your initial extent. Try creating tile cache levels that more match your extents. Another possibility could be the quality of the tiles you are creating. What are your tile cache settings?
... View more
06-02-2011
08:02 AM
|
0
|
0
|
383
|
Title | Kudos | Posted |
---|---|---|
1 | 11-24-2014 09:45 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|