Merge pull request #4 from joshuasundance-swca/readme
Browse files
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 |
+
[](https://opensource.org/licenses/MIT)
|
15 |
+
[](https://www.python.org)
|
16 |
+

|
17 |
+
|
18 |
+
[](https://github.com/joshuasundance-swca/geospatial-data-converter/actions/workflows/docker-hub.yml)
|
19 |
+
[](https://hub.docker.com/r/joshuasundance/geospatial-data-converter)
|
20 |
+
|
21 |
+
[](https://github.com/joshuasundance-swca/geospatial-data-converter/actions/workflows/hf-space.yml)
|
22 |
+
[](https://huggingface.co/spaces/joshuasundance/geospatial-data-converter)
|
23 |
+
|
24 |
+

|
25 |
+

|
26 |
+

|
27 |
+
|
28 |
+
[](https://github.com/pre-commit/pre-commit)
|
29 |
+
[](https://github.com/charliermarsh/ruff)
|
30 |
+
[](http://mypy-lang.org/)
|
31 |
+
[](https://github.com/psf/black)
|
32 |
+
|
33 |
+
[](https://github.com/PyCQA/bandit)
|
34 |
+

|
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/)
|