Author Archives: Paritosh Gupta
Dissolve
The following VB 6.0 sub- procedure can be used to dissolve features based upon desired attribute fields: – Public Sub GPDissolve(strIn, strOut, disField As String) On Error GoTo EH Dim GP As IGeoProcessor Set GP = New GeoProcessor GP.OverwriteOutput = … Continue reading
KML Network Link
Network Links are great ways to reference KML or KMZ files archive on a local or remote location. You can use the element to specify the location of the KML file. Within that element, you can define the refresh options … Continue reading
Create polygon in a KML file
Folks The following C# code will help you in creating a polygon for Google Earth based KML file. Have a look: – public void AddPolygon(XmlDocument doc, XmlNode DocumentNode, int lat, int lon, int gridsize, string name, string id) { XmlNode … Continue reading
ArcHydro
Arc Hydro has been designed to represent data from hydrography and hydrology, thereby creating a basis for obtaining a deeper understanding of surface water systems. The Arc Hydro tools are a set of utilities developed on top of the Arc … Continue reading
On becoming ESRI MVP
Thanks to all professional friends and colleagues for this. http://support.esri.com/index.cfm?fa=forums.gateway
Calculate sum of the lengths of selected Polylines
The following code is useful to get a sum of selected Polyline features :- Sub CalcLength() Dim pMxD As IMxDocument Set pMxD = ThisDocument Dim pMap As IMap Set pMap = pMxD.FocusMap Dim pEnumFeat As IEnumFeature Set pEnumFeat = pMap.FeatureSelection … Continue reading
Dissolve a group layer in ArcMap TOC
There are two ways to implement this: – 1. Use IUngroupLayerOperation to UNGROUP your layers so that the group is removed while layers remain. However, there is no sample code to implement IUngroupLayerOperation. 2. In the second approach, you can … Continue reading
How to extract installed ArcGIS version?
The following code can be utilized to get to know installed ArcGIS version: – Public Function GetArcGISVersion() As String On Error GoTo Err Dim WScr As Object Set WScr = CreateObject(“WScript.Shell”) Dim sVer As String sVer = WScr.RegRead(“HKEY_LOCAL_MACHINE\SOFTWARE\ESRI\ArcGIS\RealVersion”) GetArcGISVersion = … Continue reading
Welcome on board
Welcome to Paritosh Gupta’s WebLog. This weblog will serve as a platform for ESRI ArcObjects developers world-wide. The key words include Visual Basic, C# .NET, ArcObjects, ArcGIS Desktop, ArcGIS Server, Flex API, ArcGIS Engine, PHP, JavaScript, ASP.NET