Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (15 sloc) 911 Bytes
# Copy what we're doing. This shows up in the logs afterwards.
@echo Installing grand.reservoirs
# Create the 'src' directory if it doesn't exist yet
mkdir -p src
@echo STATUS=Downloading
# Original URL which does not support public downloads:
cd src && wget -q -O
@echo STATUS=Importing
ogr2ogr -f PostgreSQL -overwrite -nlt PROMOTE_TO_MULTI $(POSTGRES_OGR) -lco SCHEMA=grand -lco GEOMETRY_NAME=geom -nln reservoirs /vsizip/src/
# Clean up
@echo STATUS=Complete
@echo STATUS=Uninstalling
psql "$(POSTGRES_URI)" -c 'DROP TABLE IF EXISTS grand.reservoirs CASCADE'
You can’t perform that action at this time.