Skip to main content

Python library for Leica GeoCOM Total Station communication

Project description

pyGeoCOM

Python library for Leica GeoCOM Total Station communication

Overview

pyGeoCOM is a Python module designed to facilitate communication with Leica GeoCOM-compatible total stations. It provides a clean and modular interface to control total stations, perform measurements, and manage geodetic data efficiently.

Features

  • Control Leica total stations via serial communication
  • Support for various measurement modes and instrument settings
  • Enum-based constants for clear and safe API usage
  • Modular design with separated geodetic classes and communication logic
  • Easily extendable for different Leica GeoCOM models

Implemented GeoCOM Commands

Method Command Format Description
do_measure(command, mode) %R1Q,2008:{command.value},{mode.value} Start measurement with mode and sensor program
edm_laserpointer(state) %R1Q,1004:{state.value} Enable/disable laser pointer
fine_adjust(hz_area, v_area) %R1Q,9037:{hz_area},{v_area},0 Perform fine adjustment
get_angle1(mode) %R1Q,2003:{mode.value} Get complete angle measurement
get_atm_correction() %R1Q,2029: Get atmospheric correction data
get_edm_mode() %R1Q,2021: Get EDM measurement mode
get_fine_adjust_mode() %R1Q,9030: Get fine adjustment mode
get_incline_switch() %R1Q,2007: Get inclination switch status
get_instrument_name() %R1Q,5004: Get instrument name
get_instrument_number() %R1Q,5003: Get instrument number
get_internal_temperature() %R1Q,5011: Get internal temperature
get_prism_constant() %R1Q,2023: Get prism constant
get_software_version() %R1Q,5034: Get software version
get_simple_measurement(...) %R1Q,2108:{wait_time},{mode.value} Request simple measurement
search_target() %R1Q,17020:0 Start target search
set_atm_correction(atm) %R1Q,2028:{atm} Set atmospheric correction data
set_fine_adjust_mode(adj_mode) %R1Q,9031:{adj_mode} Set fine adjustment mode
set_incline_switch(state) %R1Q,2006:{state.value} Set inclination switch status
set_telescope_position(...) %R1Q,9027:{direction},{zenith},{pos_mode},{atr_mode},0 Set telescope position
set_telescope_to_second_face(...) %R1Q,9028:{pos_mode},{atr_mode},0 Set telescope to second face
set_user_atr_state(state) %R1Q,18005:{state.value} Set user ATR state
turn_off() %R1Q,112:0 Turn off instrument
wake_up() %R1Q,18006:\r\n Wake up instrument

Installation

Install via pip:

pip install pygeocom

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygeocom-0.1.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygeocom-0.1.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file pygeocom-0.1.0.tar.gz.

File metadata

  • Download URL: pygeocom-0.1.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for pygeocom-0.1.0.tar.gz
Algorithm Hash digest
SHA256 25c30ef3292713b1ccd820b70a8c68cd4a3281c09e7679abcbe2f805ca47028f
MD5 fa8449ae195fdc0d3b0efb6d5d821f97
BLAKE2b-256 e1cc62af32d52c06375d9efd1b94ebc84c854a7b4f6d595445767888281f8ab9

See more details on using hashes here.

File details

Details for the file pygeocom-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pygeocom-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for pygeocom-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 510d96dc19abdc05fcdca0e7ea0d6757349178cc12a68077b06fb2a191023121
MD5 3df1a133be039e922fd70f2285e27bae
BLAKE2b-256 62875c3a19b64985b625aea201ca8b9c8b27396e7c5b628002121fac6b4a3fba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page