New answers tagged

0

Try This for your WhereClause: "YourFieldName = 'YourQueryFieldValue'" i.e. " COUNTRY = 'France' "; in your Example change your pFilter.WhereClause to: pFilter.WhereClause = "SomeFieldName = 'SomeStringValue'"; IFeatureCursor pFeatureCursor = pFeatureClass.Search(pFilter,false); Here is a more complete/complex example in C#: //...


0

In a sphere, if you want to travel from a point to another the shortest distance if always via a Great Circle The formulas that give you your destination point are (which were nicked from this site): φ2 = asin( sin φ1 ⋅ cos δ + cos φ1 ⋅ sin δ ⋅ cos θ ) λ2 = λ1 + atan2( sin θ ⋅ sin δ ⋅ cos φ1, cos δ − sin φ1 ⋅ sin φ2 ) where φ is latitude, λ is longitude, ...


1

Faced similar siutation and resolved using ScaleText option. ITextSymbol pTextSymbol = new TextSymbolClass(); pTextSymbol.Size = Convert.ToDouble(size); pTextSymbol.Font = pFontDisp; pTextSymbol.HorizontalAlignment = esriTextHorizontalAlignment.esriTHACenter; pTextSymbol.VerticalAlignment = esriTextVerticalAlignment.esriTVACenter; pTextElement.ScaleText = ...


0

Do not know any method to stop IGraphicsContainer from scaling its symbols. Only FeatureLayers have the property ScaleSymbols. So in your case I would create a point-featurelayer myself in a InMemoryWorkspace and set its property ScaleSymbols to false. Then you could add a feature at the right position. Create a SimpleRendererClass for the layer and set ...


0

My suggestion is look at the sample code the is in the SharpMap solution. Source code: older on CodePlex https://sharpmap.codeplex.com/ Current Fork on GitHub https://github.com/SharpMap/SharpMap It was pretty easy to get to compile using VS2013 or VS2015. Open SharpMap.sln Take a look at Examples\WinFormSamples and Examples\DemoWinForm projects A ...


0

How about doing away with the user having to make a choice? You could call the Calculate Default Spatial Grid Index (Data Management) tool and according to the Help file the output of this can feed into the Add Spatial Index tool? If you want to read from an existing FeatureClass the spatial grids then these can be accessed via the IGeometryDef Interface.


0

This seems to be a bug in ArcGIS 10.0. As workaround one can call the menu item ‘expot map’ directly. The file chooser and the different export settings can be done by using this ESRI standard tool. Here is the corresponding code: //Command: Export Map //CLSID: {119591DB-0255-11D2-8D20-080009EE4E51} //ProgID: esriArcMapUI.MxFileMenuItem //Toolbar (Parent)...


0

Bit-shifting is not the same as raising to a power. (unless you happen to shift the number two).


0

I would develop an ArcMap extension with your own toolbar. Generate two buttons for start editing and stop editing. Additionaly you can integrate any ESRI standard tool very easyly. After clicking “start my edit session” you can add your field, make all necessary checks and then start the edit session. The end user of your product now should use only your ...


2

You can't add you own message to this dialog but you can create an event listener to watch for the start editing event to fire. When this event occurs you can then run some code and display your own message dialog. There are several ways to implement the event listener. One way would be to create a custom extension that tracks events when it is turned on. ...


0

My book about ArcGIS Runtime was recently released on Amazon: https://amzn.com/1785885456



Top 50 recent answers are included