}
public static VectorLayer OpenPostGIS(String tableName
, PostgisConnection ConnectionString, String geom, String id)
{
PostgisDataSource pDR = new PostgisDataSource(tableName , geom, id,ConnectionString);
GeoDataAdapter pDA = new GeoDataAdapter(pDR);
VectorLayer layer = new VectorLayer(pDA.createFeatureList());
pDR.close();
return layer;
}