<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'Times New Roman'; font-size:13px}</style>
</head>
<body><div>Can you convert the data into WKT?</div><div><br></div><div>If so, create a CSV file with the WKT in a single column eg WKT (other attributes in other fields)</div><div><br></div><div>Then add a wkt column to the target table:</div><div><br></div><div>alter table <target> add column wkt text;</div><div><br></div><div>eg </div><div>create table foo (id serial, geom geometry);<br>alter table foo add column wkt text;</div><div><br></div><div>Then use COPY to load from the CSV into the table writing the WKT to your WKT column.</div><div><br></div><div>Then execute UPDATE to populate the geom column and drop the WKT column.</div><div>Or, don't create a wkt column but create a before insert trigger to create the geom from the wkt.</div><div><br></div><div>regards</div><div>Simon</div><div>On Sat, 12 Jan 2019 08:13:44 +1100, Clifford Snow <clifford@snowandsnow.us> wrote:<br></div><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div dir="ltr">Lately some of the data from local governments contain road data with multicurve geometry. Attempting to load with shp2pgsql fails. <div><br></div><div>I've been using ogr2ogr with the -nlt option to specify MULTILINESTRING. <br><div><br></div><div>Is there any better work arounds? According to PostGIS, it does support multicurve geometries. </div><div><br></div><div>Thanks in advance,</div><div>Clifford<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="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></div></div>
</blockquote><br><br><br><div id="M2Signature"><div>-- </div><div><div>Regards<br></div><div><font face="Kunstler Script"><big><big><big><big>Simon</big></big></big></big></font><em><strong><br></strong></em></div><div><em><strong>--------------------------------------------------------------------------------------------------------<br></strong></em></div><div><em><strong>Spatial Advice & Solutions Architecture<br>Database Spatial Stored Procedure Designer</strong></em><br>Oracle Spatial, SQL Server, PostGIS, MySQL, ArcSDE FME<br>Awarded "2011 Oracle Spatial Excellence Award for Education and Research"<br>A: 39 Cliff View Drive, Allens Rivulet, 7150, Tas, Aust<br>W: www.spdba.com.au<br>E: simon@spdba.com.au<br>V: +61 <strong>362 396 397</strong><br>M: +61 <strong>418 396 391</strong><br>GITC Supplier: T1005<br>Skype: sggreener<br>Long: 147.20515 (147° 12' 18" E)<br>Lat: -43.01530 (43° 00' 55" S)<br>GeoHash: r22em9r98wg<br>NAC:W80CK 7SWP3</div></div></div></body></html>