POST
|
What is the recommended procedure for adding content to a map using the QtQml runtime? My imagery tiles will load but I cannot get my features to have an initialized status and open in the map. They are stuck in the initializing status. It may just be a projection issue, but I have not found help on adding multiple types of data layers to a map. Is it necessary to initialize a layer, or do we just need to add it to the map? Do we need to initialize the geodatabaseFeatureServiceTable then add the FeatureLayer to the map? Thanks a bunch, Richard
... View more
04-21-2015
08:11 AM
|
0
|
1
|
2585
|
POST
|
Hello JavaScript API community, I've began working through the Javascipt Web and Mobile Applications book/tutorial to submerge myself in the API. In the lessons it asks us to use the JavaScript sandbox to test and develop code for each lesson. I've been running into a wall and it really frustrating because I just want to get to making an html5 site with the api. 1. In the sandbox I cannot get events to fire. Alerts do not work. Feature Layers do not load to the map. Does the sandbox not support AMD module loading? If not, should I even try to use the sandbox? 2. In the book the examples point to sample servers from esri. Some are available and some are not. Is there are place on the developer site where the information about running sample servers is maintained? 3. As a beginning javascript developer and junior level python developer, where does esri recommend that I begin with the api? The sample codes I look at match what I am doing, yet things just are not working. I can work with map service layers but that is about it at this point. There is some sort of major bug I am missing. I should mention that making a web map is not my goal here. I am going to be making maps using the api and available sample servers. When I can do this, I plan on learning the proxy so that I can access my unshared protected services.
... View more
09-14-2014
07:28 AM
|
0
|
1
|
1030
|
POST
|
My current task is developing a python addin toolbar to help with my data production. It works great most of the time, but there are closed state issues that I need to seriously address at some point. Anyway, I've read into the 'headless' user technique for restricting what operations can be performed on the database during scripting. I've been absorbing the previous replies and seem to understand them as a need for user tiers with groups and permissions. Is this an accurate assessment?
... View more
06-24-2014
01:17 PM
|
0
|
0
|
548
|
POST
|
Table names are case-insensitive. All comparisons should be done with an insensitive operator or by first upcasing both strings. Best practice is to reserve the SDE user for geodatabase administration. Instead of creating spatial data as SDE you really ought to create user(s) (with same-named schemas) to own spatial tables, and user(s) to access it (without the possibility of removing the tables accidentally, or as a result of a DOS attack). - V Vince, I created a new version under my user and connected to it using database connections. Is that more or less what you were referring to? The owner of my editing version is now richard instead of sde. Thanks, Richard
... View more
06-24-2014
08:37 AM
|
0
|
0
|
548
|
POST
|
Table names are case-insensitive. All comparisons should be done with an insensitive operator or by first upcasing both strings. Best practice is to reserve the SDE user for geodatabase administration. Instead of creating spatial data as SDE you really ought to create user(s) (with same-named schemas) to own spatial tables, and user(s) to access it (without the possibility of removing the tables accidentally, or as a result of a DOS attack). - V Setting all upper case did solve the issue. It will just remain a mystery. I will have to do some additional research into your second paragraph. We operate by using versions, but alas I am not at that stearing wheel.
... View more
06-23-2014
07:37 AM
|
0
|
0
|
548
|
POST
|
I have noticed depending on how and where layers are created in SDE the software changes the capitalization regardless of what I entered as the creation or output name. What problem is it causing you? If trying to set a layer by the source name then I would suggest to uppercase all layer name variables when looking for them, so they will match. Would that help with this situation? Thanks, Sol Using .upper() at the end of the dataSource fixed the problem and my python set() condensed the layer's dataSources down to a single source. This is just something I has to be included in all scripts with dataSources. Thank you for your input.
... View more
06-23-2014
07:30 AM
|
0
|
0
|
548
|
POST
|
Hello, I am developing python addins that access a replica 10.2.1 file geodatabase. When I list my layers and the access layer.datasource, I put these data sources into a python set object so that I will have one source path for multiple layers. There is a problem I am having with the capitalization of the dataSource in one of the layers. See below: ['Database Connections\\Siskiyou.sde\\SISKIYOU.SDE.sdm_CrescentLink\\SISKIYOU.SDE.sdm_CablePathAccess', 'Database Connections\\Siskiyou.sde\\SISKIYOU.SDE.sdm_CrescentLink\\Siskiyou.SDE.sdm_CablePathAccess'] notice how one is in all caps and the other is not? If there is a behavior layer dataSources that results in this behavior I am unaware of it. Any advice would be greatly appreciated.
... View more
06-23-2014
06:28 AM
|
0
|
7
|
3240
|
POST
|
Can someone please inform us/me on why the edit.stopEditing(True) method does not work? I have been using it in a Python add-in with a da.UpdateCursor. edit.isEditing prints True but when the script reaches edit.stopEditing(True), an exception is thrown and the e.message reads "Start Edit Session". My solution is to comment out edit.stopEditing. I am at a dead end with this and after reading about versioned geodatabase states I have a feeling that they are related. Thanks
... View more
04-21-2014
05:20 AM
|
0
|
1
|
495
|
POST
|
try:
ID_check = entry[0]
print entry[0]
intable = "in_memory\ID_Check"
counter = 0
with da.SearchCursor(intable,["ID"]) as cursor:
for row in cursor:
if row[0] == ID_check:
counter += 1
if counter >= 1:
pythonaddins.MessageBox("This Feature's ID is a duplicate. Solve thi s error before continuing!","Error",0)
raise Exception()
elif counter == 0:
print "All is good, this ID is not a duplicate."
cursor = arcpy.da.InsertCursor(intable,["ID"])
cursor.insertRow([ID_check])
del cursor
edit = da.Editor(workspace)
edit.startEditing(False,True)
edit.startOperation()
with da.UpdateCursor(targetlayer,fields) as cursor:
for row in cursor:
row = entry
print "row: {}".format(row)
cursor.updateRow(row)
del cursor
del row
edit.stopOperation()
#edit.stopEditing(True)
except Exception as e:
print e.message
print arcpy.GetMessages()
arcpy.RefreshActiveView()
print "Complete"
When using "print edit.isEditing" after each edit method they are all true. When I uncomment the line edit.stopEditing(True) an exception is thrown before the print statement saying Start Edit Session. This happens in a versioned sde environment. When using the same code in a personal geodatabase the exception message states something like "unable to perform within an edit session." So my solution for sde is to comment out the stop editing method. This works however if I create a feature then save edits. If I later change the attributes or geometry of that feature the state of the geodatabase changes and the edits cannot be saved. "Attempting to perform action on a closed state. Unable to save edits."
... View more
04-21-2014
05:12 AM
|
0
|
0
|
1721
|
POST
|
option = pythonaddins.MessageBox("Is this information correct? {}".format(viewlist[0]),"Question",4)
if option == "Yes":
entry = viewlist[0]
values = [entry[1],int(entry[2]),entry[3]]
edit = da.Editor(workspace)
edit.startEditing(False, True)
edit.startOperation()
print "Operation Started. Is Editing? {}".format(edit.isEditing)
with da.UpdateCursor(targetlayer,updatefields) as cursor:
for row in cursor:
row = values
cursor.updateRow(row)
del cursor
del row
print "Cursor Cleared"
edit.stopOperation()
print "Operation Stopped. Is Editing? {}".format(edit.isEditing)
edit.stopEditing(True)
print "Editing Stopped. Is Editing? {}".format(edit.isEditing) When in an editing session in ArcMap 10.2.1 I am running the update cursor on a feature that already has attributes in the fields I am updating (like from a template), I receive
Operation Started. Is Editing? True
Cursor Cleared
Operation Stopped. Is Editing? True
Traceback (most recent call last):
File "C:\Users\RHpec0312\AppData\Local\ESRI\Desktop10.2\AssemblyCache\{4DA62CAF-5C0F-4423-B752-82E1F84D8B4D}\Drops_addin.py", line 725, in onRectangle
edit.stopEditing(True)
RuntimeError: start edit session The attributes are updated in the attribute table but I am unable to save the edits. Instead I receive an error about the geodatabase being in a closed state. There is a little bit of information on the Editor Class Page that talks about initializing a cursor for each editing operation. That cursors should not be used in multiple operations due to the state of the geodatabase being tied to the cursor. Any help is greatly appreciated. Richard
... View more
03-26-2014
07:46 AM
|
0
|
0
|
2231
|
POST
|
I too am unable to view WMS 1.1.0 or 1.3.0 inside of ArcMap 10.2. Both my GetMap and GetCapabilities work in a browser and I can view the the images inside of MapServer for Windows. They are being served by Apache so my situation is a little different. The problem is the same though, that the images are not being displayed inside ArcMap. A GetCapabilities request is being sent to MapServer successfully from ArcMap. There is not record in the logs of a GetMap request being sent at all. Richard
... View more
01-20-2014
08:38 AM
|
0
|
0
|
381
|
POST
|
True about the color balancing. From what I can gather, the various color balancing techniques are very different from one another, and in some cases one will work while the others cannot. When multiple rasters (over 5) are involved, I would recommend setting them into groups by attribute in the footprint. There is a block setting in the color balancing menu that will treat all rasters in a group as a single raster and not balance them individually. This should allow smaller groups to be balanced to larger groups. Right now I have all of the Landsat 8 scenes that cover South Carolina. Since each row was shot hours apart, there are drastic differences between the images. I realize that Landsat data is WYSIWYG, but the analysis process of the entire states seems difficult when the histograms are shifted. I have had color balancing crash ArMap ( I don't know why), and I have gotten white blotches (I don't know why). So far my best case scenario with color balancing is with 3rd Order Dodging on 8 bit unsigned NAIP Imagery. The 16 bit unsigned Landsat imagery does not play well with color balancing for me. I did read in a python script this morning where an Esri employee used the color grid balance on a Landsat 8 mosaic dataset. I will be going with that next time. Looking through Esri python scripts for mosaic datasets seems to be the best place to find the answers for this stuff. After spending time learning the theory, process, and what does not work, I just need to know what works so I can move on to the analysis ....
... View more
12-23-2013
08:22 AM
|
0
|
0
|
462
|
POST
|
Hi, I'm at work now and cannot remember how I selected a python script to run when I open Pythonwin. The purpose is simply to import arcpy modules and python modules. Through my training I learned how to do it in Windows by choosing the script path within the properties of the program somewhere. I am unable to locate the resource I used, but think that it is somewhere in a book or webpage closeby. My other thinking is that I have to set an environment variable or something to that effect. Does anyone know the process for selecting a python script to run at the startup of PythonWin? Thanks, Richard
... View more
12-23-2013
08:05 AM
|
0
|
1
|
709
|
POST
|
Hello, I have deployed geoportal 1.2.2 successfully using Tomcat as the web server. It is a learning process but I have drudged through the muck and can now visit my geoportal online. The issue I have, which I have given up on for the time being, is that the smtp email client on the feedback page just won't connect to smtp servers. I have used telnet and can detect the server. The error is get is that a TLSSTART Command was not initiated. Don't quote me on the syntax of my error messages please. Turning off firewall does not help. I can tweak setting on gmail, but only changes the error message slightly. My feeling is that something from inside the java built geoportal is not initiating the correct message to begin communication with the smtp server. There was nothing in the geoportal documentation detailing the innards of this email tool. I don't know Java so any attempt to start digging into Tomcat's JavaMail might just break my geoportal. Any thoughts? For now I am shifting my project efforts towards publishing metadata. Thanks, Richard
... View more
12-05-2013
11:43 AM
|
0
|
1
|
3481
|
POST
|
Update: I went into the Results window and the Append tool shows the hour glass. I right clicked Output Features and chose to Add To Display. The new waterbodies feature class was added to the display. However, the background process is still running. The lock on my geodatabase is still there.
... View more
11-22-2013
04:52 AM
|
0
|
0
|
492
|
Title | Kudos | Posted |
---|---|---|
1 | 11-20-2013 12:52 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|