Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viper88c/tileserverautomation
Automated Tigerline shape file converter for use with mapping APIs
https://github.com/viper88c/tileserverautomation
census county geojson map mapbox mapping openstreetmap shapefile tigerline tileserver zip
Last synced: about 1 month ago
JSON representation
Automated Tigerline shape file converter for use with mapping APIs
- Host: GitHub
- URL: https://github.com/viper88c/tileserverautomation
- Owner: viper88c
- Created: 2024-04-05T19:10:27.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-08T03:52:17.000Z (9 months ago)
- Last Synced: 2024-10-13T19:24:13.935Z (2 months ago)
- Topics: census, county, geojson, map, mapbox, mapping, openstreetmap, shapefile, tigerline, tileserver, zip
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Automated TileServer
This project provides a comprehensive solution for setting up and managing a TileServer with automated processes for handling shapefile conversions and tile serving using tileserver-gl-light and PM2.
## Installation
Clone the repository to your local machine:
```bash
git clone https://github.com/viper88c/TileServerAutomation.git
cd TileServerAutomation
```Run the setup script to install all necessary dependencies:
```bash
./setup.sh
```## Usage
After installation, you can use the script to process shapefiles into MBTiles format:
```bash
./processtiles.sh
```This script will detect the type of geographic data (e.g., Zip Codes, Counties, Cities, States), process the shapefiles, and update the corresponding layers in `tiles.mbtiles`.
### TileServer and PM2
The project uses tileserver-gl-light to serve tiles and PM2 for process management. To start the TileServer on port 3000:
```bash
pm2 start "tileserver-gl-light -p 3000 tiles.mbtiles" --name tileserver
```To check the status of the TileServer:
```bash
pm2 status tileserver
```To stop the TileServer:
```bash
pm2 stop tileserver
```## Additional Notes
Ensure your shapefiles are placed in the specified input directory before running the processing script. The script will unzip, process, and integrate the shapefile data into the TileServer automatically.
For more information on PM2 and tileserver-gl-light, refer to their respective documentation.