An open API service indexing awesome lists of open source software.

https://github.com/qba73/arc

ESRI ArcTool data transformer.
https://github.com/qba73/arc

gis gis-data go go-cli tool

Last synced: 7 months ago
JSON representation

ESRI ArcTool data transformer.

Awesome Lists containing this project

README

          

[![Go](https://github.com/qba73/arct/actions/workflows/go.yml/badge.svg)](https://github.com/qba73/arct/actions/workflows/go.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/qba73/arct)](https://goreportcard.com/report/github.com/qba73/arct)
![GitHub](https://img.shields.io/github/license/qba73/arct)
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/qba73/arct)
[![CodeQL](https://github.com/qba73/arc/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/qba73/arc/actions/workflows/github-code-scanning/codeql)
[![Scorecard](https://github.com/qba73/arc/actions/workflows/scorecard.yml/badge.svg)](https://github.com/qba73/arc/actions/workflows/scorecard.yml)

# arc

The `arc` CLI tool allows GIS and Data Analysts to extract data generated by a custom ESRI [ArcGIS tool](https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/an-overview-of-the-analysis-toolbox.htm) (Arc Tool) and save data in the CSV format. Next, GIS analysts import generated file to a spreadsheet.

The main requirements/assumptions are that input files are not larger than 10 MB; the analysts run the tool manually and manually import the CSV output file into spreadsheets.

## Installation

Install ```latest``` version with ```go install``` command
```
$ go install github.com/qba73/arc/cmd/arc2csv@latest
$ go install github.com/qba73/arc/cmd/arc2json@latest
```

Install specific version (tag) with ```go install``` command
```
$ go install github.com/qba73/arc/cmd/arc2csv@v0.0.1
$ go install github.com/qba73/arc/cmd/arc2json@v0.0.1
```

Build locally
```
$ git clone git@github.com:qba73/arc.git
$ cd arc
$ make build
```

## Usage

Getting help

### arc2csv

```
$ arc2csv -h

arc2csv - ArcTool log processor for parsing log files to CSV format.

Flags:

-h "Show help"
-v "Show version"

Examples:

// Generate csv file with data from the log file
arc2csv < LoaderLogs_19-02-2020.log > report.csv

// Generate csv file with data from multiple log files
arc2csv < file1.log file2.log file3.log > report.csv

```

### arc2json

```
$ arc2json -h

arc2json - ArcTool log processor for parsing log files to JSON format.

Flags:

-h "Show help"
-v "Show version"

Examples:

// Generate csv file with data from the log file
arc2json < LoaderLogs_19-02-2020.log > report.json

// Generate csv file with data from multiple log files
arc2json < file1.log file2.log file3.log > report.json

```