Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 620 Bytes
install: uninstall
@echo STATUS=Downloading
mkdir -p src tmp
cd src && wget -q https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_1_states_provinces.zip
@echo STATUS=Importing
ogr2ogr -f PostgreSQL -skipfailures -overwrite -nlt PROMOTE_TO_MULTI $(POSTGRES_OGR) -lco SCHEMA=naturalearth -lco GEOMETRY_NAME=geom -nln ne_10m_admin_1_states_provinces /vsizip/src/ne_10m_admin_1_states_provinces.zip/ne_10m_admin_1_states_provinces.shp
uninstall:
@echo STATUS=Uninstalling
psql "$(POSTGRES_URI)" -c 'DROP TABLE IF EXISTS naturalearth.ne_10m_admin_1_states_provinces'
You can’t perform that action at this time.