POST
|
In ArcMap we had used a font called Myriad Pro, I was wondering if there was any way to load this font into ArcGIS Pro to use in a text element in the map layout.
... View more
07-17-2018
02:24 PM
|
0
|
11
|
14817
|
POST
|
Works great, thank you! I was casting northArrow.GetDefinition() as CIMNorthArrow which was just the same as accessing the NorthArrow property of NorthArrowStyleItem.
... View more
06-14-2018
02:33 PM
|
0
|
1
|
1175
|
POST
|
If you select a north arrow in a layout in ArcGIS Pro and go to Symbol>Properties>Halo, you can set the halo property of a north arrow. Does anyone know how to access this property programmatically in the ArcGIS Pro SDK?
... View more
06-14-2018
12:19 PM
|
0
|
3
|
1446
|
POST
|
Great, thanks! I just couldn't find any docs on how to use a CIMDataConnection.
... View more
06-12-2018
10:39 AM
|
0
|
0
|
571
|
POST
|
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
06-11-2018
12:28 PM
|
0
|
3
|
748
|
POST
|
I would like to be able to clip rasters using a Raster Function rather than the geoprocessing library in my add-in. Here is a snippet of the function I had used in ArcObjects to clip a raster using a geometry: public static IRasterDataset ClipToposInFrames(IRasterDataset topoDataset, IGeometry quadGeo, string clipName)
{
IClipFunctionArguments rasterFuncArgs = new ClipFunctionArguments() as IClipFunctionArguments;
rasterFuncArgs.Raster = topoDataset;
rasterFuncArgs.ClippingType = esriRasterClippingType.esriRasterClippingOutside;
rasterFuncArgs.ClippingGeometry = quadGeo;
IRasterFunction clipFunction = new ClipFunctionClass();
IFunctionRasterDataset funcRasterDataset = new FunctionRasterDataset();
IFunctionRasterDatasetName funcRasterDatasetName = new FunctionRasterDatasetName() as IFunctionRasterDatasetName;
funcRasterDatasetName.FullName = clipName;
funcRasterDataset.FullName = (IName)funcRasterDatasetName;
funcRasterDataset.Init(clipFunction, rasterFuncArgs);
return funcRasterDataset as IRasterDataset;
}
Does anyone one know if a similary functionality is available in the ArcGIS Pro .NET SDK?
... View more
06-08-2018
01:15 PM
|
0
|
0
|
320
|
POST
|
I have created a feature class with the code below, but it creates it with an Unknown Spatial Reference. I know you can use other shapefiles/prj files as input to the Create Feature Class geoprocessing tool, but I'm trying to avoid creating a template for every spatial reference I might end up needing. I would rather be able to set the spatial reference from C# code after it's created. I've learned of a QueryDescription, via Database.GetQueryDescription() but the datastore is a FileGeodatabase, not an sde. public async Task<string> CreateTargetPoint()
{
string tool_path = @"management.CreateFeatureClass";
string outpath = Project.Current.DefaultGeodatabasePath;
var args = Geoprocessing.MakeValueArray(outpath, "target_point", "POINT");
var result = await Geoprocessing.ExecuteToolAsync(tool_path, args);
return result.ReturnValue;
}
//....
var result = await CreateTargetPoint();
var gdbPath = new FileInfo(result).Directory;
var connectionPath = new FileGeodatabaseConnectionPath(new Uri(gdbPath.FullName));
using (var geodatabase = new Geodatabase(connectionPath))
using (var featureClass = geodatabase.OpenDataset<FeatureClass>("target_point"))
{
var fcDef = featureClass.GetDefinition();
var rowBuffer = featureClass.CreateRowBuffer();
rowBuffer[fcDef.GetShapeField()] = centerpoint;
featureClass.CreateRow(rowBuffer);
viewModel.TargetSite = LayerFactory.Instance.CreateFeatureLayer(featureClass, exportMap, 0, "Target Site");
}
... View more
06-04-2018
01:36 PM
|
0
|
2
|
2328
|
POST
|
I'm accessing it from a browser, not sure about the web adaptor.
... View more
05-25-2018
08:07 AM
|
0
|
1
|
598
|
POST
|
Ah, it works if I specify port 6080. I think I missed that initially. Otherwise it says: Could not access any server machines. Please contact your system administrator. Thanks
... View more
05-21-2018
12:45 PM
|
0
|
3
|
598
|
POST
|
We recently installed ArcGIS Server 10.5 on a server and I'm attempting to recreate a geoprocessing service that exists elsewhere in our system. The original version has an HTTP url for the endpoint and since there are many other dependencies on this there would be a lot more work to adapt the change in protocol. Is it possible to publish the service using HTTP on 10.5 instead of the default of HTTPS?
... View more
05-21-2018
07:57 AM
|
0
|
5
|
743
|
POST
|
Uma, Thanks for the reply, whenever I did this initially it froze up everything else in the UI for the project. I'm wondering how I can keep all the UI elements responsive while the window is open.
... View more
05-15-2018
02:27 PM
|
0
|
0
|
454
|
POST
|
I have an ArcGIS Pro button add-in that opens a WPF window when clicked. If I wrap the OnClick handler code in QueuedTask.Run() the CIM works and I'm able to pan/zoom in the map view, but the TOC is still disabled. I would like the user to be able to turn layers on/off and move the order around while the window is open. How might I enable this? When I use a dockpane this seems to be automatic but now I'm opening a (non-ArcGIS) WPF window. internal class ShowExporterWindow : Button
{
ExporterWindow window;
protected override void OnClick()
{
QueuedTask.Run(() => {
window = new ExporterWindow();
window.ShowDialog();
});
}
}
... View more
05-15-2018
12:46 PM
|
0
|
4
|
492
|
POST
|
When you run an addin in Debug from Visual Studio it opens ArcGIS Pro and then you select a project you want to test it in. Just wondering if there's a way to set a default project to open when you run in Debug to skip the step of selecting a project.
... View more
04-12-2018
08:41 AM
|
1
|
1
|
532
|
Title | Kudos | Posted |
---|---|---|
1 | 01-04-2018 12:03 PM | |
1 | 04-12-2018 08:41 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|