POST
|
I have a KMZ that loads and correctly displays JPG images in a popup in Google Earth Pro. When I load the KMZ into AE I get the point markers and a popup for each when when clicked, but the JPG image does not show. Instead I just see a small box with x icon where the JPG should be. This is all being done locally on one machine. I have seen some posts suggesting the paths to the JPGs might need to be rewritten, but the paths as embedded in the KMZ are entire, not relative... Anyone had this problem and solved it?
... View more
12-30-2016
04:02 PM
|
1
|
1
|
2077
|
POST
|
I have a layer with attachments. I use the HTML Popup tool to view the layer in ArcMap (10.0). Not wishing to see all the fields displayed I have created an xsl template file that I have manually associated with the layer. I can save the layer to a layerfile, but when I pull the layerfile back into ArcMap my template is no longer loaded into the XSL Template option under the HTML Popup tab in the layer's property page. Is there a way to save the xsl template to the layerfile?
... View more
08-27-2015
01:02 PM
|
0
|
1
|
2104
|
POST
|
Here's the answer to a question I never got around to asking three days ago (no, I'm not looking for points - I just hope it saves someone else hours of fruitless searching). I am writing an Add-In that creates featureclasses that I want to add symbology to before they are added to ArcMap. I created a template layer in an ArcMap session that provides the proper symbology then saved it out to a layerfile. The idea is to deploy the layerfile along with the add-in. A solution cobbled together from various sources (thanks to those who contributed, unfortunately I've lost the cites...) 1. In Visual Studio - create a new folder under your add-in project folder called (in this instance) "Layerfiles" 2. Copy / paste the template layerfile into the new folder 4. Set the saved layerfiles properties: Build Action = Content, Copy to Output Directory = Copy Always 3. Add method to project private void AddSavedLayerFileToMap(string folderName, string layerName, IFeatureClass gpsFClass, string aliasName) { try { //... Get map from current MxDocument IMap pMap = pMxDoc.ActiveView.FocusMap; //... Get the path to the layerfile string codeBase = Assembly.GetExecutingAssembly().CodeBase; UriBuilder uri = new UriBuilder(codeBase); string AsmPath = System.IO.Path.GetDirectoryName(Uri.UnescapeDataString(uri.Path)); string layerFilePath = System.IO.Path.Combine(AsmPath, folderName + "\\" + layerName); //... Create the layer to add to ArcMap ILayerFile layerFile = new LayerFileClass(); layerFile.New(layerFilePath); ILayer pSymbolLayer = layerFile.Layer; IFeatureLayer pSymFLayer = (IFeatureLayer)pSymbolLayer; pSymFLayer.FeatureClass = gpsFClass; pSymbolLayer.Name = aliasName; pMap.AddLayer(pSymFLayer); } catch (Exception ex) { MessageBox.Show(ex.Message); } } The values of the parameters: foldername - name you gave to the folder you added to your project folder in Visual Studio layername - name of the template layerfile you added to the above folder featureclass - the featureclass you want to add to ArcMap symbolized with the layerfile template aliasName - a friendly name to call the layer once its added to the TOC in ArcMap
... View more
03-20-2015
01:55 PM
|
0
|
0
|
3471
|
POST
|
I am trying to create an index of the personal and file geodatabases on my system. I can use FileInfo and DirectoryInfo to do so, but I'd rather do this using ArcObjects components if possible. I'd like to believe there's a way to tap into ArcCatalogs search index, but so far I haven't seen anything that provides a way to do this. As a fall back I have been working with the CatalogSearchEngineClass, ISearchEngine and FileSystemQuery but have run into many problems. First and foremost there does not seem to be an "INativeType" for geodatabases - leading me to think the whole assemblage was written back at version 8 and never updated? This belief is strengthened by the fact that the catalog search doesn't seem to know what a geodatabase is as it drop into gdb folders and then into featuredatasets as if they were just another subfolder! If you have any experience searching using ArcObjects please reply!
... View more
05-02-2014
09:13 AM
|
0
|
0
|
456
|
POST
|
All, Can anyone recommend a flowcharting addin for Visual Studio they have used that works well? I writing ArcObjects code in C# in Visual Studio 2010 Pro. I mainly want to be able to document my work - display program linkage / flow. Thanks.
... View more
11-12-2013
08:01 AM
|
0
|
0
|
527
|
POST
|
Shannon, Sorry to take so long to get back to you, thanks for the reply. I'm using ArcGIS 10.0, Service Pack 5 on a Win 7 workstation. I have an ArcInfo level license. I have administrator permission to the SQL Server Express Ed. w/ Advanced Services - ArcSDE Personal Server version 10.0.5500.0. While my initial problem was with ArcCatalog, I have also noticed that I am unable to manage geodatabases using ArcObjects. The 4GB limitation imposed on SQL Server Express means I have to swap out geodatabases regularly. I have attempted to do this programmatically using the IDataServerManagerAdmin.DetachGeodatabase method, but I get the same response - the error message effectively tells me that someone else is connected to the geodatabase, even though there is no one else on the system. 0x80040E14 HRESULT = -2147217900, which I believe leads me to geodatabase extension code, but there is no specific error code listed for this value. Appreciate any help you can offer.
... View more
02-18-2013
07:17 AM
|
0
|
0
|
186
|
POST
|
When I create a geodatabase in Sql Server Express 2008 using the DataServerManagerAdmin.CreateGeodatabase method I get the following messages: OPEN: No such file or directory ERROR: Couldn't open C:\Program Files\ArcGIS\Desktop10.0\etc\giomgr.defs file. ERROR: Reading "DATA_DICTIONARY" keyword info. SES_dbtuneFile_read_sysconfig() (ret = -287) But, there is no C:\Program Files\ArcGIS\Desktop10.0\etc folder on my system (I'm running Desktop 10.0), and the geodatabase is created regardless. Anyone know of a better discussion of DataServerManagerAdmin and its activities than the ArcObjects Help? Thanks.
... View more
02-02-2013
01:41 PM
|
0
|
0
|
1783
|
POST
|
All, When I try to detach a geodatabase from my ArcSDE SQL Server Express instance get an error stating the geodatabase is in use -which it is not. If I close ArcCatalog and reopen it I can then go ahead and detach the geodatabase. Doable, but a pain - anyone know of a way around this? Thanks.
... View more
01-30-2013
09:10 AM
|
0
|
2
|
390
|
POST
|
Please see: http://support.esri.com/es/knowledgebase/techarticles/detail/37879 if you are still experiencing this error. Turns out the issue has to do with building .Net Framework 3.5 projects on 64 bit machines. This article will explain situation and then point you to Microsofts knowledge base article ID: 2028833 which will provide a work around.
... View more
10-08-2012
08:31 AM
|
0
|
0
|
272
|
POST
|
Add me to the list. I get the following error when I build my project in Visual Studio 2010, on a Win 7, 64bit machine, Desktop 10.0: "Could not load file or assembly 'file:///C:/Program Files (x86)/ArcGIS/DeveloperKit10.0/DotNet/ESRI.ArcGIS.3DAnalyst.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. Line 294, position 5 in prjmgr.resx. That position happens to be the beginning tag for an axMapControl object in my form. Built and has run just fine on my 32 bit, Win 7, Desktop 10.0, VS 2010.
... View more
10-02-2012
05:03 PM
|
0
|
0
|
272
|
POST
|
Neil, Thanks for the reply, your suggestion is the logical one I have been trying for some time without success. Unfortunately, heres what happens when I use this approach: 1. I open a newly created featureclass ( arcgis desktop 10 SP3) using the Catalog Item Description context menu choice in ArcMap. 2. The Item Description dialog pops up and I select the description tab and click "Edit" 3. In the ensuing editor I enter text into the Description, Summary, and Credits fields. 4. I save my changes then select "Export" back in the Item description display window. 5. Once the export has successfully completed I open the resulting xml file in XML editor and look for my entries. Shazam! There they are: The string I entered into the Summary field in the editor shows up under: "identificationInfo/MD_dataIdentification/<purpose> The description string appears under: "identificationInfo/MD_dataIdentification/<abstract><gco:characterString>description_String </gco:CharacterString> and the string I entered under Credits appears under : "identificationInfo/MD_dataIdentification/<credit> element. BUT... In my code I try to load my new featureclass specific data for these elements using the following example for the description field: pXMLPropertyset.SetpropertyX("identificationInfo/MD_DataIdentification/abstract", <description_string>,esriXMLPropertyType.esriXPTText,esrimlSetPrpertyAction.esriAddOrReplace, False") which runs, but the <description_string> does not appear in the esri Data Identification display window instead there is this entry: identificationInfo/MD_dataIdentification/<abstract gco:nilReason="Missing"/> Given that my understanding level of the metadata system esri now has in place is minimal, I could be making a very simple mistake and wouldn't know it. Any further thoughts?
... View more
11-08-2011
03:34 PM
|
0
|
0
|
491
|
POST
|
Is there a way to programmatically update the Summary / Description / Credits and Use Limitations items that appear at the beginning of a metadata description in ArcCatalog? I use IMetadata & IXMLPropertyset to update many of the other elements of a metadata record for a featureclass I have created, but I am unable to figure out how to get at these items. I have searched through the XML output from the ArcCatalog metadata Export function, but I can not find elements relating to these items.
... View more
11-08-2011
08:07 AM
|
0
|
2
|
1906
|
POST
|
There's probably a very simple solution to this... I created a workspace extension a while back and used geodatabase registration to associate it with a geodatabase. The extension has been superceded and its code has been removed from the system. The geodatabase that has the extension is now unreachable. When I try to list the extensions for the geodatabase using the following code: Dim pExtMgr as IWorkspaceExtensionManager = Ctype(targetWS, IWorkspaceExtensionManager) Dim i as integer = pExtMgr.ExtensionCount I get a COMexception at the ExtensionCount line with the following message: Failed to instantiate the workspace extension COM component. <Project>.<Class> <ClassID> at IworkspaceExtensionmanager.get_ExtensionCount()... I have tried ESRI's suggested method for unregistering: Dim uid as UID = New UIDClass UID.value = extensionUID '... from the error message Dim extMgr as IworkspaceExtensionManager = Ctype(workspace, IworkspaceExtensionManager) ExtensionManager.UnregisterExtension(uid) and it runs without error, but when I then go back and list the geodatabase's extensions I get the same error as above - COMException at the ExtensionCount method of IworkspaceExtensionManager. I could go back and reinstall the older version of the software and then try unregistering, but you might not always have a previously asociated workspace extension for a geodatabase - so how would you go about "freeing" the geodatabase of the "lost" extension? I working in ArcGIS 10.2, on Win7 with VB.Net 3.5, VS2010.
... View more
09-14-2011
01:42 PM
|
0
|
0
|
578
|
POST
|
I want to track geospatial items (featclasses, geodbs) with a unique ID. The Esri Profile of the Content Standard for Digital GeoSpatial Metadata (2003) describes the "Metadata ID" element that Esri added to the profile for essentially this purpose. This element's value is that of a GUID "that is assigned to the metadata record when it is created." The documentation for the IXMLPropertyset.InitExisting method states it can be used "to add Esri elements MetaID, CreaDate,CreaTime, and syncOnce" to an existing non-esri metadata record (where MetaID is the shortname for the Metadata ID element describe above) and ends with the statement that "Anytime ArcGIS creates metadata, automatic or not, these elements will be added." Problem is, I can't seem to find the <Esri><MetaID> element in an xml metadata record associated with a new dataset. In the metadata editor in ArcCatalog I can click the "Create" button next to the File Identifier field under the Metadata/Details section to generate a GUID to identify a datasets metadata record. But when I examine the datasets metadata xml file the GUID value winds up associated with the <mdFileID> element. Here's the final bit of confusion: I generate a new GUID and assign it to the metadata record for a new gdb featureclass using XMLPropertyset.SetPropertyX() : - IF assigned to the <mdFileID> element it shows up in the ESRI Data Source Item Description metadata dialog window in ArcMap or ArcCatalog for the new featureclass under the Metadata Details section titled METADATA IDENTIFIER. - IF assigned to the <Esri><MetaID> element it shows up in the aforementioned dialog under the ESRI Metadata and Item Properties section as "ESRI-ISO METADATA IDENTIFIER". Isn't that backwards? I pretty sure mdFileID is an ISO element... If anyone can explain the logic behind ESRI's handling of <mdFileID> and <Esri/MetaID> I would greatly appreciate it!
... View more
08-30-2011
01:13 PM
|
0
|
0
|
239
|
POST
|
I've written an application that creates a dockable window in ArcMap. The dockable window is properly disposed of when I close ArcMap. But now I wish to close the window manually. When I close ArcMap the IDockableWindowDef.OnDestroy() method fires which neatly closes the form hosted in the dockable window and then Disposes the dockable window itself. Question is, is there a way to fire OnDestroy other than closing ArcMap? Another tack - the IDockableWindowHelpNotify interface purports to "Provides (sic) access to members that define and control a dockable window." Sounds just like what I need, but the documentation stops right there, and the intefaces only method "OnHelpClick" is perhaps the most mysterious method I have ever seen described! Any help would be much appreciated...
... View more
06-07-2011
06:59 PM
|
0
|
0
|
1822
|
Title | Kudos | Posted |
---|---|---|
1 | 12-30-2016 04:02 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|