|
POST
|
I have a gallery item that potentially contains hundreds of items. I have filter controls that will filter out the items in the ribbon tab. What I want to do is combine both in a DocPane. I can add the filter contols to the docpane in .xaml however I can't find a way to add the gallery to the docpane in the DocPane xaml. I think this is because the gallery is a resource dictionary and not a user interface. Is there a way to achieve what I want?
... View more
08-15-2019
02:14 PM
|
0
|
0
|
465
|
|
POST
|
Sorry for the late reply, I only saw this now. I was able to add the rasters using the Pro GUI without any problems. The problem turned out to be an issue with the token I supplied, _cts.Token. I changed it deceleration location and the prepossessing tool worked. I'm not entirely sure what the issue was but I think I had declared _cts on a different thread and this was causing the tool to fail. Thanks for your help.
... View more
07-01-2019
08:44 AM
|
0
|
0
|
1262
|
|
POST
|
I'm trying to programmatically add .tif files to a raster mosaic. The code below gives a GPResult object of error type but no error messages are given so I don't know what I'm doing wrong. I can't get any other error messages or warning to trigger. string inpath = Project.Current.DefaultGeodatabasePath; string in_mosaicdataset_name = "Mosaic_name"; parameters = Geoprocessing.MakeValueArray(inpath + "\\" + in_mosaicdataset_name, "Raster Dataset", @"D:\Temp\image_982-1376.tif"); try { IGPResult gPResult = await Geoprocessing.ExecuteToolAsync(tool_path, parameters, null, _cts.Token, (event_name, o) => // implement delegate and handle events, o is message object. { switch (event_name) { case "OnValidate": // stop execute if any warnings MessageBox.Show(o.ToString()); if ((o as IGPMessage[]).Any(it => it.Type == GPMessageType.Warning)) System.Windows.MessageBox.Show(o.ToString()); //_cts.Cancel(); break; case "OnProgressMessage": string msg = string.Format("{0}: {1}", new object[] { event_name, (string)o }); System.Windows.MessageBox.Show(msg); //_cts.Cancel(); break; case "OnProgressPos": string msg2 = string.Format("{0}: {1} %", new object[] { event_name, (int)o }); System.Windows.MessageBox.Show(msg2); //_cts.Cancel(); break; } }); Geoprocessing.ShowMessageBox(gPResult.Messages, "GP Messages", gPResult.IsFailed ? GPMessageBoxStyle.Error : GPMessageBoxStyle.Default);
... View more
05-31-2019
03:32 PM
|
0
|
2
|
1371
|
|
POST
|
This code works for me, but creating a mosaic dataset string inpath = Project.Current.DefaultGeodatabasePath; string in_mosaicdataset_name = rasterseriesname; var sr = await QueuedTask.Run(() => { return SpatialReferenceBuilder.CreateSpatialReference(3857); }); var parameters = Geoprocessing.MakeValueArray(inpath, in_mosaicdataset_name, sr, "3", "8_BIT_UNSIGNED", "NATURAL_COLOR_RGB"); string tool_path = "management.CreateMosaicDataset"; System.Threading.CancellationTokenSource _cts = new System.Threading.CancellationTokenSource(); IGPResult result = await Geoprocessing.ExecuteToolAsync(tool_path, parameters, null, _cts.Token, (event_name, o) => // implement delegate and handle events, o is message object. { switch (event_name) { case "OnValidate": // stop execute if any warnings if ((o as IGPMessage[]).Any(it => it.Type == GPMessageType.Warning)) _cts.Cancel(); break; case "OnProgressMessage": string msg = string.Format("{0}: {1}", new object[] { event_name, (string)o }); System.Windows.MessageBox.Show(msg); //_cts.Cancel(); break; case "OnProgressPos": string msg2 = string.Format("{0}: {1} %", new object[] { event_name, (int)o }); System.Windows.MessageBox.Show(msg2); //_cts.Cancel(); break; } });
... View more
05-31-2019
03:22 PM
|
0
|
0
|
1887
|
|
POST
|
I had a similar issue trying to add a table with geometry from a non SDE database. I found that after I had a refrence to the table I could call the GetDataConnection method and it worked. Here is my code in case it helps others. DatabaseConnectionProperties connectionProperties = new DatabaseConnectionProperties(EnterpriseDatabaseType.Hana)
{
AuthenticationMode = AuthenticationMode.DBMS,
Instance = @"mydbinstance",
User = "username",
Password ="*****"
};
using (Database db = new Database(connectionProperties))
{
QueryDescription qds = db.GetQueryDescription(" select GEF_OBJECTID, GEF_OBJKEY, OBJNR, ERNAM, ERDAT, KTEXT, IDAT2, AENAM, ARTPR, GEF_SHAPE from schema.tablename", "MySelect");
Table pTab = db.OpenTable(qds)
FeatureLayer pFL = (FeatureLayer) LayerFactory.Instance.CreateLayer(pTab.GetDataConnection(), MapView.Active.Map, 0);
} devonc1301 wrote: I am able to connect to an sde geodatabase and obtain a handle on a raster dataset, but I can't figure out how to add this dataset to my map. I don't see how I would use a Uri since it doesn't exist in a file, and I don't know how to obtain an Item or CIMDataconnection from a RasterDataset type - since these are the three data types allowed in LayerFactory.Instance.CreateMosaicLayer(). var connectionProps = new DatabaseConnectionProperties(EnterpriseDatabaseType.SQLServer)
{
AuthenticationMode = AuthenticationMode.OSA,
Instance = "instance",
Database = "sdeDOQTX1996",
};
var doq96GDB = new Geodatabase(connectionProps);
var doqDataset = doq96GDB.OpenDataset<RasterDataset>("sdeDOQTX1996.DBO.Zone14_mosaic");
//LayerFactory.Instance.CreateMosaicLayer(?, map, 0);
... View more
04-29-2019
12:04 PM
|
0
|
0
|
1717
|
|
POST
|
Make sure you have a data interoperability license available and enable the data interoperability extension in ArcMap.
... View more
04-26-2019
07:11 AM
|
1
|
1
|
2254
|
|
POST
|
I'm trying to architect a new ArcGIS Portal site. I see ESRI has instructions on configuring a reverse proxy to work with a web adapter installed on the network. However I have also seen sources talking about installing the web adapter directly on a DMZ web server and registering it with a portal on the network. Is there an advantage to doing it this way?
... View more
10-29-2018
07:26 AM
|
1
|
1
|
1422
|
|
POST
|
I'm finding that in Visual studio 2015 and ArcGIS 10.5.1 the IMaps.Add() method is hidden. It doesn't show up in intelisense and shows an error when typed out, but it still works and was the piece I was missing. Thank you, your code helped me figure it out.
... View more
10-05-2018
01:50 PM
|
0
|
0
|
1335
|
|
POST
|
This helped me immensely, thank you. I had created both spatial and non spatial views without an explicit attribute called objectid. I then added these views to ArcMap using the Add query layer option. I had defined a composite unique index in arcmap when I added these views to ArcMap. The result was my dashboard was giving the no data error. After reading Brian Fausel and Darren Haag posts I altered the underlying views to include a unique int field called objectid. I then registered these views with the geodatabase and added them to the .mxd as any other table or feature class. After these steps these views started working in dashboard without a problem. Grouping, charting etc is working fine so far. Steps: Create your view using SQL which includes a unique int field called objectid register the view with the geodatabase Add the view to ArcMap and publish feature service add service to web map Use the webmap to dashboard.
... View more
08-27-2018
09:23 PM
|
1
|
1
|
3899
|
|
POST
|
SQL server seems to allow mixed by default, at least in my experience. I'm guessing since the default collation is case insensitive but don't know for sure.
... View more
08-20-2018
07:23 AM
|
0
|
0
|
14077
|
|
POST
|
As a further note I also found out that the schema name and user name must also match case. I had user "UserA" who was mapped to a schema "usera" and I got this error. Once I dropped the schema and recreated it as "UserA" the error went away.
... View more
08-14-2018
09:51 AM
|
1
|
2
|
14077
|
|
POST
|
I had this exact same problem after upgrading from 10.3.1 to 10.5.1. For me it was also a graphics adapter problem. In my case, somebody had installed both an NVIDIA display adapter/driver and an Intel graphics driver. I checked the Display adapter being used in the Device manager and saw that it was the Intel Graphics driver so I uninstalled the NVIDIA stuff and ArcMap successfully loaded.
... View more
04-27-2018
12:17 PM
|
2
|
0
|
2657
|
|
POST
|
Thanks you for this SQL, I found it a lot more helpful than what is provided in the confusingly similar ESRI technical articles on this subject How To: Determine if there are orphaned replica system versions in the geodatabase How To: Determine if there are orphaned replica system versions in the geodatabase One question I have is if there could be a danger of leaving other orphan data, such as orphan database states or lineages by using SQL to delete versions instead of the delete version tool. To be on the safe side I used the tool, to delete my orphans.
... View more
10-30-2017
01:21 PM
|
0
|
2
|
5084
|
|
POST
|
Does anybody know how to do this oracle instaclient connections? When I try to add ;SDEVERBOSE=TRUE using an oracle connection it give me an error message about server not being found.
... View more
05-09-2017
03:50 PM
|
0
|
0
|
2848
|
|
POST
|
We did an in place upgrade from 2008 RC2 to 2014. The only issue I ran into was poor performance on a couple of feature classes after the upgrade. Deleting and recreating the spatial index on these feature classes fixed the problems.
... View more
12-15-2016
04:34 PM
|
0
|
0
|
2392
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-19-2023 09:32 AM | |
| 1 | 01-21-2025 01:39 PM | |
| 1 | 07-29-2025 10:45 AM | |
| 1 | 07-17-2025 03:33 PM | |
| 1 | 07-10-2025 10:30 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|