GeoComPy

Python wrapper functions for communicating with surveying instruments over a serial connection.

The implementations use the Leica GeoCOM ASCII RPC procotol primarily. For older instruments, that do not support it, the GSI Online commands are used instead.

The package provides
  1. Utility data types for handling instrument responses

  2. Instrument software specific low level commands

Documentation

Public classes and methods are provided with proper docstrings, that can be viewed in the source code, through introspection tools or editor utilities. The docstrings follow the NumPy style conventions. In addition to the in-code documentation, a complete, rendered reference is avaialable on the GeoComPy documentation site.

Some docstrings provide examples. These examples assume that geocompy has been imported as gc:

>>> import geocompy as gc

Subpackages

geocompy.geo

Communication through GeoCOM protocol.

geocompy.gsi

Communication through GSI Online protocol.

Submodules

geocompy.data

Utilities for data handling.

geocompy.communication

Communication methods.

Reexports

geocompy.data.Angle

Angle value primitive.

geocompy.data.Vector

3D vector primitive.

geocompy.data.Coordinate

3D coordinate primitive.

geocompy.communication.open_serial

Serial connection context manager function.

geocompy.communication.open_socket

Socket connection context manager function.

geocompy.gsi.dna.GsiOnlineDNA

DNA instrument implementation.

geocompy.gsi.gsitypes.GsiOnlineResponse

GSI Online protocol response container.

geocompy.geo.GeoCom

GeoCOM protocol handler.

geocompy.geo.gctypes.GeoComCode

GeoCOM return codes.

geocompy.geo.gctypes.GeoComResponse

GeoCOM protocol response container.