I am trying to run the following shp2pgsql cmd using the OSGeo4W shell:
shp2pgsql -s 4269 -g geom_4269 -I -W "latin1"
"tl_2012_states" staging.tl_2012_states |
psql -h localhost -p 5432 -d dvdtwo -U postgres
but I am getting the following error:
'shp2pgsql' is not recognized as an internal or external command, operable program or batch file
I have tried updating the environment variable path to include the PostgreSQL\9.5\bin, but that hasn't worked.
What should I try next, or what do you think my problem is?
I am using, PosgreSQL 9.5, QGIS 2.18.5, PostGIS 2.0
set path=%path%;C:\path_to\PostgreSQL\9.5\bin
and if the added path is correct then shp2pgsql just must be found.