<div dir="ltr">Total noob to PostgreSQL and PostGIS here. Trying to follow examples from the Obe+Hsu book (1st Ed) in using shp2pgsql from the command line to import some tiger county data.<div><br></div><div style>I ran this:</div>
<div style><br></div><div style>shp2pgsql -s 4269 -g geom_4269 -W LATIN1 c:/users/david/downloads/tl_2012_us_county/tl_2012_us_county.shp public.us_counties psql -h localhost -U postgres -p 5432 -d mygisdb <br></div><div style>
<br></div><div style>Thanks to an archive of this list that led me to add the "-W LATIN1" param (it was failing with an error w/out it).</div><div style><br></div><div style>Now the command runs for several minutes, spitting out mostly zillions of hex digits, with no overt errors. Last line it spits out is "COMMIT;".</div>
<div style><br></div><div style>But when I go into psql, I can't find the public.us_counties table that I thought I just added created:</div><div style><br></div><div style><div>mygisdb=# select * from public.us_counties;</div>
<div>ERROR: relation "public.us_counties" does not exist</div><div>LINE 1: select * from public.us_counties;</div><div> ^</div><div>mygisdb=# select table_schema, table_name,table_type from information_schema.tables where</div>
<div>table_schema not in ('pg_catalog','information_schema');</div><div> table_schema | table_name | table_type</div><div>--------------+-------------------+------------</div><div> public | geography_columns | VIEW</div>
<div> public | geometry_columns | VIEW</div><div> public | spatial_ref_sys | BASE TABLE</div><div> ch01 | lu_franchises | BASE TABLE</div><div> ch01 | fastfoods | BASE TABLE</div>
<div>(5 rows)</div><div><br></div><div style>Poking around with pgAdmin III I can't find in anywhere, either.</div><div style><br></div><div style>Is the new table us_counties hiding somewhere? Or did it quietly fail? Or what?</div>
<div style><br></div><div style>David</div></div></div>