|
POST
|
I keep getting error 260 when I try to copy a feature dataset. I can copy a feature class from one server to another, but it fails on the feature dataset. I've tried copying feature datasets in other directories too, but still get the 260 error in ArcGIS. The error says that the "in_memory" workspace is not supported as the output location. I've tried setting the environment workspace to the origin directory and to the destination directory, but neither work. The feature dataset that I'm trying to copy does not already exist on the destination directory. When I run the copy command as a script, I get error 000979: Cannot copy between different workspaces. Here's the crazy thing. Using another computer (my workstation), I can copy feature datasets just fine using the same script. It only fails on the Backup ArcSDE server (NDEP-23) which has 29G of physical Memory. On the server and on my workstation, both computers have ArcGIS 10 SP 4 installed. I can't understand why one would give the errors and not the other. Any ideas on what I need to look for in order to fix the copy error on the server?
... View more
08-22-2012
03:15 PM
|
0
|
2
|
2511
|
|
POST
|
Answer from ESRI tech support (Stephanie W.)
import arcpy
from arcpy import env
workspace = env.workspace = r'your_workspace'
def detectRelationship():
rc_list = [c.name for c in arcpy.Describe(workspace).children if c.datatype == "RelationshipClass"]
for rc in rc_list:
rc_path = workspace + "\\" + rc
des_rc = arcpy.Describe(rc_path)
origin = des_rc.originClassNames
destination = des_rc.destinationClassNames
print "Relationship Class: %s \n Origin: %s \n Desintation: %s" %(rc, origin, destination)
detectRelationship()
Result is like this:
Relationship Class: NDEP.WaterDiv_to_Owners_NDWR2012
Origin: [u'NDEP.WaterDiversions_NDWR2012']
Desintation: [u'NDEP.WaterDiv_Owners_NDWR2012']
Yeah!!!
... View more
08-14-2012
07:25 AM
|
0
|
0
|
4584
|
|
POST
|
ArcGIS Desktop 10.0 I have a script that copies feature classes and tables from one workspace to another on a schedule. It is a backup script. My problem is that when I try to copy a feature class that has a relationship class with a table, the copy fails - because the table that is associated with the feature class by a relationship also tries to be copied and that table already exists. I would like to have a way to detect if a feature class is in a relationship, and what other featureclasses or tables it shares that relationship with. I tried the following on a feature class that I know has a relationship, but the result came back empty. >>> desc = arcpy.Describe(r'Database Connections\BWQP_NDEP24.sde\BWQP.AssessedStreams2010')
>>> desc
<geoprocessing describe data object object at 0x1E829440>
>>> print "%-22s %s" % ("RelationshipClassNames:", desc.relationshipClassNames)
RelationshipClassNames: [] I'm able to list the relationship classes, but I can't describe them enough to see the feature classes and tables associated with them. >>> rc_list = [c.name for c in arcpy.Describe(workspace).children if c.datatype == "RelationshipClass"]
>>> rc_list
[u'BWQP.Lakes_to_TMDL', u'BWQP.Lakes_to_Waterbody', u'BWQP.Rivers_to_TMDL', u'BWQP.Rivers_to_Waterbody', u'BWQP.AssessedLakes_to_IR10', u'BWQP.AssessedStreams_to_IR10'] I also read that there is a bug NIM048192 with python in that it does not have access to the key relationship class properties. Help!!
... View more
08-09-2012
10:23 AM
|
0
|
8
|
11002
|
|
POST
|
Wow Kim! Thanks! I have hundreds of feature classes ranging from 10 records to 36000 records. Then feature datasets, rasters and tables. Unfortunately this fancy coding is quite over my head, but I'll save it for the future when I'm a more advanced scripter. I appreciate the information!
... View more
08-07-2012
03:41 PM
|
0
|
0
|
1253
|
|
POST
|
Oops. I meant - if the file has the word "True" in it, then there is a difference between tables.
... View more
08-06-2012
08:46 AM
|
0
|
0
|
1253
|
|
POST
|
I was thinking that having the output in memory or in a variable might make the script run faster than having to read a file from the hard drive. I'm using the table compare and featureclass compare functions to run a backup script for an ArcSDE fail over (mirror backup). If differences are found, the old file is removed and the newer file is added. Well, its more complicated than that, but you get the idea. When I went to the ESRI conference last week, an ESRI presenter spoke briefly about using in-memory data but it was in reference to Oracle trace files. I guess I was hoping I could do the same thing in python. I only need to scan the text for the word "false" to check for a difference in the table. If there is a difference, then the update runs.
... View more
08-03-2012
08:24 AM
|
0
|
0
|
1253
|
|
POST
|
I'd like to have the table compare function output to a in-memory file or variable instead of an actual text file. Is that possible? I tried using a table variable, but that errored. I used a string variable and the process worked, but the string was empty. Any suggestions? This works: arcpy.TableCompare_management(table1, table2, 'OBJECTID', 'ALL', '#', '#', '#', 'NO_CONTINUE_COMPARE', r'C:\Temp\compare_table2.txt') This works, but the string is empty: output_compare_string = '' arcpy.TableCompare_management(table1, table2, 'OBJECTID', 'ALL', '#', '#', '#', 'NO_CONTINUE_COMPARE', output_compare_string)
... View more
08-02-2012
04:35 PM
|
0
|
5
|
1365
|
|
POST
|
I'm creating a Silverlight web map that is restricted for internal use within our department. The map service contains sensitive datasets that cannot be published to the public. Is there a way to make a map service not viewable to the public yet have it accessible for the Silverlight web map? In the past, I experimented with enabling securities for map services within ArcGIS Server, but that caused all kinds of problems in the Flex web app since many widgets do not work with the secure map service. How well does the Silverlight Viewer work with secure map services? Stephanie
... View more
05-30-2012
08:50 AM
|
0
|
2
|
2784
|
|
POST
|
Related tables and relationship classes are critical to retrieving useful data in a GIS. There are many times when a "field join" simply will not do, such as when you have a one to many relationship. Please add this functionality to the Silverlight viewer. I'm still searching for a replacement for the .NET ArcGIS Server Manager. So far, neither Silverlight or Flex meets our needs which means we cannot upgrade to version 10.1 when it comes out.
... View more
04-24-2012
04:41 PM
|
0
|
0
|
1170
|
|
POST
|
I have problems with schema locks too. The feature classes that sometimes have locks are not versioned or a part of any replication process. A computer (sometimes a user PC, sometimes a server) will have a lock on a feature class without having ArcGIS open. Even with all users logged off, all map services shut down, I can still see the connection coming from the computer. I try to use the SDE kill command, but it always says "failed to execute". Sometimes I can kill the connection as a task in the task manager (gsrvr process) from the ArcSDE server. But most the time I have to stop and start SDE to remove the lock. Sometimes still, even this doesn't work, and I have to restart the offending computer that ArcSDE says has a connection. This last work around does the trick which tells me that the computer itself is maintaining some connection lock to ArcSDE even if ArcGIS is not open on that machine. I understand the importance of schema locks with a multi-user versioned database, but it appears I am not the only one that is frustrated by dealing with random locks that can't be disconnected. I have the GDBT Toolkit for ArcCatalog installed but it is really not useful as a database administration tool. Please please ESRI, give us more tools for managing ArcSDE....especially for schema locks!
... View more
03-21-2012
07:05 AM
|
0
|
0
|
1476
|
|
POST
|
Is there a way to group layers using the ArcGIS Viewer for Silverlight?
... View more
03-13-2012
04:41 PM
|
0
|
2
|
3267
|
|
POST
|
It is a corrupt mxd that the msd was based on. I partially recreated the mxd (for the offending layers) and now all the blank geometry types are defined as "esriGeometryPoint". All is right with the world. 🙂
... View more
03-13-2012
11:00 AM
|
0
|
0
|
792
|
|
POST
|
So what should I do if the geometry type is blank in the map service for a point layer? I have some point layers that are set to "esriGeometryPoint", but others are just blank. This causes a problem when trying to work with the ArcGIS Viewer for Silverlight. I cannot use the layer because the geometry type is "unspecified". How do I set the geometry type of an unspecified layer? Here's an example of a point layer with an unspecified geometry type: http://ndep-emap.nv.gov/ArcGIS/rest/services/eMap/MapServer/17
... View more
03-13-2012
09:44 AM
|
0
|
0
|
3380
|
|
POST
|
When I add the entire map service and enable popups on several layers with that map service, the popups do not work in the resulting web application. When I add just one layer within a map service and enable popups, they do work. I did mean that when I "click the Browse button and then navigate to your map service in the Browse panel, that the listing of services/the listing of layers within the services are in alphabetical order". I guess as you say this is expected behavior. I wish it was not since it makes things more difficult on my end - finding the layers in the order that I created the map service.
... View more
01-19-2012
03:01 PM
|
0
|
0
|
2640
|
|
POST
|
Ok...so I need to add each individual layer instead of adding the whole map service. I see now. Yikes! I have 97 layers in that map service. Oh well. Its still better than configuring each layer for popups writing html code with the flex viewer. When adding a new operational layer, the browser alphabetizes the layer list. This is not good. It would be better to have the layers listed in the order that they appear in the map service. Arg!
... View more
01-19-2012
11:22 AM
|
0
|
0
|
2640
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 06-11-2014 07:50 AM | |
| 1 | 06-14-2019 07:24 AM | |
| 4 | 08-25-2021 02:26 PM | |
| 1 | 04-04-2017 02:26 PM | |
| 1 | 10-15-2012 07:49 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-13-2026
09:12 AM
|