Dump shape file - strange behaviour


I am putting this here in case it helps someone else. When doing a dump of the shape file - do not create an ogrLayer from an SQL statement and rename the Shape name eg Select ShapeField as ShapeFld. It does not work if you do this. Also if I used a view of the table to load the shape file it also did not work. It seems to want the sql statement to reference the shape in the actual table and not in a view of the table.

1 Like