Sign inSign up

joshuasundance/restgdf_api

By joshuasundance

•Updated almost 3 years ago

Image
0

1.1K

joshuasundance/restgdf_api repository overview

⁠restgdf_api

License: MIT python

Push to Docker Hub restgdf_api on Docker Hub Docker Image Size (tag)

Code Climate maintainability Code Climate issues Code Climate technical debt

pre-commit Ruff Checked with mypy Code style: black

security: bandit Known Vulnerabilities

šŸ¤– This README was written by GPT-4. šŸ¤–

⁠Overview

restgdf_api is an asynchronous server powered by FastAPI⁠ and the open-source restgdf⁠ library. It acts as an efficient, user-friendly proxy for ArcGIS servers, offering high-speed interactions with ArcGIS FeatureLayers. With comprehensive OpenAPI documentation, this API simplifies and accelerates the process of accessing and managing GIS data, making it an ideal alternative to the traditional ArcGIS API for Python.

⁠Key Features

  • Asynchronous Operations: Optimized for speed and efficiency, leveraging the power of restgdf for non-blocking data operations.
  • Open-Source and Community-Focused: Contributions are welcome, fostering a collaborative environment for continuous improvement.
  • Comprehensive OpenAPI Documentation: Detailed and interactive documentation for easy integration and usage.
  • Versatile GIS Data Management: Enables discovery, fetching, and manipulation of GIS data across various ArcGIS services.

⁠Use Cases

  • Data Discovery: Explore content in ArcGIS Services Directory, including feature layers, rasters, and more.
  • Data Retrieval: Fetch individual or multiple FeatureLayers, with flexible querying capabilities.
  • Administrative Data Access: Access GIS data for states, counties, cities, and towns using data from Mapping Support⁠.
  • Proxy for ArcGIS Servers: Can serve as a documented proxy for any ArcGIS server, providing a streamlined interface for external data sources.

⁠System Requirements

  • Python 3.11 or higher
  • Docker (optional, for containerized deployment)

⁠Installation

⁠Option 1: Docker Hub Deployment
docker run --name restgdf_api -p 8080:8080 joshuasundance/restgdf_api:latest
⁠Option 2: Clone the Repository
git clone https://github.com/joshuasundance-swca/restgdf_api.git
cd restgdf_api
docker compose up
⁠Option 3: Deploy on Kubernetes
git clone https://github.com/joshuasundance-swca/restgdf_api.git
cd restgdf_api
kubectl apply -f kubernetes/resources.yaml
⁠Option 4: Manual Local Installation
git clone https://github.com/joshuasundance-swca/restgdf_api.git
cd restgdf_api
pip install -r requirements.txt
cd restgdf_api
gunicorn app:app

⁠API Endpoints Overview

  • mappingsupport: Leverages data from Mapping Support⁠ to provide GIS server listings and specific geographic area data.
  • directory: Discover content in ArcGIS directories, including feature layers and raster data.
  • layer: Retrieve specific FeatureLayers, supporting single and multiple queries.
  • server: Add and configure ArcGIS servers, enhancing flexibility and control.

⁠Contributing

Your contributions are welcome! To contribute, please follow the standard fork and pull request workflow.

⁠License

This project is licensed under the MIT License.

Tag summary

Content type

Image

Digest

sha256:5e63e44b3…

Size

151.8 MB

Last updated

almost 3 years ago

docker pull joshuasundance/restgdf_api