POST
|
Hi all, a question, I want to connect to oracle 11g python, and boot me an error "dll load failed, 1% is not a Win32 application" I have 64-bit platform, windows seven original ArcGIS 10 licensed 64-bit, with python 2.6 (seems to be 32 bit, is the next in installing arcgis 10), at least that goes to the console, download the 11g cx_Oracle 5.x for 32 and 64 and would like to boot this error both .... but I tried the import (import cx_Oracle) with the 10g cx_Oracle and no problems ... (that with the 32bit because with the 64-bit boot me the same error) the problem was that only works with admin user, and I want it for a user with limited privileges (I can not give more privilege directives ***) probe the sqlpluss of 10g administrator runs everything well in another user does not work, so install the 11g running on all users ... but I have that problem with cx_Oracle ... anyone knows another way to connect to Oracle or other solution to connect to my oracle server from python2.6?
... View more
10-12-2012
04:17 PM
|
0
|
1
|
551
|
POST
|
thanks for your prompt reply Graeme, blocking is that I can not add more featureclass again, either by script or by ArcCatalog, the erro is, existing entity ("featureclass alias name") There is another way to add without my block to add the same again? thanks in advance Angel Cardenas
... View more
08-21-2012
04:06 PM
|
0
|
0
|
313
|
POST
|
thank you very much for your answers Graeme and Marcin , achieve load the feature class to ArcMap, but I had a problem, and it will not let me upload it again because I created entities, which can not be repeated, the code I use is arcpy.makefeaturelayer_management ("path or featureclass", "alias") there is another way to do this without my block to add again the same featureclass? the other inconsistency I had is that I arcgis10 hangs, and the program runs only a short time within ArcMap a query, how I would spend my VBA code to. NET and then load it as dll or tlb? thanks in advance Angel Cardenas
... View more
08-21-2012
03:39 PM
|
0
|
0
|
313
|
POST
|
thank you very much for your answers and Ken Christopher, achieve load the feature class to ArcMap, but I had a problem, and it will not let me upload it again because I created entities, which can not be repeated, the code I use is arcpy.makefeaturelayer_management ("path or featureclass", "alias") there is another way to do this without my block to add again the same featureclass? the other inconsistency I had is that I arcgis10 hangs, and the program runs only a short time within ArcMap a query, how I would spend my VBA code to. NET and then load it as dll or tlb? thanks in advance Angel Cardenas
... View more
08-21-2012
03:25 PM
|
0
|
0
|
286
|
POST
|
how I do this in python this is in VBA Public Sub AddLayer() 'adiciona el layer al map GetT 'Open Feature Class Set pWorkFact = New AccessWorkspaceFactory If sPathBase = "" Then Exit Sub Else Set pFWorkspace = pWorkFact.OpenFromFile(sPathBase, 0) End If Set pFeatureClass = pFWorkspace.OpenFeatureClass(sql) 'Create new layer Set pFeatureLayer = New FeatureLayer Set pFeatureLayer.FeatureClass = pFeatureClass pFeatureLayer.Name = FRBROW.ComboBox1.Value & " - " & FRBROW.ComboBox2.Value 'Add layer to map Set pDoc = ThisDocument Set pMap = pDoc.FocusMap Set pActiveView = pMap pMap.AddLayer pFeatureLayer pActiveView.Refresh End Sub
... View more
08-19-2012
09:08 AM
|
0
|
5
|
1025
|
POST
|
Hello. I am making an application for ArcGIS 10 in which auto-load features and can process, the form the QtDesinger do with the coding I'm doing it with eclipse, and I want to run everything within the ArcMap ... I have some doubts 1. - As I make a shortcut from ArcMap to this application, something like a toolbox of a button 2. - how to load featureclass from form with python? 3. - Any tutorials on these topics somewhat advanced geoprocessing, I extract the coordinates of some features, add features (polygons), see if one of them overlaps with other ... I had all this in VBA but it turns out that in future versions crrera not, because the ESRI will not support VBA, then do it again after python ... thank you very much in advance for your answers and help .. excuse the bad language, but I speak Spanish Angel Cardenas H.
... View more
08-18-2012
09:35 AM
|
0
|
3
|
441
|
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|