Code Examples and ExplanationsΒΆ
Below are pages that show some sample code snippets of how to perform common operations in the Global Mapper SDK, and explain in detail some of the functions and types involved.
- Opening and Closing a Layer
- Creating and Using Arrays in Python
- Converting a Pointer to an Array or List
- Global Mapper Ints: *_t32, uint32, and others
- Creating and Setting Projections
- Selecting a File to Open in GlobalMapper
- Scripting Example Using RunScript
- Handling Text Encodings
- Full code examples
- Crop, Merge, and Reproject USGS DRGs into new GeoTIFF and JPEG files
- Generate Contours from all USGS DEMs in a Folder and Export them to DXF and Shape files
- Edit Vector Features Based on an Attribute and Display Label
- Export a set of Loaded Layers to Multiple Shapefiles
- Create Elevation Grids from a Directory of LiDAR