Author Archives: Paritosh Gupta

About Paritosh Gupta

I am an M.Tech from IIT Roorkee and MBA from IIM Lucknow India. I am having more than 16 years of experience in design, development, Integration and implementation of Geographical Information System for various applications in Utilities, Watershed Management and Land records domains

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

Posted in ArcObjects with Visual Basic | Leave a comment

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

Posted in ArcObjects with Visual C# .NET | Leave a comment

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

Posted in ArcObjects with Visual C# .NET | Leave a comment

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

Posted in Technical Papers | Leave a comment

On becoming ESRI MVP

Thanks to all professional friends and colleagues for this. http://support.esri.com/index.cfm?fa=forums.gateway

Posted in General | Leave a comment

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

Posted in ArcObjects with Visual Basic | Leave a comment

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

Posted in ArcObjects with Visual Basic | Leave a comment

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

Posted in ArcObjects with Visual Basic | Leave a comment

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

Posted in General | 2 Comments