POST
|
You can get a specific Layer by assigning layer identifier to LAYERNAME property. Something like the following: private ILayer GetSpecificWMTSLayer(string url, string layerID)
{
IWMTSLayer wmtsLayer = new WMTSLayer();
WMTSConnectionName connectionName = new WMTSConnectionNameClass();
IPropertySet propSet = new PropertySetClass();
propSet.SetProperty("URL", url);
propSet.SetProperty("LAYERNAME", layerID);
connectionName.ConnectionProperties = propSet;
wmtsLayer.Connect(connectionName as IName);
return wmtsLayer as ILayer;
} These are the seven properties you can handle with your property set: URL, LAYERNAME, USER, HIDEUSERPROPERTY, VERSION, PASSWORD, CONNECTIONPATH
... View more
02-25-2015
05:29 AM
|
1
|
1
|
2611
|
POST
|
GetObjectFromFullName used to find objects in the catalog tree, you can connect the target folder programmatically using IGxCatalog.ConnectFolder Method.
... View more
02-23-2015
09:19 AM
|
1
|
0
|
532
|
POST
|
You can do this using Query Task ,First you get All Cities via attribute query on cities layer and populate the returned features to cities combobox, then on combobox selection changed you get the related regions and streets via spatial query on regions and streets layers respectively using the geometry of selected city. I think your snapshot is taken from Riyadh Interactive Map, you can monitor the requests using Fiddler or Firebug.
... View more
02-16-2015
04:28 AM
|
0
|
1
|
532
|
POST
|
Hi Helen, You can reach this using ITransform2D.Move Method it will move your element dx units horizontally and dy units vertically. The code should be like the following before you add your element to graphics container : Dim transform2d As ITransform2D = CType(pElement, ITransform2D)
'move your element by dX and dY in map units
transform2d.Move(dX, dY)
... View more
01-18-2015
07:40 AM
|
0
|
0
|
424
|
POST
|
Hi Ram, It seems that the proxy service from http://servicesbeta3.esri.com/SilverlightDemos/ProxyPage/proxy.ashx is not accessible at this moment, I copied the code into a sample application and removed the ProxyUrl from XAML page and it works fine for KmlLayer. For WmsLayer It throws an exception as you should add some parameters to the layer URL.
... View more
12-16-2014
09:22 AM
|
2
|
2
|
604
|
POST
|
Check the Info Window Sample, you can customize the content via ContentTemplate property.
... View more
12-07-2014
03:10 AM
|
0
|
0
|
362
|
POST
|
The IPictureMarkerSymbol.CreateMarkerSymbolFromFile Method has a PNG in its esriIPictureType parameter. I just tried it using this Snippet and It works fine.
... View more
12-01-2014
01:28 AM
|
1
|
1
|
758
|
POST
|
Hi Ana, Try to set enable 32-bit applications property in your application pool to True
... View more
12-01-2014
12:42 AM
|
0
|
1
|
345
|
POST
|
I tested your function with 10.1 and windows forms app with scenario zooming to a specific location using timer. I press the Zoom button and minimize the window, then maximize it again and it zooms to the right location. I found no problems with that. Also you can check this zoom function: ArcObjects 10 .NET SDK Help
... View more
11-27-2014
06:55 AM
|
0
|
0
|
1214
|
POST
|
Try to set your output parameter like the following: arcpy.SetParameter(3,'a nice list of addresses!')
... View more
11-26-2014
07:46 AM
|
1
|
1
|
2225
|
POST
|
You can store unique data inside your Add-in such as "Description" or "Version" to Identify your Add-in version and access this data at runtime using ThisAddIn internal class.
... View more
11-26-2014
07:04 AM
|
0
|
0
|
1221
|
POST
|
Hello Peter, Arcmap has its own folder locations for add-ins and these add-ins are automatically managed by ESRI Add-In Utility. It Unpacks its contents in the Assembly Cache folder. Check the following for more information: ArcObjects 10 .NET SDK Help
... View more
11-26-2014
04:40 AM
|
0
|
2
|
1221
|
POST
|
For some reason I get the SEHException -2147467259, no matter if CopyLocally is set to true or false so its no issue on right-access. Do I have to consider a special syntax for the whereClause on an SDE which may differ from Table.Field? Currently this is the code:
/// <summary>
/// Virtually joins two tables
/// </summary>
/// <param name="objectTable">the businesTable</param>
/// <param name="geometryTable">the geometry-table where the shapes are stored</param>
/// <param name="whereString">an additional whereString to further specify the query</param>
/// <param name="uuidField">the identifier-field within the geometry-table (usually OFID) used for joining the tables</param>
/// <returns>a FeatureClass that contains the the Objektart, the Modellart and the geometries of the joined tables</returns>
/// <remarks>
/// The join is performed by evaluating the UUID-field of the object-table and the UUID-field of the geometry-table
/// (while the former is already "UUID" the latter may vary).<br> />
/// The returned featureClass contains the fields Modellart (MAT) and Objektart (OBA) from the objectTable and all fields of the geometry-table.
/// </remarks>
private IFeatureClass joinTables(string objectTable, string geometryTable, string whereString, string uuidField)
{
// queryDef to perform a join on the object- and the geometry-table
IQueryDef queryDef = ((IFeatureWorkspace)this.Workspace).CreateQueryDef();
// select the Objektart (OBA), the Modellart (MAT) and all columns from the geometry-table (where the ESRI-feature is stored)
queryDef.SubFields = objectTable + ".OBA," + objectTable + ".MAT," + geometryTable + ".*";
queryDef.Tables = objectTable + "," + geometryTable;
queryDef.WhereClause = objectTable + ".UUID = " + geometryTable + "." + uuidField; // the join-criterion
IQueryName2 queryName2 = (IQueryName2)new FeatureQueryNameClass();
queryName2.QueryDef = queryDef;
//queryName2.PrimaryKey = geometryTable + "." + uuidField; // the ID-field of the FeatureClass
//queryName2.CopyLocally = true;
// Set the workspace and name of the new QueryTable.
IDatasetName datasetName = (IDatasetName)queryName2;
datasetName.WorkspaceName = (IWorkspaceName)(((IDataset)this.Workspace).FullName);
datasetName.Name = "tmpTable";
// Open the virtual table.
ESRI.ArcGIS.esriSystem.IName name = (ESRI.ArcGIS.esriSystem.IName)queryName2;
return (IFeatureClass)name.Open();
} I tested this sample using SDE workspace and also GDB workspace and it works fine. I used ArcObjects 10.1 +VS 2010 on windows 7 64-bit. Similar exception found here: http://forums.arcgis.com/threads/22016-ArcMap-C-Integration-sometimes-gives-SEHException
... View more
07-02-2014
05:35 AM
|
1
|
0
|
1921
|
POST
|
Hi Suleyman, You can get MetadataExtension by Its CLSID or name.
private IMetadataHelper GetMetadataExtension()
{
try
{
UID metaDataID = new UIDClass();
//the ProgID
metaDataID.Value = "esriCatalogUI.MetadataExtension";
//or the CLSID
//metaDataID.Value = "{055B2B99-F2C9-11D2-9FC1-00C04F8ED211}"; //ESRI Metadata Extension
IExtension metadataExtension = ArcMap.Application.FindExtensionByCLSID(metaDataID);
return metadataExtension as IMetadataHelper;
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
return null;
}
}
... View more
06-29-2014
11:35 PM
|
0
|
0
|
939
|
POST
|
From what I can understand this approach would work, too. How do you know the ESRI AttachmentEditor contains an ItemsControl named "AttachmentList" (and that it is an ItemsControl)? I tested this approach and it works fine and it gives you more control on your control. It filters the attachments, the first solution is just hiding the item which is not recommended. you can find Attachment Editor Control source on CodePlex with all other toolkit controls.
... View more
06-26-2014
11:39 AM
|
0
|
0
|
921
|
Title | Kudos | Posted |
---|---|---|
1 | 03-22-2015 06:50 AM | |
1 | 04-01-2014 10:01 PM | |
1 | 04-07-2014 11:18 PM | |
1 | 04-08-2014 09:19 PM | |
1 | 11-26-2014 07:46 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|