New answers tagged

2

This is something I've never done so not sure if I am suggesting a red herring? You need to look at the page Creating Property Pages in the ArcObjects API help, from here there is a link to some sample code on a page called Layer property page and property sheet.


0

I came up with this solution by looking up the IExtensionManager/IExtensionConfig. The 'Child' extension is set to showInExtensionDialog="false" autoLoad="false" Parent Extension: (called after IDocumentEvents_OpenDocumentEventHandler) private bool LoadChildExtensions() { var child = ...


1

Try to see src sample that demonstrates how to work with google maps: show map control, spatial tree objects, download map, print map, work offline with local cache etc: https://github.com/agafonoff2000/SimpleMap


0

I would use the IFeatureSelection interface to obtain the selection set from an existing selection (so all pink polygons intersecting green polygons) and invert it. Below is some VBA code to show you how to use ArcObjects and invert a selection. Public Sub InvertSelection() ' Get map document Dim pMXDoc As IMxDocument Set pMXDoc = ThisDocument ...


2

If the featurelayer is selected in the TOC then you can use the DeleteLayer method of IMap. Otherwise you need to first disconnect it from the data source by casting the layer to IDataLayer2 and then calling the disconnect method. This is mentioned at the bottom of the help file: IMap.DeleteLayer Method Also it would be a good idea to catch your exception ...


1

The Hibernate Page page has some fine print that may point to your issues. NOTE: Type parameters (see NHibernate mapping above) are not supported in ActiveRecord. ... NHibernate Mapping: In the XML mappings file, map all properties as usual but for geometry columns use the following entry: <property name="Geometry" column="the_geom" ...


2

You can not cast a FeatureClass into a ILayer! Here's the proper way to reach an ILayer from a FeatureClass: .... IFeatureLayer fl = new ESRI.ArcGIS.Carto.FeatureLayer() fl.FeatureClass = FC; var l = fl as ILayer; axMapControl1.AddLayer(l); I am assuming all of your previous methods are correct and you have a valid IFeatuerClass (FC).



Top 50 recent answers are included