<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Could the problem be the use of the ogr2ogr option -nlt POLYGON ?  Some of the input geometries are multipolygons, and it sounds like the way to handle this with ogr2ogr is to use GEOMETRY or PROMOTE_TO_MULTI [1][2]</div><div><br></div><div>[1] <a href="https://www.gdal.org/ogr2ogr.html">https://www.gdal.org/ogr2ogr.html</a></div><div>[2] <a href="https://gis.stackexchange.com/a/195223">https://gis.stackexchange.com/a/195223</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 21, 2019 at 1:00 PM Simon Greener <<a href="mailto:simon@spatialdbadvisor.com">simon@spatialdbadvisor.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>


<div><div>The shapefile (from OSM) can be accessed here:</div><div><br></div><div><a href="https://www.dropbox.com/s/jbptp3ycmc8cqzi/gis_osm_county_a_free_1.rar?dl=0" target="_blank">https://www.dropbox.com/s/jbptp3ycmc8cqzi/gis_osm_county_a_free_1.rar?dl=0</a></div><div><br></div><div>The command used to load is:</div><div><br></div><div>ogr2ogr -overwrite -progress -skipfailures -a_srs "EPSG:4326" ^<br>        -f "PostgreSQL" PG:"dbname='gisdb' host='localhost' port='5432' user='postgres'  ^<br>        gis_osm_county_a_free_1.shp -nln data.osm_county -nlt POLYGON ^<br>        -lco LAUNDER=YES -lco GEOMETRY_NAME=geog4326 -lco GEOM_TYPE=geography -lco FID=ID -lco DIM=2 -lco SPATIAL_INDEX=YES <br></div><div><br></div><div>Am I missing something with the ogr2ogr command for the load?</div><div><br></div><div><br></div></div></blockquote></div></div></div></div>