|
POST
|
Howzit All, Has anyone got a solution for ArcGIS Server 10.1 to this issue? We have a similar situation Geoprocssing Overview: - create a Feature Layer from a sql expression - generate Kernel Density Layer - set Layer into resulting Dynamic Map Service Layer as a Raster Layer If the feature layer returns no records, then no result is returned and the GP Service fails because it cannot add the "Invalid" null result to the map. Setting arcpy.SetSeverityLevel(0) ensures the task completes. I think the problem occurs at the map services level because the task completes. Susan North South GIS Auckland, New Zealand
... View more
10-02-2012
03:00 PM
|
0
|
0
|
1332
|
|
POST
|
Howzit All, We have identified a problem with the ArcGIS Server 10.1 REST API. With Silverlight, we developed a module that uses IdentifyTask to query against a DEM layer in a map service. This module worked when the map service was run on ArcGIS Server 10.0, but when the map service was deployed onto ArcGIS 10.1, IdentifyTask fails to return any but null values. The result from IdentifyTask returns Null, or Results.Count is 0 when queried against a DEM. IdentifyTask will work with a feature layer though. We have tried running IdentifyTask() against several DEMs - a file geodatabase DEM, an ArcSDE DEM, and a Tif. All data sources return null results, yet they work fine against the ArcGIS Server 10.0 REST API. ReturnZ is set to True to allow for the change in usage at ArcGIS Server 10.1. The development platform is Visual Studio 2010, C# Silverlight. We have map Services created in both flavours of ArcGIS Server. Here�??s one of the DEM layers I had tested against, hosted over 10.1, to prove there may be a bug with IdentifyTask: http://marketing.geocirrus.co.nz/arcgis/rest/services/WCC/clip_dem/MapServer/1 The local ESRI distributor have confirmed there is no issue when querying the DEM directly against the REST End point. But the problem is not about the REST end point but at the REST API implementation of IdentifyTask() Susan
... View more
09-27-2012
02:51 PM
|
0
|
6
|
2329
|
|
POST
|
I been struggling with this the last few days uin ArcGIS Server/Desktop 10.0 service pack 4. Coiuld be that the find route is only a function for arcgisonline and uses it's tokens. Have you tried putting the functionality into a GP Tool? Susan
... View more
06-04-2012
01:30 PM
|
0
|
0
|
984
|
|
POST
|
Thanks for getting back so prommptly Applied Service Pack4 AND the SpatialJoin batch. It actually works with Modelbuilder. Will try ArcPy now (but I am sure it will be fine if it fixed the MB issue) Thanks for getting back with your tests (though bad 😞 ). By "works in ArcGIS Desktop" you mean when you use the tool dialog, right? What is meant by 'fails miserably'? Does it crash when you use the tool in ModelBuilder? You are going to 'load full Service Pack' - which service pack? You need to have 10 sp4 installed and then install the patch on top of sp4. If you have sp3 then you don't need the patch. Please let us know if you are getting error on sp3. Thanks again.
... View more
05-02-2012
03:18 PM
|
0
|
0
|
458
|
|
POST
|
This is wierd - the tool works fine from ArcDesktop but fails miserably with Modelbuilder and ArcPy. Will try Loading the full Service Pack as there is a problem with getting this small patch run on a Windows 7 64-bit machine.
... View more
05-02-2012
02:39 PM
|
0
|
0
|
458
|
|
POST
|
remember to format with the tabs. all formatting is lost when I copied and pasted.
... View more
02-29-2012
01:56 PM
|
0
|
0
|
689
|
|
POST
|
Copy and paste into Python file, update the directory variable in the code and run. All aux will be removed in the folder and subFolders. #smjRemoveStatisticsFromFileImagery.py #Purpose: #Remove image statistics from file-based imagert #import Modules import string, os, datetime, sys #banner print "***\nRemove Image Statistics from Directory and Subdirectories\n***" #input Parameters #USER NEEDS TO PROVIDE A DIRECTORY VALUE directory=r"D:\Temp" #r"c:\temp" #walk print "processing" + directory startTime=datetime.datetime.now() #walk Through The Subdirectories print "***Walk:\t" + directory for src, dirs, files in os.walk(directory): #process Each Directory wsp=os.path.join(directory, src) print "***processing:"+src #get Files try: fls=os.listdir(src) for fl in fls: #check If Aux File if string.find(string.lower(fl),".aux") > -1: try: os.remove(os.path.join(wsp,fl)) except: print "cannot Process " + os.path.join(wsp,fl) except: print "cannot Process " + wsp #print Elapsed Time print "Elapsed Time:" + str(datetime.datetime.now()-startTime) #complete print "complete"
... View more
02-29-2012
01:55 PM
|
0
|
0
|
689
|
|
POST
|
Hi The problem is persistant with ArcSDE and works nicely with File Geodatabase Connections. (I would expect the opposite) arcpy.TableToDomain_management() is the tool that can be used Susan
... View more
02-22-2012
12:06 PM
|
0
|
0
|
532
|
|
POST
|
Try this: i am not sure if I understand your logic (because features are independant of one another). 'get a reference to the feature Layer pFeatureLayer dim pFeatureSelection as IFeatureSelection = pFeatureLayer dim pSelectionSet as ISelectionSet = pFeatureSelection.SelectionSet dim pFeatureCursor as IFeatureCursor pSelectionSet.Search Nothing, true, pFeatureCursor set pFeature as IFeature = pFeatureCursor.NextFeature 'loop Do While not pFeature is Nothing 'do Something 'next Feature set pFeature as IFeature = pFeatureCursor.NextFeature Loop Susan -- Susan Jones GIS Consultant Spatial Logic Ltd Auckland, NEW ZEALAND Email: sjones@spatiallogic.co.nz http://www.spatiallogic.co.nz
... View more
10-12-2011
12:22 PM
|
0
|
0
|
383
|
|
POST
|
kia Ora Mike create yourself a selection set from the feature Layer. from here you'll be able to get a cursor of just the selection set features. Susan -- Susan Jones GIS Consultant Spatial Logic Ltd Auckland, NEW ZEALAND Email: sjones@spatiallogic.co.nz http://www.spatiallogic.co.nz
... View more
10-11-2011
06:41 PM
|
0
|
0
|
2870
|
|
POST
|
did anyone ever find a solution to this. It is a real problem in ArcMap for pulling in excel files and pointing to an actual specified sheet and Cell. Grr, the deeper you dig the worse it gets. Susan Gabe, A Google search suggest this issue is causing many people problems from a vareity of web applications. One possible route you could explore is using JavaScript within the HTML in the Note popup in ArcGIS Explorer. There's an article here: http://www.whirlywiryweb.com/q/officedocs.asp. I did give it a try and ran into further issues but with some persistance you may be able to find a way through this. Regards Mike
... View more
08-04-2011
02:37 PM
|
0
|
0
|
514
|
|
POST
|
Hi I too struggled with this. Please see the following link http://forums.arcgis.com/threads/34881-replacefieldmap()-appears-broken-in-arcpy. Susan
... View more
07-22-2011
08:19 PM
|
0
|
0
|
215
|
|
POST
|
there is a huge problem with replaceFieldMap() and arcpy. I struggled for quite some time. See the link http://forums.arcgis.com/threads/34881-replacefieldmap()-appears-broken-in-arcpy. Susan
... View more
07-22-2011
08:16 PM
|
0
|
0
|
623
|
|
POST
|
Dear All: Attached is the python script with all it's formatting to make it easier to follow and demonstrate. Do a search on "NIM04" to get to the fieldMappings part in the arcpy script. . Susan the replaceFieldMap() Bug is located here in this piece of code --begin arcpy.AddMessage("***drop Existing Fields and Fields Not in the List") outFieldList = getOutFieldList(application) fieldMappings = arcpy.FieldMappings() fieldMappings.addTable("TableView") index = 0 while index < fieldMappings.fieldCount: #get Field Map, fm fm = fieldMappings.getFieldMap(index) fld = fm.outputField fldName = checkField(string.upper(fld.name)) fld.name = fldName fm.outputField = fld fieldMappings.replaceFieldMap(index,fm) arcpy.AddMessage("***" + fld.name) #next Field Map index += 1 test = fieldMappings.exportToString() lstTest = string.split(test,";") for ts in lstTest: arcpy.AddMessage(ts) #tableToTable Fails arcpy.TableToTable_conversion("TableView",outWsp,application,"",fieldMappings) -- end
... View more
07-21-2011
03:21 PM
|
0
|
0
|
991
|
|
POST
|
Hi Joel and others, A very big thank you to this. Working with text strings is a little (lot) scary but atleast it solves the problem of the replaceFieldMap() Here is an example of what works, to solving NIM047605. (indentation is a bit out so I will also upload the python script separately). ---start #the Way TO Get Around Field Mapping From NIM047605 fieldMappings = arcpy.FieldMappings() fieldMappings.addTable("TableView") #use exportToString() To Dump Contents Into An ASCII File strFieldMaps = fieldMappings.exportToString() #each FieldMap Is Separated By A semi colon lstFieldMaps = string.strip(strFieldMaps,";") #loop Through The FieldMaps newfm = "" for fm in lstFieldMaps: #get The AliasName, The First Occurance In lstFm lstFm = string.strip(fm, " ") aliasName = lstFm[0] newAliasName = aliasName + "_Alias" #assign The Alias fm = string.replace(fm,aliasName + " ",newAliasName + " ") #add To The New FieldMap newfm = newfm + ";" #make The New FieldMap fieldMappings.removeAll() fieldMappings.loadFromString(newfm) #convert To Table WIth The New FieldMappings arcpy.TableToTable_conversion("TableView", "c:\\Temp\\new.gdb","newTable","",fieldMappings) ---end Susan
... View more
07-20-2011
03:34 PM
|
0
|
0
|
991
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-30-2015 05:37 PM | |
| 2 | 01-05-2015 12:03 PM | |
| 1 | 05-14-2015 08:36 PM | |
| 1 | 05-20-2015 04:31 PM | |
| 1 | 06-08-2015 03:20 PM |
| Online Status |
Offline
|
| Date Last Visited |
04-19-2021
01:25 PM
|