This section provides a venue for sharing GIS-related programming code and custom scripts in a variety of languages. Posts can be viewed by category or as a whole in blog format (below).
This script can be used in ArcMap to transfer a Zip Code Polygon Attribute (5 digit zip code) to street centerlines that are compeletely contained within a zip code polygon.
This script can be used together with a UIToolControl in ArcMap to create a compass rosette in an ArcMap data view that displays a hierarchy of tick marks at 1, 5, 10 & 90 degree intervals and angle text labels at 10 and 90 degrees. To use this code, use the ArcMap customize dialog box to create a new UICommand Tool Button in the normal template and rename it "rosette". Add the tool to a toolbar. Next, open the VBA editor window within ArcMap and paste this code into the ThisDocument code window under the normal.txt item in the project explorer window.