I'm using FileSystemWatcher to attempt control of the Postgis layers in SharpMap.
Can anyone suggest a procedure for refreshing theconnection.
I have the Watcher working, I'm just stuck on getting the DefinitionQuery to refresh.
RefreshMap(); doesn't do the job.
Any suggestions would be appreciated.
SharpMap.Data.Providers.PostGIS provider = new SharpMap.Data.Providers.PostGIS(ConnStr, "p_id.p_id", "the_geom", "public");//create a new provider
provider.DefinitionQuery = "P_ID.P_ID.P_ID_ID=" + "'" + filecontents + "'"; //configure the definitionQuery
myLayer.DataSource = provider; //assign the provider to the layer