<html><head></head><body><div dir="auto">Could you not create a table with a generic geometry column without typmodbor constraints? The tell ogr2ogr not to overwrite the extant table?<br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->Sent from <!-- tmjah_g_1299e --><a href="http://www.bluemail.me/r?b=14063"><!-- tmjah_g_1299s -->BlueMail<!-- tmjah_g_1299e --></a><!-- tmjah_g_1299s --> <!-- tmjah_g_1299e --></div>
<div class="gmail_quote" >On 15 Jan. 2019, at 11:45, Clifford Snow <<a href="mailto:clifford@snowandsnow.us" target="_blank">clifford@snowandsnow.us</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I went back over my efforts to gather all of the Washington State counties road networks into PostGIS. I was mistaken when I said the problem was in shapefiles, it turns out I'm seeing multicurves in FileGDB. I apologize for reporting the problem as a shapefile issue. It's a FileGDB issue.<div><br></div><div>On to FileGDB. Using King County GIS data as an example, when attempting to load the data [1] using ogr2ogr, I get an error:</div><div>"Geometry type (MultiCurve) does not match column type (MultiLineString)"<br></div><div><br></div><div>The command being used is:</div><div><div>ogr2ogr -overwrite -f "PostgreSQL" PG:"host=localhost user=user_name password=user_password dbname=gisstuff" "KingCounty_GDB_transportation.gdb" "trans_network_line" -nln test -lco GEOMETRY_NAME=geom</div></div><div><br></div><div>Adding the ogr2ogr option -nlt MULTILINESTRING bring in all of the data, but it looks like the multicurve has been converted to multilinestring.</div><div><br></div><div>I've answered my question by using the -nlt option, but I'm curious, is there a way to bring in multicurve geometry into PostGIS from mixed data like the King County transportation data in [1]?</div><div><br></div><div>[1] <a href="ftp://ftp.kingcounty.gov/gis-web/GISData/transportationGDB.zip">ftp://ftp.kingcounty.gov/gis-web/GISData/transportationGDB.zip</a></div><div><br></div><div>Again, let me say sorry to jumping to the conclusion I was seeing the data in shapefiles. </div><div><br></div><div>Clifford</div><div><br></div></div></div></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>@osm_seattle<br></div><div><a href="http://osm_seattle.snowandsnow.us" target="_blank">osm_seattle.snowandsnow.us</a></div><div>OpenStreetMap: Maps with a human touch</div></div></div></div>
<pre class="blue"><hr><br>postgis-users mailing list<br>postgis-users@lists.osgeo.org<br><a href="https://lists.osgeo.org/mailman/listinfo/postgis-users">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></pre></blockquote></div></body></html>