POST
|
I had a question perhaps someone can shed some light on. We have an SDE database (SQL Server 2016) with a multiple spatial references (all listed in the SDE metadata table), each of the same projection but differing extent parameters. When our users edit this dataset, they get a data frame error message when using ArcDesktop (ArcMap) 10.8.1, however when performing the same edit in ArcPro 2.8, no such error message is present. I have moved this data around, imported, exported, restored,..etc and upgraded the data SDE to 10.8.1, but the multiple references all re-generate and as such, no effect in ArcDesktop in clearing up that error message. So the signs point to a toolage based fix, but I checked my technical support rep and they can't track down any specific product based fixed so I thought maybe someone here in the technical ether may have run across this perhaps. My user things this is data issue but again the signs appear to point at some kind of product fix and would like to track that down. Thanks much, -James Fox - GIS Database Consultant
... View more
08-03-2021
01:55 PM
|
0
|
0
|
204
|
POST
|
We replaced our 11.2 client with 12.1 client and it works fine, aside from some squirrel-ly PL/SQL syntax nuances we had to fix (object arrays) -Jim
... View more
07-11-2017
07:34 PM
|
0
|
1
|
435
|
POST
|
I have a GIS Information Architecture question that has a few of us runing in circles in our shop of late. How does one apply a projection transformation within an MXD? I have data from an SDE database in NAD83 but need it transformed into WGS84 Web Mercator in the MXD so it can be published as Web Mercator to web services to avoid the "projection o n the fly" performance penalty when said web services are consumed over the internet. I have been approached with maintaining redundant copies of the data in SDE, in each projection synched with database triggers but my team feels that this is an inefficient solution that may be quite brittle. The examples I have found apply the transformation in a layer in an MXD but have found no layer "XY Coordinates" layer projection property to apply the tranformation on. Only source which will transform the base SDE data, which is not what we want to do! Our data is edited in NAD83 via Desktop but needs to be consumed over the web in Web Mercator (ideally in an efficient manner) If I save off the layer into a .lry file, there is a projection transformation function but again it will override the source data and not transform it in the layer only. Would this transformation be better done at the publish web service level? I see lots of discussion on web service caching but not on these types of transformation doing in the web service itself (Hopefully I am missing something here?) I am sure this has been resolved elsewhere in large GIS shops, any thoughts? Thanks, -Jim
... View more
07-15-2016
03:47 PM
|
0
|
2
|
2218
|
POST
|
Hi Josh, I tried casting in the sql as integer, int, bigint, smallint and tinyint - no luck. The code is pulling and using as python integer type. -Jim
... View more
07-13-2016
12:22 PM
|
0
|
0
|
1067
|
POST
|
I'm already casting the value: try: sde_return = connection.execute(sql_txt) ... # If the return value is a list (a list of lists), display # each list as a row from the table being queried. seq_val = int(sde_return) Should it be done earlier?
... View more
07-13-2016
09:00 AM
|
0
|
2
|
1067
|
POST
|
I had python script tool that accessed a sequence value and got the value via arcpy.ArcSDESQLExecute call. We are porting our SDE environment from Oracle 11g to SQL Server 2012 and as such changed the sequence select from ALL_SEQUENCES to sys.sequences as shown: select_list = 'SELECT DISTINCT current_value ' # SELECT LAST_NUMBER ' from_clause = 'FROM sys.sequences ' # ' FROM ALL_SEQUENCES ' where_clause = 'WHERE NAME = \''+seq_name+'\' ' # 'WHERE SEQUENCE_OWNER = \'' + schema + '\' AND SEQUENCE_NAME This SQL works in SSMS or SQL_CMD but not in arcpy (it did work correctly in Oracle 11g) is there now an arcpy call that will get a sequence value (CURRVAL) directly without building SQL and using ArcSDESQLExecute? -Jim
... View more
07-12-2016
03:46 PM
|
0
|
7
|
3389
|
POST
|
When setting up a hatching class for a linear referenced route layer, is it possible to define a End hatch definition for only "one" of the two endpoints? We need a way to set up an endpoint hatching that labels the first endpoint as blank and the second endpoint as the lenghth of the route. Thanks, -Jim James Fox Geodatabase Administrator - BIA Div. of Water and Power Lakewood, CO
... View more
11-17-2014
09:05 PM
|
0
|
1
|
3092
|
POST
|
When creating a geodatabase by connecting to a MS SQL Server database, does a native client need to exist on the client machine if SSMS and/or SQL Server itself does not reside there? James Fox DBA - BIA Division of Water and Power Golden, CO wendell.fox@bia.gov
... View more
07-30-2014
10:53 AM
|
0
|
1
|
3351
|
POST
|
The 12c now has two types of databases; a "container" database (CDB) to manage the system resources of the relational database "instance" (memory and processes, analogous to SYSTEM in a SQL Server environment) with the actual business table databases now being "pluggable" databases (PDBs) which can be individaully swapped in and out the instance environment(analogous to the USE {DB} in a SQL Serevr environment) which should prove to be an enhancement for many of the large data cloud environments that are growing today. That said, however the new Oracle 12c multi-tenancy database architecture has enhanced the user and role security along those same lines. A "common" user can only be defined in a container but has access to objects in any of it's pluggable databases however a local user defined in a pluggable database does not have the same access to the container objects with individual roles defined for each. Since ArcGIS relies heavily on databases roles and system priviledges for management of it's GIS metadata, I would not try a 12c database on any version of ArcGIS that ESRI has not CERTIFIED AS COMPATABLE with this type of database architecture. -Jim
... View more
02-14-2014
07:22 AM
|
1
|
6
|
720
|
POST
|
My organization is looking to bring an ESRI developer on-board in the next few months to build us a re-vamped event driven desktop based spatial viewer for our geodatabases. We are probably looking an MXD hosted on an ArcGIS server with our GIS styles and viewer application functionality. I know ESRI has been hyping the javascript API in the last year, we are probably looking at a Microsoft Visual Studio based solution (VS 2010 for a ArcServer 10.1 and SDE) Our previous developer built our previous viewer in VB.NET but we are curious if there is a preference to using VB vs. C# from an ESRI perspective for building the viewer app. VB may be simpler to work with but C# may have more functionality and libraries at it's doisposal. My first guess would be both are equally fine but we may need to narrow this down for getting the best skillset for finding our developer as well as being able to build the most otimal ArcGIS server based viewer. -Jim
... View more
12-31-2013
06:48 AM
|
0
|
1
|
385
|
POST
|
James, Yes, the sequence does exists and I get an integer value back when I run the SQL in SQL*PLUS. The second part of the question deals calling a PL/SQL function from arcpy. If so, we can go that route. I do not get an ORA error from the code but the return value is giberish and unusable, as clearly I did not get the sequence value back from the call. In the meantime, I will look into cx_oracle but like I said I am useasy about hardcoing login credentials into code like the examples I have seen. That is why I would prefer to do this using arcpy because the credentials are obtained from the users sde files which are used connect to the database when they pick their input feature classes in the GP tool interface. -Jim
... View more
11-20-2013
07:28 AM
|
0
|
0
|
1207
|
POST
|
I need to be able to get an Oracle Database Sequence value (either CURRVAL or NEXTVAL) using an arcpy sql query. I used a generic sql execute function as opposed to the SelectCursor function but cannot seem to be able to get the sequence value returned fromthe sql call into the python script. The examples I have seen can execute the call but the value I get returned is a float, I am guessing a representation of a boolean which represents whether the sql successfully executed or not. The code we have is something like this: sql = "SELECT ID_SEQ.CURRVAL FROM DUAL" connSQl = arcpy.ArcSDESQLExecute("\Database Connections\Geodatabase.sde") sqlresults = connSQL.execute(sql) ## sqlResults is non-iterable so I cannot for loop through a list [as rows to qualify] The sequence value is a positive integer yet I get some value 2e-10 back 1. Can anyone show me what I am doing wrong here or if there is another function I should be using to talk to a a non-table database object like a sequence. There must be since SDE uses so many of them for IDs. 2. If not, the same question for a PL/SQL stored procedure call, getting a return value out. Our sequences have PL/SQL function accessors so if there is way to get these values this way that would be fine. We would prefer to use arcpy and avoid the other oracle based sql call modules simply to keep our connection credentials encapsulated in our sde objects. If you know of some examples out there, throw me bone since my searches come up[ with only table examples. ("table scraps" if you will...) Thanks much, -James Fox
... View more
11-19-2013
06:00 PM
|
0
|
4
|
3257
|
POST
|
This is a new issue but spawned from the same environment of the "Issues creating a geodatabase with ArcGIS Desktop v10.1 / SDE v10.0 on SQL Svr 2008R2" thread I posted earlier. (http://forums.arcgis.com/threads/91662-Issues-creating-a-geodatabase-with-ArcGIS-Desktop-v10.1-SDE-v10.0-on-SQL-Svr-2008R2) I can connect to this database via reseting the default schema mapped to the connected user. And I create/import a feature class. However that is it. I cannot create or import a feature dataset into this database. Right click on "New" and only feature class or table appear. No feature datasets, no ratsers nor any toolboxes. And I cannot find information on this either. It appears however that the geodatabase is "enabled" but functionality is not present. All the system tools seem to be present, however no feature dataset tools are present and "quick import/export" under the Data Management Toolbox is disabled. Is SDE really just "minimally" functional until the Post Install is run then? Funny, I don't see the SDE user or schema either. But one would think I should NOT BE ABLE TO CONNECT AT ALL TO SQL SERVER if SDE is not really enabled or functioning, right? -Jim
... View more
09-03-2013
03:06 PM
|
0
|
1
|
415
|
Title | Kudos | Posted |
---|---|---|
1 | 11-22-2011 07:39 AM | |
1 | 11-21-2011 05:30 PM | |
1 | 02-14-2014 07:22 AM | |
7 | 10-19-2011 01:46 PM | |
15 | 11-08-2011 02:37 PM |
Online Status |
Offline
|
Date Last Visited |
08-03-2021
03:26 PM
|