POST
|
My steps for workgroup installation above worked for me. The issue I was having was corrupted ArcGIS Server installation, so I removed and re-install and all went smooth. Thanks
... View more
06-23-2022
09:16 AM
|
0
|
0
|
755
|
POST
|
Hi and thanks for sharing the issue and fix details. I have a similar scenario and thought to post it under this thread rather than posting a brand new question. I am looking for a bit clarity here as I have ESRI developer license and am trying to setup ArcGIS Enterprise 10.9 Workgroup. The available documentation link https://enterprise.arcgis.com/en/documentation/install/database-server/10.8/intro-workgroup-database-server-installation.htm talks about setting up Workgroup database rather than how the whole Enterprise Portal setup work. Can you please share your experience regarding a step by step procedure and requirement regarding how it should be setup? I tried following and got stuck at ArcGIS Server Authorization step. Setup Portal and provide the json authorization file for Workgroup to license it. Setup Web Adaptor and Portal context. Setup ArcGIS Server and authorize using the ArcGIS Server Workgroup provisioning file. It leads to an error 'Unspecified error no valid feature found in the received authorization data. Please check the data you entered and try again'. I have tried https://support.esri.com/en/technical-article/000023647 and https://support.esri.com/en/technical-article/000012007 and both of these links seems partly related to the scenario described here, but don't address the issue. Next step is to setup datastore, but can't proceed beyond this point. Can you please share your thoughts if I am missing anything here?
... View more
06-20-2022
01:34 PM
|
0
|
0
|
774
|
POST
|
Thanks Jonathan for your quick reply. I will just reset them as you mentioned. Can we configure them to a different drive location on the server?
... View more
01-26-2018
04:07 PM
|
0
|
0
|
834
|
POST
|
Dear Dominik, First of all thanks for the valuable post as documentation on 'GeoEvent Poll XML form external website' is limited. I was able to pull information from a couple of xml sources but am struggling with extracting information from a multi-level hierarchical xml structure as attached to this message. My first question is if I can extract all the location information defined at the lowest hierarchical position along with high level details from the top level xml hierarchical nodes and feed it into a standard feature service. My current experiment either extract one record if I select the top level node as 'XML Object Name' or 8 records if I select the 5th level node i.e., 'Location', but lose other high level information in the later scenario. Can you kindly provide any insight about it? My second question is about having more than one objects inside an 'Issue' element but GeoEvent is only picking a single one from it, though I selected 'Location' as my 'XML Object Name'. Can we somehow extract all the location objects with all the elements and attribute information from this xml? In advance I thank you for your support and time.
... View more
12-24-2015
08:47 AM
|
0
|
1
|
264
|
POST
|
Greetings, I was searching for some reference / documentation / link if we can use arcpy to access secure ArcGIS Server map/image services for geoprocessing analysis. This geoprocessing script is exposed in the form of geoprocessing service and is accessed by different web applications. I have used a Arcgis server connection file to work it out somehow but different applications use standard url format i.e., 'http://serverName:Port/arcgis/services/ImageServices/ABCTest/ImageServer ' and our security module deals with individual user connections rather than a standard connection file. Kindly, share any reference or your experience in this regard and if it is even possible? Thanks in advance for your help and support.
... View more
02-16-2015
09:03 PM
|
0
|
0
|
3937
|
POST
|
Thanks everyone for your comments. Xander pointed it correctly as I somehow was using arcpy.Polygon and arcpy.CreateFeatureclass_management methods in my original script, both methods use the same variables 'has_m and has_z' and I didn't pay attention to them as they both take different values and data types. Once again a round of applaud for Xander . I forgot to mention that arcpy exception handling didn't help in catching this error.
... View more
02-10-2015
11:09 PM
|
0
|
0
|
640
|
POST
|
Greetings, I am experiencing a bit wierd response as I would like to create a polygon object and enter its z-values using arcpy. It seems all goes fine interms of execution but when I try to query the newly created object, the z-values are set to zeros. I am using ArcGIS Desktop 10.2 on windows 7. Here is the code snippet. # Import system modules import arcpy import time, datetime from time import strftime import sys, traceback, os from arcpy import env from arcpy import da def showMessage(msgText): arcpy.AddMessage(msgText); print msgText def showErrorMessage(msgText): arcpy.AddError(msgText); print msgText def readGeom(inputFC, fieldNames): ## infc = arcpy.GetParameterAsText(0) infc = inputFC # Enter for loop for each feature # # Print the current multipoint's ID for row in arcpy.da.SearchCursor(infc, fieldNames): # showMessage("Feature {0}:".format(row[0])) partnum = 0 # Step through each part of the feature # for part in row[1]: # Print the part number # showMessage("Part {0}:".format(partnum)) # Step through each vertex in the feature # for pnt in part: if pnt: # Print x,y coordinates of current point # showMessage("{0}, {1}, {2}".format(pnt.X, pnt.Y, pnt.Z)) else: # If pnt is None, this represents an interior ring # showMessage("Interior Ring:") partnum += 1 try: aoiCoords = "5581313.715,3090151.188,88;5581925.211,3085259.218,88;5574281.509,3085259.218,22;5570918.28,3091679.929,55;5575198.75,3093208.669,44" template = r"PathTo_abc_POL" arcpy.AddMessage("Starting Processing... " + strftime("%d%b%y")) spatial_reference = arcpy.Describe(template).spatialReference ## env.workspace = out_path ## arcpy.env.overwriteOutput = True; dummyPoint = arcpy.Point() firstPoint = arcpy.Point() pointsArray = arcpy.Array() coordsTokens = aoiCoords.split(';') loopIndex = 0; for coord in coordsTokens: coordValues = coord.split(',') dummyPoint.X = float(coordValues[0]); dummyPoint.Y = float(coordValues[1]); dummyPoint.Z = float(coordValues[2]); ## showMessage("X, Y, Z: " +coordValues[0] + ", " +coordValues[1] + ", " + coordValues[2]) if(loopIndex ==0): firstPoint = dummyPoint loopIndex = loopIndex + 1 pointsArray.add(dummyPoint) #close the polygon pointsArray.add(firstPoint); has_z = "ENABLED" has_m = "DISABLED" aoiPolygon = arcpy.Polygon(pointsArray, spatial_reference, has_z, has_m) out_path = arcpy.env.scratchGDB test1 = "test1" geometry_type = "POLYGON" env.workspace = out_path arcpy.env.overwriteOutput = True; outFCName = arcpy.CreateFeatureclass_management(out_path, test1, geometry_type, template, has_m, has_z, spatial_reference) aoiWMName = outFCName.getOutput(0) cursor = arcpy.da.InsertCursor(test1, ["SHAPE@"]) cursor.insertRow([aoiPolygon]) del cursor desc = arcpy.Describe(test1) arcpy.AddMessage("0: HasZ: " + str(desc.hasZ) + ", HasM: " + str(desc.hasM)) readGeom(test1, ["OID@", "SHAPE@"]) arcpy.AddMessage("Processing completed") except Exception as e: tb = sys.exc_info()[2] tbinfo=traceback.format_tb(tb)[0] strMessages = "Exception Type is: " + str(sys.exc_type) strMessages = strMessages +"\nException Value is: " + str(sys.exc_value) strMessages = strMessages + "\nFailure Info: " + tbinfo arcpy.AddError(strMessages) arcpy.AddError(e.message) Can someone kindly share any thought or reference on how to fix it? Thanks in advance. Here are the resuts. Feature 1: Part 0: 5581313.715, 3090151.188, 0.0 5581925.211, 3085259.218, 0.0 5574281.509, 3085259.218, 0.0 5570918.28, 3091679.929, 0.0 5575198.75, 3093208.669, 0.0 5581313.715, 3090151.188, 0.0
... View more
02-10-2015
03:50 AM
|
0
|
6
|
4331
|
POST
|
Thanks Milita for your quick response and tips. I have done some cleanup now and you are right, syntax highlighting feature mixes/double up stuff and it is hard to cleanup. Vince seems to have worked on this matter as mentioned in one of his threads which unfortunately I am unable to find now. I would wait to see if he has any comments in this regard. Many thanks again.
... View more
08-29-2014
12:54 AM
|
0
|
1
|
570
|
POST
|
Hi, No answer to the post yet... I am still feeling desperate about it. Vince Angelo and Melita Kennedy your opinion would be heighly appreciated. Thanks in advance for your time and support. Regards.
... View more
08-27-2014
09:38 PM
|
0
|
3
|
570
|
POST
|
Greetings, I developed a ArcPython based code snippet for automating the registering/unregistering data as versione and it used to work fine till 10.1 but with my upgrade to 10.2.2 it stopped working, resulting in crashing ArcCatalog. Here is the code snippet.
for obj in datasets2Process4VersioningOperation:
showMessage("Un-registering Dataset - "+ obj)
if arcpy.Exists(obj):
if isDataVersioned(obj):
showMessage(obj + " needs to be unregistered as versioned")
arcpy.UnregisterAsVersioned_management(obj, "NO_KEEP_EDIT", "NO_COMPRESS_DEFAULT")
else:
showWarning(obj + " is already not versioned")
else:
showWarning(obj + " does not exist in the target environment")
def isDataVersioned(obj):
if arcpy.Describe(obj).IsVersioned:
return True
else:
return False
def showMessage(msg):
arcpy.AddMessage(msg);
If I am using the ArcCatalog functionality to Register or unregister than it works fine. Can someone verify if I am alone receiving this error message or it is a common problem with 10.2.2. I am working in Windows 7 environment. Regards.
... View more
08-24-2014
01:51 AM
|
0
|
0
|
652
|
POST
|
I am working on ArcObjects code snippet to export the delta changes in two versions in one ArcSDE environment and then importing the output file as delta changes in another environment. I am using a modified version of code from ESRI documentation link ‘http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//00010000019v000000’. Below is the code snippet that I am calling in my application. It is executing fine without any error but I am unable to see the imported changes. Can you kindly provide an insight on where I might be deviating from the ESRI documentation or if the code is not going through as per design and expected output? I am using ArcObjects/ArcGIS Desktop 10.2.1 and the code is based on c# on Windows 7 OS. public void exportDeltaChanges(IWorkspace sourceWorkspace, IWorkspace targetWorkspace, string outputXMLFilePathName, IWorkspace newWorkspace)
{
try
{
// Create the source dataset object.
IDataset sourceDS = (IDataset)sourceWorkspace;
IWorkspaceName sourceWorkspaceName = (IWorkspaceName)sourceDS.FullName;
//Create a name object for the target workspace.
IDataset dataset = (IDataset)targetWorkspace;
IWorkspaceName targetWorkspaceName = (IWorkspaceName)dataset.FullName;
IDataset newDS = (IDataset)newWorkspace;
IWorkspaceName newWorkspaceName = (IWorkspaceName)newDS.FullName;
VersionDataChanges vdc = new VersionDataChangesClass();
IVersionDataChangesInit versionDataChangesInit = (IVersionDataChangesInit)vdc;
versionDataChangesInit.Init(sourceWorkspaceName, targetWorkspaceName);
IDataChanges dataChanges = (IDataChanges)vdc;
//Listing modified feature classes and tables in a version
IEnumModifiedClassInfo enumModifiedFCsInfo = dataChanges.GetModifiedClassesInfo();
string modifiedFC = "";
int modifiedFCCounter = 0;
updateStatus("\n\n Listing Feature Modified Classes \n", messageImportance.Information);
var modifedClassInfo = enumModifiedFCsInfo.Next();
while (modifedClassInfo != null)
{
modifiedFCCounter += 1;
modifiedFC = modifedClassInfo.ChildClassName;
//Status message. Can be replaced with MessageBox.show("") method
updateStatus("\n\t\t " + modifiedFCCounter.ToString() + ": " + modifiedFC, messageImportance.Information);
modifedClassInfo = enumModifiedFCsInfo.Next();
}
if (modifiedFCCounter == 0)
{
updateStatus("No changes found in this version", messageImportance.Warning);
return;
}
String tempDirectory = "D:\\temp";
String deltaFile = Path.Combine(tempDirectory, outputXMLFilePathName);
//Check if file exists and clean
if(!File.Exists(deltaFile))
{
updateStatus("\nOutput path: " + deltaFile + "\n", messageImportance.Information);
IExportDataChanges dataChangesExporter = new DataChangesExporterClass();
dataChangesExporter.ExportDataChanges(deltaFile, esriExportDataChangesOption.esriExportToXML, dataChanges, true);
//Status message. Can be replaced with MessageBox.show("") method
updateStatus("\n\tVersion delta exported successfully", messageImportance.Important);
}
else
{
bool isFileDeleted = File.Delete(deltaFile);
if (isFileDeleted)
{
updateStatus("\nOutput path: " + deltaFile + "\n", messageImportance.Information);
IExportDataChanges dataChangesExporter = new DataChangesExporterClass();
dataChangesExporter.ExportDataChanges(deltaFile, esriExportDataChangesOption.esriExportToXML, dataChanges, true);
//Status message. Can be replaced with MessageBox.show("") method
updateStatus("\n\tVersion delta exported successfully", messageImportance.Important);
}
else
{
//Status message. Can be replaced with MessageBox.show("") method
updateStatus("Output file path name: " + deltaFile + " already exists, please delete or change output filename to proceed", messageImportance.Error);
return;
}
}
// Update user about importing the updategram into the target workspace.
//Status message. Can be replaced with MessageBox.show("") method
updateStatus("\nImporting data into new environment: '"+ newWorkspaceName.PathName + "'",
messageImportance.Important);
// Import the updategram into the target workspace.
IDeltaDataChanges deltaDataChanges = new DeltaDataChangesClass();
IDeltaDataChangesInit2 deltaDataChangesInit2 = (IDeltaDataChangesInit2) deltaDataChanges;
deltaDataChangesInit2.Init2(deltaFile, esriExportDataChangesOption.esriExportToXML, false);
IImportDataChanges importDataChanges = new DataChangesImporterClass();
importDataChanges.ImportDataChanges(newWorkspaceName, deltaDataChanges, false, true);
// Update user about operation successful completion.
//Status message. Can be replaced with MessageBox.show("") method
updateStatus("\nData import successful into the new environment:'" + newWorkspaceName.PathName + "'", messageImportance.Important);
}
catch(COMException comExc)
{
reportComException(comExc);
}
catch (Exception exc)
{
reportException(exc);
}
}
... View more
08-14-2014
05:17 AM
|
0
|
4
|
2183
|
POST
|
Greetings, I would like to project a set of input coordinates from say Coordinate System ???A??? to ???B??? or vice versa and add the results to the graphics layer which is supposed to be overlaid by another layer with Coordinate System ???C???. I have already checked the documentation at url ???http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Project??? but it is always converting the result to a spatial reference system which is same as of displayed map tiled layer. In my case, if the coordinate system A or B is similar to the C then my code implementation displays the graphic results on the map without any problem but if it differs from the ???Tiled map layer??? coordinate system than the results are either displaced or not showing at all. I understand the reason why they are not matching, but would like to know if there is any way we can overlay the projected coordinates on the tiled map layer if its coordinate system is different than tile map layer spatial reference. I know that using ???ESRI.ArcGIS.Client.Projection.WebMercator??? API we can transform the results from WGS84 to WebMercator coordinate system or vice versa but in my case the result coordinate can be different than both of these coordinate reference systems. One option could be reprojecting the results but that would be a bit mess in my opinion. Another solution could be if I move the logic to Geoprocessing task rather than calling geometry service but that is a second option which I don???t want to consider at first. Kindly, share your thought for any solution, architecture change, documentation or helpful link. In advance I thank you for your time and help.
... View more
06-30-2013
02:19 AM
|
0
|
1
|
661
|
POST
|
Thanks Curtis for your quick reply and help. It indeed answered both of my questions like a charm. Britt, this method is within the arcpy.da module. The code example is a bit weak in the help; I complained in the feedback - and I suggest you do too! Have you tried: subtypes = arcpy.da.ListSubtypes(table_name) I'm pretty sure the most direct approach would be to examine the associated domain with arcpy.da.ListDomains.
... View more
05-12-2013
08:48 PM
|
0
|
0
|
577
|
POST
|
Hello, I am following ESRI Documentation link 'http://resources.arcgis.com/en/help/main/10.1/index.html#//018w00000021000000' to print the details of subtype associated with a feature class but for some reason am always getting an error message complaining arcpy doesn't contain a definition for ListSubtypes(table_name) method. Here is the code snippet, subtypes = arcpy.ListSubtypes(table_name) for stcode, stdict in subtypes.iteritems(): print('Code: {0}'.format(stcode)) for stkey in stdict.iterkeys(): if stkey == 'FieldValues': print('Fields:') fields = stdict[stkey] for field, fieldvals in fields.iteritems(): print(' --Field name: {0}'.format(field)) print(' --Field default value: {0}'.format(fieldvals[0])) if not fieldvals[1] is None: print(' --Domain name: {0}'.format(fieldvals[1].name)) else: print('{0}: {1}'.format(stkey, stdict[stkey])) Here is the error message, [HTML]PYTHON ERRORS: Error Info: 'module' object has no attribute 'ListSubtypes' Exception Type is: <type 'exceptions.AttributeError'> Traceback info: File "\\machine_name\published_folder\GPT\listAllDataObjFieldsNamesTypes.py", line 72, in <module> subtypes = arcpy.ListSubtypes(schemaObject) [/HTML] Secondly, I was wondering if there is anyway we can get a subtype values instead of codes. I know I can use a search cursor to get the distinct values from a featureclass for the subtype field but that won't give me the actual values associated with these codes. Kindly share your thought on it. I am using ArcGIS Desktop 10.1 with ArcSDE 10 (64bit Oracle 11g). In advance I thank you all for your time and support.
... View more
05-12-2013
05:22 AM
|
0
|
2
|
1225
|
Title | Kudos | Posted |
---|---|---|
1 | 05-02-2012 05:46 AM |
Online Status |
Offline
|
Date Last Visited |
06-28-2022
12:01 AM
|