|
POST
|
Thanks Rich, that certainly helped. May I ask how you figured out that's the issue? And, of course, now there is another problem... The FeatureLayer is added to the TOC, but the attempt to visualize some features isn't successful and when I try to see feature attributes then I am getting an error returned, pointing at the SRID: The active maps coordinate system is set to ETRS 1989 UTM Zone 32N and I get and set the spatial reference of the queryDescription through: SpatialReference sr = MapView.Active.Map.SpatialReference;
queryDescription.SetSpatialReference(sr); I also checked the database table, where the SDO_SRID of the geometry column is saying 25832. Still, the error remains. Any good ideas on how to overcome that one?
... View more
01-31-2019
05:13 AM
|
0
|
4
|
2083
|
|
POST
|
To minimize the overhead I am asking an Oracle database table only for specific objects through the OpenTable method. While it works with in the first attempt, all others fail. I do not know what the issue is but I am getting an ArcGIS.Core.Data.GeodatabaseQueryexception thrown when trying to open the table based on my query description. Below is the code how I am trying to get the data. The exception thrown is pointing to "Geometry is null geometry" which is strange since I can find multiple objects that fulfil the SQL statement. public async void SearchValidationTables()
{
await QueuedTask.Run(() =>
{
using (Database ValidationDatabase = new Database(connectionFileValidation))
{
// get national string prefix
string nationalStringPrefix = "";
SQLSyntax sqlSyntax = ValidationDatabase.GetSQLSyntax();
nationalStringPrefix = sqlSyntax.GetSupportedStrings(SQLStringType.NationalStringPrefix).First();
// build query here and set it into next line
string querySQL = "SELECT * FROM SCHEMA.DBTABLE WHERE FEATURETYPE = "+ nationalStringPrefix +"'waterways'";
QueryDescription queryDescription = ValidationDatabase.GetQueryDescription(querySQL, "test");
// set the column with a unique identifier
queryDescription.SetObjectIDFields("OBJECTID");
// get data as featureclass and load it as featurelayer
try
{
FeatureClass fcFromTable = ValidationDatabase.OpenTable(queryDescription) as FeatureClass;
LayerFactory.Instance.CreateFeatureLayer(fcFromTable, MapView.Active.Map);
}
catch (GeodatabaseQueryException e)
{
throw e;
}
}
});
} I found a bit more information by looking at the inner exception: Does that mean I have to adjust the QueryLayerName?
... View more
01-30-2019
04:34 AM
|
0
|
6
|
2208
|
|
POST
|
In 'Options' of ArcGIS Pro in section 'Display' is the path for the local cache given and below a checkbox to clear the cache. That is what I did after some time searching through the possible settings.
... View more
01-14-2019
01:21 AM
|
2
|
1
|
2011
|
|
POST
|
I somehow solved the issue by clearing the local cache. Again, something I would expect the software to do during the process of uninstalling. Since I did not change anything with relation to the Oracle client, but was only clearing the cache of ArcGIS Pro I assume the culprit here was not the Oracle client but ArcGIS Pro with some hiccup.
... View more
01-10-2019
12:26 AM
|
1
|
3
|
2011
|
|
POST
|
Reason for updating the instant client was that VisualStudio was returning errors when I tried to build a database connection. The error was raised in connection to 32bit client to 64bit development. In the path variable the reference was pointing to version 12.1 of the instant client. That was the only reference to an Oracle client in the environment variables (user/system). However, there was also version 12.2 of the instant client on the system but not in use. The 'new' client is the 64bit version of 12.1. I was somehow expecting that ArcGIS Pro is 'purged' from the system when uninstalled and the fresh installed software is making the connection to the instant client from scratch.
... View more
01-09-2019
05:51 AM
|
0
|
5
|
2011
|
|
POST
|
After uninstalling and reinstalling my Oracle instant client I cannot open projects any more. I can create new projects, but as soon as they shall open - stuck. The software gets stuck on the 'Opening Project' message and that is it. I thought it might be because of some favourites that link to Oracle databases. Hence I went into the directory for the favourites, deleted the respective sde files and for the sake of doing it clean I also edited the 'Favorites.json'. However, it did not help. Other software, such as R or FME does not have problem to use the Oracle instant client... I went the Windows way, uninstalled ArcGIS Pro and installed it again (including patches). Still, no changes. How do I get my software working again?
... View more
01-09-2019
04:24 AM
|
0
|
12
|
2730
|
|
POST
|
Hi Gintautas, I really like your solution to the problem. Using OpenItemDialog works in setting the directory and I am pretty sure I can also use it in combination with the resources. A bit of a disadvantage compared to the systems dialog is the indexing of the catalog when the dialog is opened. Thanks for pointing me this way.
... View more
11-12-2018
07:21 AM
|
0
|
0
|
768
|
|
POST
|
I need to provide my clients with the possibility to select a GDB from within a DockPaneView. Now that I found out on how to get the parentWindow to satisfy the SelectFolder method I have to realize I cannot set the initialPath attribute. The method expects a string but writing "c:\\" still opens the dialog in the users home directory. I found that I should be able to set the path to a sub-directory of the users home directory by writing e.g. "~/Documents". Nothing off this works. I always start in the users home directory. But what I want is the possibility for the user to store the selected path in my solution as a resource variable and next time the SelectFolder dialog is opened the resource variable should retrieve the initial path from the resource file. Has somebody a working example on how to set the initialPath attribute? As said, the functionality is required to work from within a DockPaneView (WPF). Best Thomas
... View more
11-12-2018
04:37 AM
|
0
|
2
|
861
|
|
POST
|
I have to write an add-in for our technicians where in a dockpane I want to show the total amount of features in the layer. So far I only found how to get the count of selected features, but that doesn't help me, since I don't want to run a 'select all' every time there is something going on at the side of our technicians. In Python there is a getCount method. Is this function available in C# as well. Bests Thomas
... View more
12-08-2017
12:32 AM
|
0
|
2
|
4153
|
|
POST
|
Okay, so it is as I tought and the extensions are not assigned to the 'Selected Member' list or the individual licens. I will talk with our administrator then. Thanks a lot!
... View more
02-28-2017
06:58 AM
|
0
|
1
|
1278
|
|
IDEA
|
Apart from many of the points initially listed... the search function within the toolboxes is at the moment (ArcGIS Pro 1.4.1) useless. Normally I do not use toolboxes. Instead I write my stuff in Python, and have it reusable. However, when I search e.g. for 'Add Rasters To MosaicDataset' then the search comes back empty. Also, I would never search after this phrase, rather than after 'AddRasterToMosaicDataset'... simply because I am used to. The latter option comes back as empty as the first attempt. The Python pane, when undocked has refresh issues. Sometimes, it keeps the last command in the input line, and I'm writing on top of the old command the new. The pane is sometimes just a white frame and all style elements, such as borders, titlebar, and close-, maximise button disapear. It only refreshs when I click in the titlebar area and move it a bit... The input line for the Python pane is not resizable... good luck to keep the overview when writing a simple with-statement and a cursor in it. Latest when working with different fields from your row you don't see their definitions anymore...
... View more
02-28-2017
05:22 AM
|
2
|
0
|
5240
|
|
IDEA
|
Clark, I found the solution for the missing database and folder connections last week for me. Create a 'Project Template' where you have all your wanted connections set up once and reuse it as long as needed. Once you have a project as you want it (for me that means no data in the TOC, and all connections set) you go to the 'Share' ribbon and select the 'Project Template' button from the 'Save As' area. Fill in the requirements and save the stuff to 'C:\Users\You\Documents\ArcGIS\ProjectTemplates'. The directory is scanned at start and you get your predefined project with all connections.
... View more
02-28-2017
05:09 AM
|
2
|
0
|
5240
|
|
POST
|
Since ArcGIS Pro is 'free' in the sence that it comes basically with ArcGIS I was wondering why non of the extensions we hace licensed are available in ArcGIS Pro. We are using 'Advanced (ArcInfo) Concurrent Use' licenses in ArcGIS 10.5 and more than 10 extensions included, where all of them are marked as permanent. Looking at the licensing level within ArcGIS Pro I am at 'Advanced' level. However, when adding our license server into the 'License Manager' field non of the extensions listed in the refreshed list is available. Quiting the licensing dialog in ArcGIS Pro with [OK] returns a message box saying: 'An ArcGIS Pro Advanced concurrent use is not authorized.' Is my assumption correct, that there is the possibility of creating a cocurrent us license for ArcGIS Pro Advanced where all the extensions can be activated, and these settings are missing in our current concurrent licens file? Bests Thomas
... View more
02-28-2017
04:06 AM
|
0
|
3
|
3485
|
|
POST
|
Doesn't seem to get old... I have the same problem, AddRuleToTopology_management is returning with ERROR 999999, even though topology is set with full path, and so is the feature class. arcpy.env.workspace = gdb
topo_path = os.path.join(gdb, fd, topo)
fc_path = os.path.join(gdb, fd, fc)
arcpy.AddRuleToTopology_management(topo_path, "Must Not Intersect (Line)", fc_path) All paths are actually correct and of type String, but I always get 999999 in my face. That's in a stand-alone script I am developing in Eclipse. ArcGIS is in version 10.5 When debuging then I can see the error is raised in line 16214 in the management.py file. Since I went step by step through the process I was able to confirm that all paths went correct through the gp_fixargs() function, and optional argument not given have been also correctly taken of the arguments list. I assume the process is failing in the subsequent run of gp.AddRuleToTopology_management(). --> AddRuleToTopology 16208 from arcpy.geoprocessing._base import gp, gp_fixargs
16209 from arcpy.arcobjects.arcobjectconversion import convertArcObjectToPythonObject
16210 try:
16211 retval = convertArcObjectToPythonObject(gp.AddRuleToTopology_management(*gp_fixargs((in_topology, rule_type, in_featureclass, subtype, in_featureclass2, subtype2), True)))
16212 return retval
16213 except Exception, e:
16214 raise e
... View more
02-01-2017
02:54 AM
|
0
|
1
|
2263
|
|
POST
|
Its a fresh installation. Earlier 10.3.1 was uninstalled using the uninstall functionality in the Windows 'Program and Features' dialog. First the extensions, then ArcGIS Desktop.
... View more
03-02-2016
06:14 AM
|
1
|
0
|
2476
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 10-24-2022 01:23 AM | |
| 1 | 09-15-2021 01:21 AM | |
| 2 | 08-30-2022 04:31 AM | |
| 2 | 04-24-2024 04:23 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|