Sequence of Land Polygon GPS

Added on - 16 Sep 2019

  • 3


  • 1007


  • 113


  • 0


Showing pages 1 to 1 of 3 pages
GIS Programming and CustomizationGIS 6103 - Fall 2016School of Forest Resources andConservationGeomatics Program________________________________________________________________________________________________________Assignment 9: Polygon Geometrydue: Nov 18, 11:45amTask:To convert points into multipart polygons.Preparation:Unzip the attached file, open the attached mxd file and add the two shapefiles to the project.In VisualStudio create a form that contains a list box, two comboxes, two labels, and two buttons (see figurebelow).GPS point shapefile:The GPS point shapefile contains points collected on boundaries of street blocks (labeled “L...” in thePolygonfield, with “L” standing for “Land”). For some of these street blocks, points were also takenalongside a lake (labeled “W...” in thePolygonfield, standing for “Water”) inside the street block. Tofacilitate construction of multipart polygons and correct computation of areas, the sequence of land polygonGPS points is in clockwise direction, whereas for lakes it is in counterclockwise direction. If a street blockhas a lake inside, the two groups of points share the same number in the Polygon field, such as “L2” and“W2”. The polygon for such a street block needs to consist of two rings, one outer and one inner ring.Functionality:Once the form is opened by the user the code should loop through the table of content (TOC) and searchfor a GPS point layer (“GPS”) and for the polygon layer (“LandPolygons”) using string matching. Once foundthe names of both layers should be added to upper and lower combobox, respectively. The code should beflexible to access these two layers independent of their location in the TOC.Once the user clicks the “Compute Polygon” button the code should perform the following:1)Remove all polygon features from that LandPolygons layer.2)Your code constructs a ring feature for land based GPS points that share the same “Polygon” value.If a lake is present, it creates also a ring feature.3)Create a polygon from each individual ring or ring pair, respectively. The polygon consists of onlyone ring if the land polygon has no lake, but it consists of two rings if a water polygon is associatedwith a land polygon.4)Each polygon should then be added to the LandPolygons layer.5)For each polygon, access its area and report it back in the list box. By default, ArcGIS will only countthe area between the outer and inner ring for multipart polygons, i.e. the “true” land area aftersubtraction of the area of the hole (the lake in this case).6)For each polygon, the street block name (L1, L2, etc.) as well as the computed area should also bewritten in the corresponding fields in the LandPolygons layer.The second button is to close the form.1
You’re reading a preview

To View Complete Document

Become a Desklib Library Member.
Subscribe to our plans

Unlock This Document