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
|
5120
|
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
|
18
|
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
|
289
|
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
|
16
|
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
|
193
|
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
|
121
|
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
|
870
|
POST
|
I'm accessing it from a browser, not sure about the web adaptor.
... View more
05-25-2018
08:07 AM
|
0
|
1
|
9
|
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
|
9
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|