Dear GDAL users,<br><br>Is there a way to use ogr2ogr or other means to convert a layer (e.g. a shapefile) into an SQL text file suitable for insertion into PostGIS? In other words, a file with SQL text like:<br><br><div style="margin-left: 40px;">
INSERT INTO &quot;my_table&quot; (&quot;the_geom&quot; ) VALUES (GeomFromEWKT(&#39;SRID=-1;POLYGON (( ...))&#39;::TEXT) );<br><br></div>which could be read into PostgreSQL later. Ideally, I am looking for a direct conversion, i.e. not involving PostGIS.<br>
<br>Thank you,<br>Aleksey<br>