Hi,
I’m trying to get all features from SqliteFeatureLayer using the following which worked in v9.
SqliteFeatureLayer sql = layer as SqliteFeatureLayer;
sql.Open();
Collection theseFeatures = sql.FeatureSource.GetAllFeatures(ReturningColumnsType.AllColumns);
sql.Close();
Here’s the error.
System.Data.SQLite.SQLiteException
HResult=0x800007BF
Message=SQL logic error
near “AND”: syntax error
Source=System.Data.SQLite
StackTrace:
at System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)
at System.Data.SQLite.SQLiteCommand.BuildNextCommand()
at System.Data.SQLite.SQLiteDataReader.NextResult()
at System.Data.SQLite.SQLiteDataReader…ctor(SQLiteCommand cmd, CommandBehavior behave)
at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
at ThinkGeo.MapSuite.Layers.SqliteFeatureSource.GetAllFeaturesCore(IEnumerable1 columnNames) at ThinkGeo.MapSuite.Layers.FeatureSource.GetAllFeatures(IEnumerable
1 returningColumnNames)
Thanks,
Damian