Skip to content

azinsharaf/geopeek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geopeek

Overview

geopeek is a command-line interface (CLI) and text-based user interface (TUI) for exploring and analyzing geospatial data. It supports various file formats, including shapefiles and raster files.

Running the CLI Script with arcpy

To run your CLI script with arcpy, which is installed separately via ArcGIS Pro, you need to ensure that your Python environment is set up to use the Python interpreter that comes with ArcGIS Pro. Here's how you can do it:

Steps to Run Your CLI Script with arcpy

  1. Locate ArcGIS Pro Python Environment: ArcGIS Pro comes with its own Python environment. You need to find the path to this environment. It is typically located in a directory like:

    C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
    
  2. Activate the ArcGIS Pro Environment: Open a command prompt or PowerShell and activate the ArcGIS Pro Python environment. You can do this by navigating to the Scripts directory of the environment and running the activate script:

    cd "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts"
    activate
  3. Run Your Script: Once the environment is activated, navigate to your project directory and run your script using the python -m command:

    cd path\to\your\project-root
    python -m src.geopeek path/to/your/geodatabase.gdb

Alternative: Use a Batch File

If you frequently need to run your script, you can create a batch file to automate the activation and execution process:

  1. Create a Batch File: Create a new file named run_geopeek.bat with the following content:

    @echo off
    call "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts\activate.bat"
    python -m src.geopeek path/to/your/geodatabase.gdb
  2. Run the Batch File: Double-click the batch file to activate the environment and run your script.

Running the TUI

To launch the text-based user interface (TUI) for browsing a GIS dataset, use the following command:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages