POST
|
Andy, Are you using corporate wireless access? If so, we had a similar problem early on with the collector. Our IT had to 'loosen' up the restrictions it had on ArcGIS Online. They also had to adjust a timeout to allow consisten use of our REST services. I couldn't tell you how they did it exactly, but it resolved that problem. Hi Luke, Yes I am using corp. wireless. I'll check w/ our IT. Thanks!! Just curious about how "big" of a data sync are you guys doing? ESRI says they suspect a bug for large syncs but it doesn't seem like I should be hitting that wall with less than 20 edits to sync.
... View more
06-20-2014
07:30 AM
|
0
|
0
|
607
|
POST
|
Well there are 19 total edits and if I check the app properties it says there is 96KB of data which certainly doesn't seem like much to me. Russ, I'm trying to use the script. I went to the specified folder on the device and I see no geodatabase? See attachment. I went into each sub folder and there are no geodatabases present.
... View more
06-20-2014
06:20 AM
|
0
|
0
|
607
|
POST
|
We are planning an update for the UC which will address this issue. Here is the python script..watch out for any white spaces that may be generated when copying and pasting..onnce the KB article is released I will point to that support page. First copy the .geodatabase file to your computer. You can get to the .geodatabase file under the ArcGIS_Collector folder > offline data > folder with user account name associated with downloaded data > folder with the webmap id > copy the .geodatabase and you paste it onto your computer.
#!/usr/bin/python
# Import sys, getopt, arceditor, arcpy modules
import sys, getopt, arceditor, arcpy
def main(argv):
input_gdb = 'Enter .geodatabase location'
output_gdb = 'Enter in an existing fgdb location you want data to be exported into'
try:
opts, args = getopt.getopt(argv,"hi:o:",["ifile=","ofile="])
except getopt.GetoptError:
print 'test.py -i <input_gdb> -o <input_gdb>'
sys.exit(2)
for opt, arg in opts:
if opt == '-h':
print 'test.py -i <input_gdb> -o <output_gdb>'
sys.exit()
elif opt in ("-i", "--ifile"):
input_gdb = arg
elif opt in ("-o", "--ofile"):
output_gdb = arg
print 'Input gdb is: "', input_gdb
print 'Output gdb is: "', output_gdb
Temp_xml = "temp.xml"
# Delete the xml workspace document if it exists.
arcpy.Delete_management(Temp_xml)
# Export XML Workspace Document
arcpy.ExportXMLWorkspaceDocument_management(input_gdb, Temp_xml, "DATA", "BINARY", "METADATA")
# Import XML Workspace Document. This assumes that the outputfile geodatabase is EMPTY.
arcpy.ImportXMLWorkspaceDocument_management(output_gdb, Temp_xml, "DATA", "")
# Delete the xml workspace document if it exists.
arcpy.Delete_management(Temp_xml)
if __name__ == "__main__":
main(sys.argv[1:])
Russ OK I went to that folder and I see no geodatabase, suggestions?
... View more
06-20-2014
06:17 AM
|
0
|
0
|
498
|
POST
|
Do you know roughly the size of the amount of data you are trying to sync? We have an issue with Android with syncing larger amounts of data and it will be fixed in our upcoming update. Russ Well there are 19 total edits and if I check the app properties it says there is 96KB of data which certainly doesn't seem like much to me.
... View more
06-20-2014
05:58 AM
|
0
|
0
|
607
|
POST
|
Sorry Andrew, I did not see your post from earlier today. What error are you seeing? Are you using Hosted Service or ArcGIS Server 10.2.2? Are you using iOS or Android? You can try to use the python script listed here which will take your collected features and bring them into a geodatabase. This works with newly created features. http://forums.arcgis.com/threads/107488-Offline-works-in-ios-but-not-android Also I recommend you contact support if this is an urgent issue and they can help you try and sync the data back. Russ No problem, just frustrated. Error is very generic just says: "Sync Error An error occurred while synchronizing edits". This is a Hosted Service using Android on a Garmin Monterra GPS. I'll give the script a try. Thanks. Is this a bug? Any idea what might be happening? I had been using my current workflow for about 3 weeks with very good success until today.
... View more
06-19-2014
01:21 PM
|
0
|
0
|
504
|
POST
|
Well since there is no response I guess I'm left to manually do my updates as well. Thanks for no help. I hope there is some resolution since I WAS hoping to employ this technology across our department in addition to finishing the current study with it but now I will need to look for alternative solutions.
... View more
06-19-2014
12:36 PM
|
0
|
0
|
504
|
POST
|
I should mention that one point feature of 19 did sync, and I have successfully sync'd this map in the past with no issues. I also tried the force stop with no success.
... View more
06-19-2014
11:33 AM
|
0
|
0
|
504
|
POST
|
I'm having the same issue as Faye. I've checked my services and I have edit tracking disabled, what is the fix? I don't have another android device so that work-around won't work for me. Can I just connect with a cable and download?
... View more
06-19-2014
11:07 AM
|
0
|
0
|
504
|
POST
|
Problem solved. I was trying to view/import a CAD file created with AutoCAD 13. ArcGIS doesn't support that version. I saved it as AutoCAD 2000 and it worked.
... View more
10-14-2013
10:05 AM
|
0
|
0
|
661
|
POST
|
Hi, I am using 10.1 SP1 too, share the files and I can test it. Akos private message sent.
... View more
10-14-2013
07:07 AM
|
0
|
0
|
661
|
POST
|
Same here. Anyone out there? hellooo would be happy to ftp file etc to someone who can test. Andy
... View more
10-11-2013
07:28 AM
|
0
|
0
|
661
|
POST
|
I have the bing base layer open in arc for a project. How do I clip just the section I want so the file does not contain the world? Thank you! I think these instructions will work for what you want to do. I use this process all of the time in ArcMap 10.1 http://faculty.unlv.edu/jensen/html/Microsoft/BingMaps/
... View more
03-15-2013
10:02 AM
|
0
|
0
|
999
|
POST
|
Mike, Thank you! Each line did exactly what you said it would do! I may actually get this thing to work after all.
... View more
12-14-2012
11:39 AM
|
0
|
0
|
226
|
POST
|
I'm sure this very easy but as a progamming nitwit I cannot figure it out. When I run the script in the Python Shell in ArcGIS it runs and displays every layer (I only want to display the output of the intersect operation). When I try running the script from my toolbox it runs successfully but the desired intersect layer isn't added. My other issue is that everytime I run the script I have to create a new "ProjectLocation_Intersect" layer. I don't want to do that, I just want one layer, how do I tell arcgis that its OK to overwrite that layer? I'm running ArcGIS 10.1, Python 2.7. sript follows: # Import arcpy module import arcpy # Local variables: mxd= arcpy.mapping.MapDocument(r"R:\lwcd\_land\GIS\SpecialProjects\Cultural_Resource_Map\Cultural_Map_template2.mxd") ProjectLocation = "R:\\lwcd\\_land\\GIS\\SpecialProjects\\Cultural_Resource_Map\\Cultural.gdb\\ProjectArea\\ProjectLocation" gm_seq_shp = "R:\\lwcd\\_land\\GIS\\Data\\Control\\gm_seq.shp" gm_par_shp = "R:\\lwcd\\_land\\GIS\\Data\\Landbase\\gm_par.shp" topbound_shp = "R:\\lwcd\\_land\\GIS\\Data\\USGSBoundaries\\topbound.shp" ProjectLocation_Layer = "ProjectLocation_Layer" topbound_Layer = "topbound_Layer" gm_seq_Layer = "gm_seq_Layer" gm_par_Layer = "gm_par_Layer" ProjectLocation_Intersect4 = "R:\\lwcd\\_land\\GIS\\SpecialProjects\\Cultural_Resource_Map\\Cultural.gdb\\ProjectArea\\ProjectLocation_Intersect4" # Process: Make Feature Layer arcpy.MakeFeatureLayer_management(ProjectLocation, ProjectLocation_Layer, "", "", "OBJECTID OBJECTID VISIBLE NONE;SHAPE SHAPE VISIBLE NONE;ParcelID ParcelID VISIBLE NONE;ProjectName ProjectName VISIBLE NONE") # Process: Make Feature Layer (2) arcpy.MakeFeatureLayer_management(topbound_shp, topbound_Layer, "", "", "FID FID VISIBLE NONE;Shape Shape VISIBLE NONE;USGS_QD_ID USGS_QD_ID VISIBLE NONE;QUAD_NAME QUAD_NAME VISIBLE NONE;MAP_EDIT MAP_EDIT VISIBLE NONE;ST_NAME1 ST_NAME1 VISIBLE NONE;ST_NAME2 ST_NAME2 VISIBLE NONE;ST_NAME3 ST_NAME3 VISIBLE NONE;ST_NAME4 ST_NAME4 VISIBLE NONE;DATE_REV DATE_REV VISIBLE NONE;DATE_PUB DATE_PUB VISIBLE NONE;PHOTO_R_DT PHOTO_R_DT VISIBLE NONE") # Process: Make Feature Layer (3) arcpy.MakeFeatureLayer_management(gm_seq_shp, gm_seq_Layer, "", "", "FID FID VISIBLE NONE;Shape Shape VISIBLE NONE;TAG TAG VISIBLE NONE") # Process: Make Feature Layer (4) arcpy.MakeFeatureLayer_management(gm_par_shp, gm_par_Layer, "", "", "FID FID VISIBLE NONE;Shape Shape VISIBLE NONE;parno parno VISIBLE NONE;owner1 owner1 VISIBLE NONE;owner2 owner2 VISIBLE NONE;tax_addr tax_addr VISIBLE NONE;tax_add2 tax_add2 VISIBLE NONE;csz csz VISIBLE NONE;revised revised VISIBLE NONE;s_t_r s_t_r VISIBLE NONE;sch_dist sch_dist VISIBLE NONE;assmt_yr assmt_yr VISIBLE NONE;lvalue lvalue VISIBLE NONE;ivalue ivalue VISIBLE NONE;avalue avalue VISIBLE NONE;doc_no doc_no VISIBLE NONE;deed_ac deed_ac VISIBLE NONE;legal1 legal1 VISIBLE NONE;legal2 legal2 VISIBLE NONE;legal3 legal3 VISIBLE NONE;legal4 legal4 VISIBLE NONE;legal5 legal5 VISIBLE NONE;legal6 legal6 VISIBLE NONE;c_sqft c_sqft VISIBLE NONE;c_acres c_acres VISIBLE NONE;prop_csz prop_csz VISIBLE NONE;prop_add prop_add VISIBLE NONE") # Process: Intersect arcpy.Intersect_analysis("ProjectLocation_Layer #;topbound_Layer #;gm_seq_Layer #;gm_par_Layer #", ProjectLocation_Intersect4, "ALL", "", "INPUT") # get the data frame df = arcpy.mapping.ListDataFrames(mxd,"Main Map")[0] # add the layer to the map at the bottom of the TOC in data frame 0 addLayer = arcpy.mapping.Layer("ProjectLocation_Intersect4") arcpy.mapping.AddLayer(df, addLayer,"TOP")
... View more
12-13-2012
10:23 AM
|
0
|
2
|
583
|
POST
|
Jorge, Thank you for your reply. I've created a PythonToolbox and modified the script but I'm not sure where that "fix" that you added is supposed to go after #Here comes the problem My syntax checks out so far in ArcCatalog, but the tool still has a red X thru it. I'm attaching a screen grab of ArcCatalog as well as my script. I'd really appreciate any further help if you have time. Thanks in advance! import arcpy class Toolbox(object): def __init__(self): """Define the toolbox (the name of the toolbox is the name of the .pyt file).""" self.label = "Location Map Toolbox" self.alias = "Location Map" # List of tool classes associated with this toolbox self.tools = [FillTitleBlock] class Tool(object): def __init__(self): """Define the tool (tool name is the name of the class).""" self.label = "Fill Title Block" self.description = "Fill Title Block" self.canRunInBackground = False # user project data input def getParameterInfo(self): """Define parameter definitions""" #params = None #return params OwnerName= arcpy.Parameter( displayName= "Owner Name", name= "OwnerName", datatype= "GPString", parameterType= "Required", direction= "Input") ParcelID= arcpy.Parameter( displayName= "Parcel ID", name= "ParcelID", datatype= "GPString", parameterType= "Required", direction= "Input") parameters= [OwnerName, ParcelID] return parameters def isLicensed(self): """Set whether tool is licensed to execute.""" return True def updateParameters(self, parameters): """Modify the values and properties of parameters before internal validation is performed. This method is called whenever a parameter has been changed.""" return def updateMessages(self, parameters): """Modify the messages created by internal validation for each tool parameter. This method is called after internal validation.""" return def execute(self, parameters, messages): """The source code of the tool.""" #Layout and Table of Contents variables mxd= arcpy.mapping.MapDocument(r"R:\lwcd\_land\GIS\Maps\Templates\LocationMap.mxd") df = arcpy.mapping.ListDataFrames(mxd, "Base Map")[0] lyr= "Winnebago Co Parcels" USGS= "USGS 24k Topo Map Boundaries" QSE= "Quarter Section" #Parameters OwnerName= parameters[1].valueAsText ParcelID= parameters[2].valueAsText #Input title block data for txtelem in arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT"): if txtelem.name == "Owner_Name": txtelem.text = OwnerName elif txtelem.name == "PID": txtelem.text = ParcelID #Select parcel and zoom to it selPID= "\"parno\" = '" + ParcelID + "'" arcpy.SelectLayerByAttribute_management(lyr, "NEW_SELECTION", selPID) #Input ParcelID, USGS Quad, and Quarter Section arcpy.MakeFeatureLayer_management(lyr, "ParSel", selPID) parLyr= arcpy.SelectLayerByLocation_management(lyr,"ARE_IDENTICAL_TO","ParSel") rows= arcpy.SearchCursor(parLyr) row= rows.next() lblOwner= arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "Owner")[0] if row.isNull("owner1") == True: lblOwner.text= "None found." else: lblOwner.text= row.getValue("owner1") #The layers that the information is pulled from for the title block USGSLyr= arcpy.SelectLayerByLocation_management(USGS,"INTERSECT","ParSel") rows= arcpy.SearchCursor(USGSLyr) row= rows.next() lblUSGS= arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "USGS")[0] lblUSGS.text= row.getValue("QUAD NAME") QSELyr= arcpy.SelectLayerByLocation_management(QSE,"INTERSECT","ParSel") rows= arcpy.SearchCursor(QSELyr) row= rows.next() lblQSE= arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "QSE")[0] lblQSE.text= row.getValue("TAG")
... View more
12-05-2012
07:28 AM
|
0
|
0
|
853
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|