Joshua Sundance Bailey commited on
Commit
3eefafc
·
unverified ·
2 Parent(s): d3dfc2f 2953cf8

Merge pull request #4 from joshuasundance-swca/readme

Browse files
Files changed (1) hide show
  1. README.md +56 -0
README.md CHANGED
@@ -10,3 +10,59 @@ tags: [geospatial, streamlit, docker]
10
  ---
11
 
12
  # geospatial-data-converter
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  ---
11
 
12
  # geospatial-data-converter
13
+
14
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
15
+ [![python](https://img.shields.io/badge/Python-3.11-3776AB.svg?style=flat&logo=python&logoColor=white)](https://www.python.org)
16
+ ![GitHub tag (with filter)](https://img.shields.io/github/v/tag/joshuasundance-swca/geospatial-data-converter)
17
+
18
+ [![Push to Docker Hub](https://github.com/joshuasundance-swca/geospatial-data-converter/actions/workflows/docker-hub.yml/badge.svg)](https://github.com/joshuasundance-swca/geospatial-data-converter/actions/workflows/docker-hub.yml)
19
+ [![Docker Image Size (tag)](https://img.shields.io/docker/image-size/joshuasundance/geospatial-data-converter/latest)](https://hub.docker.com/r/joshuasundance/geospatial-data-converter)
20
+
21
+ [![Push to HuggingFace Space](https://github.com/joshuasundance-swca/geospatial-data-converter/actions/workflows/hf-space.yml/badge.svg)](https://github.com/joshuasundance-swca/geospatial-data-converter/actions/workflows/hf-space.yml)
22
+ [![Open HuggingFace Space](https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-sm.svg)](https://huggingface.co/spaces/joshuasundance/geospatial-data-converter)
23
+
24
+ ![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/joshuasundance-swca/geospatial-data-converter)
25
+ ![Code Climate issues](https://img.shields.io/codeclimate/issues/joshuasundance-swca/geospatial-data-converter)
26
+ ![Code Climate technical debt](https://img.shields.io/codeclimate/tech-debt/joshuasundance-swca/geospatial-data-converter)
27
+
28
+ [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
29
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)
30
+ [![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
31
+ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
32
+
33
+ [![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
34
+ ![Known Vulnerabilities](https://snyk.io/test/github/joshuasundance-swca/geospatial-data-converter/badge.svg)
35
+
36
+ This project showcases a simple geospatial data converter using [Streamlit](https://streamlit.io) and [GeoPandas](https://geopandas.org/).
37
+
38
+ # Features
39
+ - User-friendly interface for easy data conversion
40
+ - Supports conversion from the following input formats:
41
+ - ArcGIS featurelayer URL
42
+ - Uploaded file: KML, KMZ, GeoJSON, ZIP
43
+ - Provides data in the selected output format
44
+ - Presents data preview (geometry omitted for display purposes)
45
+ - Download button for the converted data
46
+
47
+ # Deployment
48
+ `geospatial-data-converter` is deployed as a [Docker image](https://hub.docker.com/r/<your-dockerhub-username>/geospatial-data-converter) based on the `python:3.11-slim-bookworm` image.
49
+
50
+ ## With Docker (pull from Docker Hub)
51
+ 1. Run in terminal:
52
+ `docker run -p 8501:8501 <your-dockerhub-username>/geospatial-data-converter:latest`
53
+ 2. Open http://localhost:8501 in your browser
54
+
55
+ ## Docker Compose (build locally)
56
+ 1. Clone the repo. Navigate to cloned repo directory
57
+ 2. Run in terminal: `docker compose up`
58
+ 3. Open http://localhost:8501 in your browser
59
+
60
+ ## Kubernetes
61
+ 1. Clone the repo. Navigate to cloned repo directory
62
+ 2. Run bash script: `/bin/bash ./kubernetes/deploy.sh`
63
+ 3. Get the IP address for your new service: `kubectl get service geospatial-data-converter`
64
+
65
+ # Links
66
+ - [Streamlit](https://streamlit.io)
67
+ - [GeoPandas](https://geopandas.org/)
68
+ - [Docker Hub](https://hub.docker.com/)