POST
|
I never managed to get it working for python unfortunately. I do know how to make it happen in .NET though if that is helpful. You could always code the front end in .NET and have it call the python version with the correct parameters.
... View more
05-20-2018
03:03 PM
|
0
|
0
|
155
|
POST
|
It is odd though. I'd assumed the geoprocessing tools were all written in .NET as well. If that is the case there would need to be some class or interface they are using which I should be able to access as well.
... View more
03-12-2018
02:32 PM
|
0
|
0
|
437
|
POST
|
I have an application that creates or updates a point feature class but only after the user has specified a line feature class that they are going to use associated with it. I want to detect if the user has editor tracking set on the line feature class and, if so, activate it on the point feature class. The problem is, I can't see how to detect if it is set or not. The IClassSchemaEdit4 interface lets me set the fields for tracking, but not read their contents to see if they are set. Any ideas?
... View more
02-25-2018
05:14 PM
|
1
|
3
|
590
|
POST
|
You'd be better of enumerating the layers to only get feature layers. For the above code, when you convert it to a .NET equivalent you can provide an ID to the layers command: Dim pId As New UID pId.Value = "{40A9E885-5533-11d0-98BE-00805F7CED21}" Dim pEnumLayers As IEnumLayer = pMap.Layers(pId, True) The pId value tells Arc what kind of layers to look for. This page: ArcObjects Help for .NET developers tells you the GUID values for different data types.
... View more
10-22-2017
04:41 PM
|
2
|
0
|
370
|
POST
|
I'm not sure about the SDE but for the MXD look at the IMapDocument interface and MapDocument class. You can use them to open an existing MXD. Each MapDocument can contain one or more maps which you can iterate through. For each map you can iterate through the layers inside of them.
... View more
10-22-2017
03:33 PM
|
0
|
0
|
257
|
POST
|
I'm working on a tool that exports a number of images from ArcGlobe. Basically it sets the definition query for a particular layer then exports the current view to an image file. The problem I'm having is that it doesn't finish updating the scene before performing the export so my output images look terribly blocky. In fact after it finishes running through my sample data it doesn't even finish refreshing the last change made. I figure I need to force a refresh but I can't work out what to call. Unlike ArcMap or ArcScene the obvious calls to make don't work and some of the methods aren't even implemented. I did notice there is a refresh command for layers in the table of contents context menu. If I use that on the layer I've updated at the end it redraws it correctly. But I can't work out how to activate that context menu item for my layer. I know how to activate command items in general but not one that is on a context menu and operates on a specific layer. Any ideas please?
... View more
07-11-2017
09:53 PM
|
0
|
1
|
560
|
POST
|
I found a work around. The IMemoryBlobStreamVariant interface lets you read and write the blob data to a byte array.
... View more
06-27-2017
10:34 PM
|
0
|
0
|
400
|
POST
|
Can someone tell me what I'm doing wrong here: byte[] inBytes = File.ReadAllBytes("c:\\temp\\NotesRecording.wav"); IMemoryBlobStream inBlob = new MemoryBlobStreamClass(); inBlob.ImportFromMemory(ref inBytes[0], (uint)inBytes.Length); MessageBox.Show(inBlob.Size.ToString()); inBlob.SaveToFile("c:\\temp\\blobTest2.wav"); byte[] outBytes = new byte[inBytes.Length]; inBlob.AttachToMemory(ref outBytes[0], inBlob.Size, 0); The last part is the problem, I'm trying to extract the data in the blob stream class to a byte array. It doesn't work at all though, the array just remain empty afterwards.
... View more
06-25-2017
10:34 PM
|
0
|
1
|
724
|
POST
|
I'm trying to learn about the ArcGIS Pro SDK in order to look at converting an application I've written from regular ArcGIS to Pro. Part of the application involves reading in raster point values from specific X,Y locations. I can't see any obvious way to do this in Pro though except possibly via a geoprocessing command call (which I can't quite figure out yet either). The RasterLayer object doesn't seem to give a link to the underlying raster dataset and I can't find a raster class on it's own either.
... View more
09-27-2016
06:44 PM
|
0
|
0
|
970
|
POST
|
My main development environment is VS 2010 since, at work, we are using Arc 10.2. I've also got a copy of VS 2015 since most of the samples I've found using async commands which 2010 doesn't support.
... View more
04-25-2016
04:46 PM
|
0
|
0
|
568
|
POST
|
I'm trying to open the page in a web browser first for testing purposes. I'm trying to avoid the OAuth samples since they use a lot of async commands and I'm not using a version of Visual Studio which supports that.
... View more
04-19-2016
04:00 PM
|
0
|
0
|
568
|
POST
|
I'm led to believe from this page: Mobile and Native User Logins | ArcGIS for Developers that I should be able to call up a URL like this: https://www.arcgis.com/sharing/rest/oauth2/authorize?client_id=XXXXX&grant_type=code&redirect_uri=urn:ietf:wg:oauth:2.0:… (after replacing XXXXX for the client ID of my application) and have it prompt the user to log in as part of the authentication process. Instead that page gives me an error saying "response_type not specified". Am I overlooking something?
... View more
04-17-2016
10:59 PM
|
0
|
5
|
2772
|
POST
|
I think I've found the answer to my own problem. I noticed there is a migration analyzer under tool for 10.3. When I ran that it told me to change the target CPU to x86. After I did that it worked just fine.
... View more
03-06-2016
07:28 PM
|
1
|
0
|
198
|
POST
|
I've got some software I've written that I'm trying to recompile for Arc 10.3. The old COM registering software compiles ok, but I've been having problems with the newer addins I've written for ArcMap. If I load them up (in Visual Studio 2012) and compile them I don't get any errors but it doesn't actually make the output .addin file I'm expecting. I've tried adjusting different values in the adding config file but it doesn't seem to help. I can port the code across if I make a new addin project and move the source files over but this is a lot more time consuming than I'd expect. Is there a simple way to update my addins?
... View more
03-06-2016
04:45 PM
|
0
|
1
|
2007
|
Title | Kudos | Posted |
---|---|---|
1 | 03-06-2016 07:28 PM | |
1 | 02-25-2018 05:14 PM | |
2 | 10-22-2017 04:41 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|